summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-303-3/+3
| | | | Add FreeBSD Id tag where missing.
* Back out the s/int */size_t */ commit.obrien2002-12-302-2/+2
| | | | | It makes a difference on 64-bit arches, and no one really wants a 2^64 block size [yet].
* Fix LP64 architectures and especially ia64. Functions that returnmarcel2002-12-302-0/+2
| | | | | | | | | a pointer and lack a prototype will have the return value (assumed to be an integer) zero-extended to a pointer. On ia64 this is unconditionally fatal as it zeroes-out the region bits, forming an invalid pointer. Fix the sigsegv by including <stdlib.h>. Pointy hat: bbraun
* Remove BUGS section indicating that these calls are unimplemented.rwatson2002-12-295-15/+15
| | | | | | Update copyrights. Obtained from: TrustedBSD Project
* Update acl_set.3, missed in last round:rwatson2002-12-291-11/+19
| | | | | | | | - Update BUGS: this stuff is implemented. - Update last modified date. - Document acl_set_link_np() call. Obtained from: TrustedBSD Project
* Update libc POSIX.1e code and documentation to reflect:rwatson2002-12-298-44/+164
| | | | | | | | | | - Updated copyrights, modified dates - Remove "BUGS" entry indicating that ACLs are unimplemented - Implement acl_*_link() library wrapper variants for get, set, delete, aclvalid. - Document acl_*_link() calls. Obtained from: TrustedBSD Project
* Use `useconds_t' instead of `u_int' or `unsigned int' where appropriate.mike2002-12-294-7/+7
|
* english(4) police.schweikh2002-12-2721-25/+25
|
* Silence casting away constness warnings.alfred2002-12-271-5/+12
| | | | | Make cgetmatch's locals const. Make cdbget take a const string and copy it into a buffer.
* Fix a small typo.tjr2002-12-271-1/+1
|
* Slight tuning if teh KSE man page to indicate some functionality isjulian2002-12-271-29/+33
| | | | not yet inplemented and to clear up some wording.
* Be more consistent with "static".tjr2002-12-271-1/+1
|
* Add an implementation of the POSIX wordexp() and wordfree() functions,tjr2002-12-263-2/+518
| | | | | | | which perform shell-style word expansion on strings. This is still a little rough around the edges. PR: 13420
* Spelling: s/then/than/ where appropriate.ru2002-12-241-3/+3
|
* mdoc(7) police: Deal with self-xrefs.ru2002-12-245-5/+4
|
* Document protection bits.trhodes2002-12-231-0/+16
| | | | | PR: 46252 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
* Fixed the abuses of .Ql visible on stderr in troff mode.ru2002-12-231-6/+6
| | | | PR: docs/37176
* Back out the -fpcc-struct-return fixes.kan2002-12-222-24/+68
| | | | Approved by: re (rwatson)
* Fix style (no space after return, twice-too-big continuation) andjmallett2002-12-221-2/+2
| | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde
* Reduce libc's memory footprint by lazily allocating memory used internallybbraun2002-12-211-9/+22
| | | | | | by setproctitle(). Reviewed by: jkh
* Reduce libc.so's memory footprint by lazily allocating memory used internallybbraun2002-12-212-4/+16
| | | | | by basename() and dirname(). Reviewed by: eric
* Import newer versions of div() and ldiv() from NetBSD which handletjr2002-12-212-68/+24
| | | | | | the -fpcc-struct-return calling convention properly instead of returning garbage. This may break backwards compatibility with some old binaries that were compiled when -fno-pcc-struct-return was the default.
* Document the fact that the printf() family of functions return negativetjr2002-12-201-2/+14
| | | | | | | values (EOF in our case) on error, and some of the possible errno values in an Errors section. PR: 39257
* C99 standardised the vscanf() family of functions, update Standardstjr2002-12-201-2/+5
| | | | section to reflect this.
* Stylistic changes:mike2002-12-201-11/+14
| | | | | | | | | | | o Fix an English error (comma splice) and poorly worded sentence. o Fix KNF ordering of variables (pointers come before arithmetic types). o Restore hand-optimization of sizeof()-1, instead of strlen(). o Remove unneeded local variables in strerror_r(). Test by: strerror regression test Requested by: bde Reviewed by: bde
* Document what really occurs when we obtain an error.trhodes2002-12-201-6/+9
| | | | | PR: 43357 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
* Grammatical fixup: s/be the -1/be -1/ceri2002-12-191-1/+1
| | | | MFC after: 1 day
* Add back the Standards section claiming conformance to 1003.1-2001 andtjr2002-12-191-10/+13
| | | | C99 now that all known standards-related bugs have been fixed.
* Write the message to stderr, not file descriptor 2, so that perror()tjr2002-12-191-1/+7
| | | | writes to the correct stream if stderr has been redirected with freopen().
* Use strerror_r() to format the error message so that strerror()'s statictjr2002-12-191-1/+4
| | | | | | | | buffer does not get clobbered. ISO/IEC 9899:1999 7.21.6.2 3: "The implementation shall behave as if no library function calls the strerror function."
* mdoc(7) police: "The .Fa argument.".ru2002-12-19178-396/+991
|
* mdoc(7) police: Fixed a few .Fa abuses.ru2002-12-192-4/+6
|
* mdoc(7) police: excessive quotes.ru2002-12-191-1/+1
|
* Rearrange strerror() so that its itoa procedure can be used withmike2002-12-182-86/+45
| | | | | | | | | | | | | | | strerror_r(). Doing this allows us to ensure that strerror_r() always fills the supplied buffer regardless of EINVAL or ERANGE errors. strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. Remove internal regression test for strerror() and strerror_r(). This will be reincarnated in src/tools/regression/lib/libc/string. In strerror(3), add a comment about strerror()'s bogus return type. PR: 44356
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.ru2002-12-1855-195/+196
|
* mdoc(7) police: "The .Fn function".ru2002-12-1876-64/+468
|
* mdoc(7) police: "The .Fn system call".ru2002-12-183-0/+18
|
* mdoc(7) police: "The .Fn function".ru2002-12-1833-35/+141
|
* mdoc(7) police: Fixed the .Nm abuse.ru2002-12-181-3/+3
|
* mdoc(7) police: Tidy up the syscall language.ru2002-12-18147-668/+1011
| | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
* Document what happens when the format string contains insufficienttjr2002-12-181-0/+23
| | | | | | | | conversion specifications to completely specify the resulting struct tm. PR: 46331 Submitted by: Christian S.J. Peron MFC after: 2 weeks
* Change the name for the local unix-socket based protocolmbr2002-12-162-5/+26
| | | | | | | | | from "unix" back to "local". Add some compat stuff so both ways work for some time. Reviewed by: phk Approved by: imp (UPDATING) Requested by: iedowse, lukem@netbsd.org
* o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. Itmaxim2002-12-161-1/+1
| | | | | | | | does not hurt anything because uipc_ctloutput() does not check sopt->sopt_level. Pointed out by: ru MFC after: 1 week
* This is David Schultz's swapoff code which I am finally able to commit.dillon2002-12-152-18/+46
| | | | | | | This should be considered highly experimental for the moment. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 3 weeks
* o Fix bogus getsockopt(2) call: swap SOCK_STREAM and LOCAL_PEERCRED.maxim2002-12-151-1/+1
| | | | | | | | | The bug does not affect anything because SOCK_STREAM == LOCAL_PEERCRED == 0x1. PR: bin/46165 Submitted by: Alain Thivillon <at@rominet.net> Reviewed by: dd MFC after: 1 week
* mdoc(7) police: markup overhaul.ru2002-12-141-10/+15
|
* Add an implementation of the POSIX.1 sockatmark(3).fenner2002-12-133-2/+152
|
* mdoc(7) police: sort xrefs in SEE ALSO.ru2002-12-132-2/+2
|
* Fix the HISTORY to match reality. They were never MFC'ed to 4.X.trhodes2002-12-121-1/+1
| | | | | Submitted by: R. Imura <imura@ryu16.org> Approved by: re (murray)
* Uniformly refer to a file system as "file system".ru2002-12-1225-151/+151
| | | | Approved by: re
OpenPOWER on IntegriCloud