summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fixed missing `const' in synopsis.bde1999-12-231-1/+1
|
* Fixed missing includes in synopsis.bde1999-12-231-0/+2
|
* Fixed missing installation of a link to ctermid_r.3.bde1999-12-231-0/+1
|
* Fixed wrong prototype and missing include for strsignal(3). strsignal()bde1999-12-231-2/+3
| | | | | | | | | | | | | | takes an int arg and is prototyped in <string.h>. It has the opposite interface botches to psignal(3) which takes a bogus unsigned arg but is prototyped in the right place. This is not the last of the interface problems for strsignal(). We obtained it from NetBSD, but NetBSD has moved its prototype to <unistd.h>. strsignal() should return const char *, but it returns char * for historical reasons. NetBSD declares it as returning __aconst char, where __aconst is normally empty but can be set to `const' to give better error checking. glibc-2.1.1 prototypes strsignal() in <string.h>.
* Fixed missing installation of a link to getlogin_r.3. This is the firstbde1999-12-231-0/+1
| | | | | example of section 2 and section 3 interfaces sharing a man page. It's probably a bad example.
* Fixed missing installation of a link to rand_r.3.bde1999-12-231-1/+1
|
* Fix the fixfsfile() so that it works for both block and character devicespeter1999-12-231-1/+7
| | | | | | as root. This could fix the "filesystem still dirty after fsck" problem. Submitted by: bde
* Document the current behaviour with respect to the handling of errno.sheldonh1999-12-221-1/+8
| | | | Approved by: phk
* Fix a typo which I cannot believe I missed after rereading this textasmodai1999-12-211-1/+1
| | | | | | about 6-7 times prior to commit. Reported by: sheldonh
* Properly manify this manpage.asmodai1999-12-211-5/+5
| | | | | | | | Fix some spelling mistakes and typo's inspired by Nicholas' initial PR submission. PR: docs/15597 Submitted by: Nicholas Esborn <nick@flatlan.net>
* Fix a bug where a pointer would be one character too far after puttingroberto1999-12-213-3/+3
| | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
* Rewriting of flags_to_string() and string_to_flags() to use an array.roberto1999-12-193-258/+183
| | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
* Initialize a var to quiet -Wall.obrien1999-12-181-1/+1
|
* Switch over to the OpenBSD fts.c, fixing lots of things.green1999-12-182-142/+250
| | | | Obtained from: OpenBSD
* Back up following macros by functions: ishexnumber, isideogram, isnumber,phantom1999-12-171-7/+58
| | | | | | isphonogram, isrune, isspecial. Fix ordering. Reviewed by: bde
* Fix handling of trailing :'s to match what other OSes do (spit outjkh1999-12-171-2/+8
| | | | | | a diagnostis). Submitted by: Guy Harris <gharris@flashcom.net>
* KAME 4th patchshin1999-12-166-4/+1088
| | | | | | | | IPv6 specific library functions addition. (getnameinfo(), getaddrinfo(), and IPv6 transport support is not yet) Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Document SA_SIGINFOcracauer1999-12-151-25/+90
| | | | Reviewed by: Sheldon Hearn <sheldonh@uunet.co.za>
* Make setjmp, longjmp, sigsetjmp, and siglongjmp weak aliases forjasone1999-12-144-8/+24
| | | | | | | | __setjmp, __longjmp, __sigsetjmp, and __siglongjmp, respectively. This supports cancellation in the linuxthreads port. In the long run, a much more comprehensive solution will necessitate more dramatic changes to libc symbol naming, and these aliases will probably need modification at that time.
* Commented outnik1999-12-141-1/+1
| | | | | | | | | | | | | MAN8+= rstat_svc.8 The file it talks about doesn't exist on FreeBSD, so there's no point in installing the manual page. There was already a comment to this effect in this file, but the entry hadn't been commented out. rstat.1 and rstat_svc.8 can probably actually be removed. PR: docs/13767 Submitted by: Seth <seth@freebie.dp.ny.frb.org>
* Remove x-ref to itself.billf1999-12-141-1/+0
| | | | Reviewed by: mpp
* Correct "standard compilance" notesphantom1999-12-141-2/+8
| | | | Reminded by: bde
* Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC todillon1999-12-122-0/+56
| | | | | | | | | | | | | | | | | madvise(). This feature prevents the update daemon from gratuitously flushing dirty pages associated with a mapped file-backed region of memory. The system pager will still page the memory as necessary and the VM system will still be fully coherent with the filesystem. Modifications made by other means to the same area of memory, for example by write(), are unaffected. The feature works on a page-granularity basis. MAP_NOSYNC allows one to use mmap() to share memory between processes without incuring any significant filesystem overhead, putting it in the same performance category as SysV Shared memory and anonymous memory. Reviewed by: julian, alc, dg
* While comparing this with OpenBSD (ie: trying to figure out what mkstemps()peter1999-12-111-2/+2
| | | | | | | | is good for... :-)), I discovered that part of the change when mkstemps() was brought in was missed - it was missing the termination case to make sure it doesn't walk into the suffix. This isn't the same code OpenBSD has, I think this is a little better as we terminate the loop in a better spot.
* Remove discussion of %C in the BUGS section. The limitations on validsheldonh1999-12-091-4/+0
| | | | | centuries are much more serious than those mentioned and this is not the place to discuss the limitations of time_t.
* Prevent digit-gobbling for all but %l and %e, which can't be fixed.sheldonh1999-12-082-12/+85
| | | | | | | | Discuss in the BUGS section of the manpage, problems involved with the use of %C, %e, %l, %p, %U and %W. PR: 13901 Reported by: scott@chronis.pobox.com
* Accept 12 for %l, because it's logical to expect "%l:%M" to work forsheldonh1999-12-081-1/+1
| | | | "12:00" and because strftime(3) does the same.
* Add a cross-reference to fabs(3) man page.chris1999-12-071-0/+1
| | | | | PR: docs/15337 Submitted by: Bruce A. Mah <bmah@ca.sandia.gov>
* Add reference to netgraph(4) in the 'see also' section.archie1999-12-061-0/+1
|
* Fix buffer overflows.kris1999-12-051-2/+2
| | | | Reviewed by: imp, audit@freebsd.org
* Add RLIMIT_SBSIZE here, too.green1999-12-031-0/+4
|
* Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS insheldonh1999-12-021-1/+8
| | | | | | | | | | | the environment. This allows big ID warnings to be suppressed for vipw and chpass as well. Since the environment variable test is only performed for callers of pw_scan() that do not set pw_big_ids_warning, the test can still be overriden. Currently, chpass and pwd_mkdb are the only users of pw_scan() and neither of them overrides the environment variable test.
* Separate some common sysctl code into sysctl_find_oid() and callinggreen1999-12-011-0/+4
| | | | | thereof. Also, make the errno returns _correct_, and add a new one which is more appropriate.
* %Ex -> %Ef to not conflict with POSIXache1999-11-305-13/+53
| | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example
* Document %Ex and %OBache1999-11-301-2/+4
|
* Stricter checking %A vs %aache1999-11-301-11/+13
|
* Fix %C handlingache1999-11-301-14/+52
| | | | | | Use locale for %c Add %+ Add %Ex and %OB
* Add %Ex extension to determine "%e %b" or "%b %e" orderache1999-11-303-8/+22
| | | | Separate alternative for O and E cases
* style fixes, remove extra braces.alfred1999-11-291-17/+20
| | | | | | | | | | | | readdir_r is not POSIX according to POSIX_SOURCE, bruce says: > readdir_r() is in the _POSIX_SOURCE section, but is not a POSIX.1-1990 > function. It's POSIX.1-1996 so it should be under a different feature > test which we don't support yet. make sure errno is saved so that its contents are cleared unless necessary. Submitted by: bde
* Provide a man page for Alfreds lovely readdir_r function. Alsowes1999-11-292-5/+27
| | | | | fixed a minor indentation nit and added a few {}s to make readdir_r easier on old eyes.
* Provide and document ctermid_r function.wes1999-11-282-2/+23
|
* Document the getlogin_r function.wes1999-11-281-2/+22
|
* Provide the getlogin_r function.wes1999-11-281-0/+18
|
* add pthread_cancel, obtained from OpenBSD.alfred1999-11-281-0/+44
| | | | | | | | | | | | | | eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources. the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books. add readdir_r to both libc and libc_r add some 'const' attributes to function parameters Reviewed by: eischen, jasone
* General clean-up of socket.h and associated sources to synchronise upphk1999-11-249-21/+48
| | | | | | | | | | | | with NetBSD and the Single Unix Specification v2. This updates some structures with other, almost equivalent types and effort is under way to get the whole more consistent. Also removes a double definition of INET6 and some other clean-ups. Reviewed by: green, bde, phk Some part obtained from: NetBSD, SUSv2 specification
* Allow empty UIDs if we are processing NIS records. I am not entirelyeivind1999-11-221-2/+4
| | | | | | | | happy with how this end up and will re-visit the entire empty field problem, but this patch solves the NIS problem for now. Submitted by: Dan Nelson <dan@emsphone.com> PR: 14865,14984
* Make __sfp() even more thread-safe.dt1999-11-211-1/+1
|
* Add (FILE *) locking.dt1999-11-201-0/+9
|
* Make __sfp() (FILE allocator) thread-safe: added locking like in malloc().dt1999-11-201-0/+11
|
* Fix HISTORY - the copyright header on the file of the GCC version wasobrien1999-11-201-4/+4
| | | | | | misleading. Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org>
OpenPOWER on IntegriCloud