summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Style optimization in newly added POSIX range []] conformance, redoache1997-06-071-6/+6
| | | | 'for' loop as do...while and remove variable unneded now
* Add missing FNM_PERIOD check for '[' rangeache1997-06-061-4/+10
| | | | | Don't treat !^ as first characters in the range, just as negate sign [/] never match if FNM_PATHNAME
* 1) Now conforms POSIX.2 2.8.3.2 requirements about []] patternache1997-06-061-11/+35
| | | | 2) Treat unclosed [ range in pattern as regular characters (bash style)
* Fix mutex initialization.jb1997-06-041-6/+4
| | | | | | | | | | | | | Malloc cannot use pthread_mutex_init() to initialize a mutex because the mutex initialization process does a malloc! libc_r internals skip the malloc and assign an initializer to a static structure and point the opaque type (pthread_mutex_t in this case) to that structure. This is done on the assumption that the mutex will never be destroyed. This style of initialization is only valid inside libc_r because the structure that is assigned is opaque to the user. This fix allows a simple program to get to main() again. 8-)
* Re-activate the nanosleep style using code, but with the signal handlingpeter1997-06-022-110/+2
| | | | | | | | | | semantics of the old sleep for compatability with a few decades of expected side effects. Apache breaks if we just use nanosleep() for some reason, here we use a new signanosleep() syscall which is kinda like a hybrid of sigsuspend and nanosleep.. Reviewed by: ache (and tested on his apache that was failing when sleep used plain nanosleep)
* Submitted by: Whistle Communications (archie Cobbs)julian1997-06-024-5/+37
| | | | | | | | | | | | | | | | | | These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems
* Add xref to signanosleep(2)peter1997-06-011-0/+1
|
* Doc signanosleep, add to linkspeter1997-06-012-4/+28
|
* Update the sleep(3)/usleep(3) code to use signanosleep(2) if compiled withpeter1997-06-012-17/+117
| | | | | | | -DUSE_NANOSLEEP. Also, seperate the code for _THREAD_SAFE so that it uses the simpler threaded nanosleep() call in libc_r.. We don't go to the same extremes for emulating traditional sleep semantics (ie: eating any SIGALRM that might happen) which things like apache seem to depend on.
* Generate signanosleep(2) syscall wrapperpeter1997-06-011-2/+3
|
* sysctlbyname allows acces to sysctl variables by name.phk1997-05-302-2/+35
| | | | | | | The manpage has been sent to linquistic decontamination and will arrive when released from the quarantine Reviewed by: peter
* Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.phk1997-05-302-19/+69
| | | | | | | Untested support for Solaris from John-Mark Gurney Reviewed by: phk Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu>
* Fix other small things that got lost in the merge:wpaul1997-05-282-3/+3
| | | | | | | | | | - bde's change to includes section in getrpcent.3 - Lost comment in svc_run.c (the code here was actually the same since I had fixed the 'fds + 1' bug in my stuff at home before mailing Peter about it, but I didn't notce that he'd made a change to the comment right above the changed line). Also pointed out by the ever vigilant: bde
* Restore Id.wpaul1997-05-281-0/+1
| | | | Pointed out by: bde
* Resolve conflicts.wpaul1997-05-2833-84/+425
| | | | | | | | | | | This concludes tonight's entertainment. Once I'm sure I haven't destroyed the world with all these changes, I'll import the utilities. Everything should continue to work as before. If it doesn't let me know. Special thanks to Mark Murray for running a test 'make world' for me to shake out the bugs, which, hopefully, I have fixed. (And there was much rejoicing.)
* This commit was generated by cvs2svn to compensate for changes in r26219,wpaul1997-05-2820-0/+4989
| | | | which included commits to RCS files with non-trunk default branches.
* Resolve conflicts.wpaul1997-05-289-11/+10
|
* This commit was generated by cvs2svn to compensate for changes in r26216,wpaul1997-05-281-0/+163
| | | | which included commits to RCS files with non-trunk default branches.
* Use ${DESTDIR} correctly in front of absolute paths.asami1997-05-232-5/+5
|
* `it's'' -> `its'' where appropriate and typo fixes in time2posix.3.eivind1997-05-192-3/+3
| | | | | | Closes PR docs/3612. Submitted by: Josh Gilliam <soil@quick.net>
* Update the nanosleep versions to set a SIGALRM handler while sleeping.peter1997-05-182-3/+18
| | | | | This appears to appease Apache, although depending on having sleep(3) changing the SIGALRM handler is a bit bogus.
* if nanosleep returns too early, loop. usleep() does not have a returnpeter1997-05-171-2/+7
| | | | | | value, it appears as though the semantics of usleep are that it doesn't return early. (only in the nanosleep code - the setitimer code does this already)
* round-up non-zero nanoseconds in #ifdef'ed code.peter1997-05-171-0/+2
|
* Allow conditional use (add -DUSE_NANOSLEEP) to CFLAGS of nanosleep() forpeter1997-05-172-34/+33
| | | | | the backend of sleep(3) and usleep(3). It's off by default until the problem is fixed.
* Temporarily restore old (itimer) sleep variant because new oneache1997-05-171-9/+70
| | | | | | | | | | | | | | | (nanosleep) breaks Apache httpd badly: his childs died quickly after number of requests (SIGPIPE). To reproduce this bug start gdb /usr/local/sbin/httpd run -X and make some bunch of concurent requests (load the server pages from 3 different places f.e.) After short time httpd dies via SIGPIPE. It never dies with old sleep.c In real life it looks like lots of broken images on the pages or missing pages. Lynx says about Network read error, etc. It seems something wrong in nanosleep signal handling.
* Completely remove #ifdefed out 8859-1 extension, I found it breakache1997-05-141-39/+1
| | | | POSIX, C locale definition, see LC_CTYPE pre-defined table there
* #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCIIache1997-05-131-1/+4
| | | | | | | | | | | | | | | back as designed in *BSD Also it not violates current standards but 1) No other Unixes have this feature 2) It broke Kerberos5 (isprint) and God knows what else (not all vendors will agree to treat FreeBSD as special case for support since (1)) 2) Give false localization sense (programs mimic to be 8859-1 localized) which prevents true localization.
* Add clock_* and nanosleep manpages and links.peter1997-05-121-2/+5
|
* manpage for nanosleep(2)peter1997-05-121-0/+96
| | | | Obtained from: NetBSD (I think jtc@netbsd.org wrote it)
* Man pages for clock_{get/set}time() and clock_getres().peter1997-05-121-0/+124
| | | | Obtained from: kstailey@openbsd.org via OpenBSD sources
* Use nanosleep() in all cases, not just in the reentrant libc (_THREAD_SAFE)peter1997-05-121-70/+9
| | | | version.
* Create the clock_settime(), clock_gettime(), clock_getres() and nanosleep()peter1997-05-121-3/+7
| | | | syscall functions.
* Add #include <sys/types.h> in synopsis, now required for libutil.h.davidn1997-05-111-1/+2
|
* Plug even more failure memory leaksache1997-05-101-6/+32
|
* Cleanupache1997-05-101-21/+26
| | | | | | Plug failure memory leaks Use issetugid now PR: 3492
* Back out all of yesterdays include file changes.eivind1997-05-071-3/+0
|
* Add syscalls for kernel linker.dfr1997-05-071-2/+4
|
* Make a lot of include-files self-contained. I excluded the patches changingeivind1997-05-071-0/+3
| | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org>
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-0327-98/+203
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* This stub has not been required by libc for a long time. Nuke it.jb1997-05-032-39/+2
|
* Fix a bug that caused some false mismatches when both FNM_PATHNAMEjdp1997-04-291-1/+2
| | | | | | and FNM_LEADING_DIR were specified and the pattern ended with "*". Example: pattern="src/usr.sbin/w*", string="src/usr.sbin/watch/watch.8,v". This should match, but did not.
* Typo.max1997-04-251-1/+1
| | | | | PR: #3178 Submitted by: Josh Gilliam <soil@quick.net>
* Add vfork(2) to SEE ALSOache1997-04-251-0/+1
|
* Generate .S files for syscalls. This has many advantages:bde1997-04-231-34/+9
| | | | | | | | | | | | | | | - dependencies actually work (I need this to propagate some fixes in <machine/asm.h>) - the cpp pipeline goes away, so errors can't leak out of it and an ANSI cpp is automatically used. - it's simpler - standard rules get used instead of repetitive special rules. (This showed bugs in the strip steps in the standard rules. The wrong strip flag was also used for *.po here.) Removed some ${ECHO}s and `@'s. Normal make echoing of what is being done is now not much more verbose than the echo messages were, and is more useful.
* FIxed the cleanup. I forgot to leave stdin alone in the usual (!twoway)bde1997-04-221-1/+2
| | | | case.
* Clean-up my modification of popen.c for vfork. Bruce's (this) is better.dyson1997-04-201-10/+12
| | | | Submitted by: Bruce Evans <bde@freebsd.org>
* Use separate routines for memmove() and memcpy(). This lets me dropbde1997-04-201-0/+2
| | | | | | | the (buggy) support for alternative entry points. ALTENTRY() was only used for memmove(). Optimizing for space was particularly silly because memcpy() is rarely used (gcc normally inlines it). Obtained from: NetBSD
* Use separate routines for memmove() and memcpy(). This lets me dropbde1997-04-202-94/+4
| | | | | | | | the (buggy) support for alternative entry points. ALTENTRY() was only used for memmove(). Optimizing for space was particularly silly because memcpy() is rarely used (gcc normally inlines it). Obtained from: NetBSD
* Merged with the 1996/11/12 NetBSD version:bde1997-04-201-10/+24
| | | | | | | | | | | | | | | - use a slightly less bogus copyright. This file was never contributed to Berkeley. It still claims to be copright by the Regents. - use <machine/asm.h> instead of "DEFS.h". - use RCSID($Id$) instead of explicit assembly code and messy ifdefs. The rcsid won't be put into the object file until we make RCSID() non-null. NetBSD uses a LIBC_SCCS ifdef here. We used a LIBC_RCS instead, but I want RCSID() to be controlled directly by LIBC_RCS (actually by LIB_RCS). This is the only difference with the NetBSD version. - added ifdefs to support generation of memcpy() and memmove(). The other changes are "while I'm here" to get this. - improved style of the copy backwards case.
* Fixed long lines.bde1997-04-192-16/+18
| | | | | | Removed unused macros CALL() and ASMSTR. Reviewed by: jdp
OpenPOWER on IntegriCloud