summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add an implementation of the POSIX wordexp() and wordfree() functions,Tim J. Robbins2002-12-263-2/+518
| | | | | | | | | | which perform shell-style word expansion on strings. This is still a little rough around the edges. PR: 13420 Notes: svn path=/head/; revision=108288
* Spelling: s/then/than/ where appropriate.Ruslan Ermilov2002-12-241-3/+3
| | | | Notes: svn path=/head/; revision=108260
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-245-5/+4
| | | | Notes: svn path=/head/; revision=108257
* Document protection bits.Tom Rhodes2002-12-231-0/+16
| | | | | | | | PR: 46252 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl> Notes: svn path=/head/; revision=108230
* Fixed the abuses of .Ql visible on stderr in troff mode.Ruslan Ermilov2002-12-231-6/+6
| | | | | | | PR: docs/37176 Notes: svn path=/head/; revision=108221
* Back out the -fpcc-struct-return fixes.Alexander Kabaev2002-12-222-24/+68
| | | | | | | Approved by: re (rwatson) Notes: svn path=/head/; revision=108176
* Fix style (no space after return, twice-too-big continuation) andJuli Mallett2002-12-221-2/+2
| | | | | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde Notes: svn path=/head/; revision=108168
* Reduce libc's memory footprint by lazily allocating memory used internallyRob Braun2002-12-211-9/+22
| | | | | | | | | by setproctitle(). Reviewed by: jkh Notes: svn path=/head/; revision=108163
* Reduce libc.so's memory footprint by lazily allocating memory used internallyRob Braun2002-12-212-4/+16
| | | | | | | | by basename() and dirname(). Reviewed by: eric Notes: svn path=/head/; revision=108152
* Import newer versions of div() and ldiv() from NetBSD which handleTim J. Robbins2002-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. Notes: svn path=/head/; revision=108151
* Document the fact that the printf() family of functions return negativeTim J. Robbins2002-12-201-2/+14
| | | | | | | | | | values (EOF in our case) on error, and some of the possible errno values in an Errors section. PR: 39257 Notes: svn path=/head/; revision=108121
* C99 standardised the vscanf() family of functions, update StandardsTim J. Robbins2002-12-201-2/+5
| | | | | | | section to reflect this. Notes: svn path=/head/; revision=108120
* Stylistic changes:Mike Barcroft2002-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 Notes: svn path=/head/; revision=108118
* Document what really occurs when we obtain an error.Tom Rhodes2002-12-201-6/+9
| | | | | | | | PR: 43357 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> Notes: svn path=/head/; revision=108113
* Grammatical fixup: s/be the -1/be -1/Ceri Davies2002-12-191-1/+1
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=108105
* Add back the Standards section claiming conformance to 1003.1-2001 andTim J. Robbins2002-12-191-10/+13
| | | | | | | C99 now that all known standards-related bugs have been fixed. Notes: svn path=/head/; revision=108091
* Write the message to stderr, not file descriptor 2, so that perror()Tim J. Robbins2002-12-191-1/+7
| | | | | | | writes to the correct stream if stderr has been redirected with freopen(). Notes: svn path=/head/; revision=108090
* Use strerror_r() to format the error message so that strerror()'s staticTim J. Robbins2002-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." Notes: svn path=/head/; revision=108089
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-19178-396/+991
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed a few .Fa abuses.Ruslan Ermilov2002-12-192-4/+6
| | | | Notes: svn path=/head/; revision=108085
* mdoc(7) police: excessive quotes.Ruslan Ermilov2002-12-191-1/+1
| | | | Notes: svn path=/head/; revision=108083
* Rearrange strerror() so that its itoa procedure can be used withMike Barcroft2002-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 Notes: svn path=/head/; revision=108044
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-1855-195/+196
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-1876-64/+468
| | | | Notes: svn path=/head/; revision=108037
* mdoc(7) police: "The .Fn system call".Ruslan Ermilov2002-12-183-0/+18
| | | | Notes: svn path=/head/; revision=108035
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-1833-35/+141
| | | | Notes: svn path=/head/; revision=108030
* mdoc(7) police: Fixed the .Nm abuse.Ruslan Ermilov2002-12-181-3/+3
| | | | Notes: svn path=/head/; revision=108029
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-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. Notes: svn path=/head/; revision=108028
* Document what happens when the format string contains insufficientTim J. Robbins2002-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 Notes: svn path=/head/; revision=108013
* Change the name for the local unix-socket based protocolMartin Blapp2002-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 Notes: svn path=/head/; revision=107952
* o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. ItMaxim Konovalov2002-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 Notes: svn path=/head/; revision=107929
* This is David Schultz's swapoff code which I am finally able to commit.Matthew 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 Notes: svn path=/head/; revision=107913
* o Fix bogus getsockopt(2) call: swap SOCK_STREAM and LOCAL_PEERCRED.Maxim Konovalov2002-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 Notes: svn path=/head/; revision=107895
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-141-10/+15
| | | | Notes: svn path=/head/; revision=107864
* Add an implementation of the POSIX.1 sockatmark(3).Bill Fenner2002-12-133-2/+152
| | | | Notes: svn path=/head/; revision=107836
* mdoc(7) police: sort xrefs in SEE ALSO.Ruslan Ermilov2002-12-132-2/+2
| | | | Notes: svn path=/head/; revision=107826
* Fix the HISTORY to match reality. They were never MFC'ed to 4.X.Tom Rhodes2002-12-121-1/+1
| | | | | | | | Submitted by: R. Imura <imura@ryu16.org> Approved by: re (murray) Notes: svn path=/head/; revision=107796
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-1225-151/+151
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: Added the missing .Os call; it's not strictlyRuslan Ermilov2002-12-116-0/+6
| | | | | | | | | | necessary nowadays, but is documented as "required", and may become so again in the future. Approved by: re Notes: svn path=/head/; revision=107744
* Fixed the parameter's name.Ruslan Ermilov2002-12-111-1/+1
| | | | | | | | | PR: docs/46183 Submitted by: Dirk Gouders <gouders@et.bocholt.fh-ge.de> Approved by: re Notes: svn path=/head/; revision=107741
* mdoc(7) police: tiny nits.Ruslan Ermilov2002-12-091-4/+4
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107707
* mdoc(7) police: tiny nits.Ruslan Ermilov2002-12-093-8/+11
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107706
* mdoc(7) police: overhaul.Ruslan Ermilov2002-12-091-109/+232
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107705
* mdoc(7) police: nits.Ruslan Ermilov2002-12-091-15/+18
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107704
* mdoc(7) police: nits.Ruslan Ermilov2002-12-091-2/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107702
* Do not guarantee an overflow of tm_year when doing the binary search inPeter Wemm2002-12-051-0/+6
| | | | | | | | | localtime/mktime/tmcomp and friends on ia64. Approved by: re Notes: svn path=/head/; revision=107648
* Capitalize ASCII code names.Ruslan Ermilov2002-12-052-8/+10
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107631
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-0417-31/+38
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-046-14/+22
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107616
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-047-58/+82
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107603