summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc(7) police: Added the missing .Os call; it's not strictlyru2002-12-116-0/+6
| | | | | | | necessary nowadays, but is documented as "required", and may become so again in the future. Approved by: re
* Fixed the parameter's name.ru2002-12-111-1/+1
| | | | | | PR: docs/46183 Submitted by: Dirk Gouders <gouders@et.bocholt.fh-ge.de> Approved by: re
* mdoc(7) police: tiny nits.ru2002-12-091-4/+4
| | | | Approved by: re
* mdoc(7) police: tiny nits.ru2002-12-093-8/+11
| | | | Approved by: re
* mdoc(7) police: overhaul.ru2002-12-091-109/+232
| | | | Approved by: re
* mdoc(7) police: nits.ru2002-12-091-15/+18
| | | | Approved by: re
* mdoc(7) police: nits.ru2002-12-091-2/+3
| | | | Approved by: re
* Do not guarantee an overflow of tm_year when doing the binary search inpeter2002-12-051-0/+6
| | | | | | localtime/mktime/tmcomp and friends on ia64. Approved by: re
* Capitalize ASCII code names.ru2002-12-052-8/+10
| | | | Approved by: re
* Consistently mark std(in|out|err) with .Dv, because that's how theyru2002-12-0417-31/+38
| | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re
* mdoc(7) police: markup overhaul.ru2002-12-046-14/+22
| | | | Approved by: re
* mdoc(7) police: markup overhaul.ru2002-12-047-58/+82
| | | | Approved by: re
* mdoc(7) police: overhaul.ru2002-12-048-109/+132
| | | | Approved by: re
* Minimal libc for PowerPC.grehan2002-12-0418-0/+1149
| | | | | | Reviewed by: benno Approved by: re (blanket)
* Replace rev 1.33 with a real fix. The problem was integer overflowspeter2002-12-021-8/+2
| | | | | | | | | | | | | | | | when trying to store the year in a signed int. The maximum time_t on ia64 is around 292 billion years in the future, but 'int' and struct tm.tm_year can only represent then ext 2.1 billion years or so. This solves the problem of mktime/localtime looping on ia64. Unfortunately, the standards say that tm_year is an 'int', so we are still stuck with a y2147483647 bug. bash2's configure script looks for bugs in mktime() and fails on ia64 because of this. However, mktime() on FreeBSD fails the test normally anyway so this is no big loss. This change does not affect any other platforms besides ia64. Approved by: re
* mdoc(7) police: sweep.ru2002-11-2915-88/+92
|
* mdoc(7) police: sweep.ru2002-11-292-12/+14
|
OpenPOWER on IntegriCloud