summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* mdoc(7) police: formatting nits.ru2002-11-2915-33/+59
| | | | Approved by: re
* try SIOCGIFINDEX 1st to be able to use network aliasing.ume2002-11-281-0/+13
| | | | | Submitted by: jlemon Approved by: re
* Describe newly added fields in the KSE and thread mailboxes.archie2002-11-221-0/+28
| | | | Approved by: re
* libc_r wasn't so tied to libc for 22 months.ru2002-11-1831-153/+107
|
* This file has reincarnated as src/include/uuid.h with a whole newmarcel2002-11-181-59/+0
| | | | future ahead of it.
* libc header files are normally in src/include. Therefore, uuid.h hasmarcel2002-11-181-2/+0
| | | | | | | | | | been repo-copied from src/lib/libc/uuid to src/include. Update the makefiles. While in src/include/Makefile, reformat and resort INCS. Reverting the functional change only involves removing uuid.h. Pompted by: ru
* Update SYNOPSIS to reflect the standardized header. Add STANDARDSmike2002-11-171-4/+13
| | | | | | section. PR: 43270
* goto break; != break;dougb2002-11-171-3/+3
| | | | | | I've no idea if this is the right behavior for the library, but this at least fixes the build, and matches what seems to be alfred's intent in the commit message for 1.19.
* Rework the sysconf(3) interaction with aio:alfred2002-11-171-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | sysconf.c: Use 'break' rather than 'goto yesno' in sysconf.c so that we report a '0' return value from the kernel sysctl. vfs_aio.c: Make aio reset its configuration parameters to -1 after unloading instead of 0. posix4_mib.c: Initialize the aio configuration parameters to -1 to indicate that it is not loaded. Add a facility (p31b_iscfg()) to determine if a posix4 facility has been initialized to avoid having to re-order the SYSINITs. Use p31b_iscfg() to determine if aio has had a chance to run yet which is likely if it is compiled into the kernel and avoid spamming its values. Introduce a macro P31B_VALID() instead of doing the same comparison over and over. posix4.h: Prototype p31b_iscfg().
* Disconnect the userland get/set/swapcontext() functions fromdeischen2002-11-164-6/+6
| | | | | | | | | libc. I want to keep these in some version for the thread library/ies, but don't know whether to have them repo-copied to libc_r or renamed and kept in libc. Change the name of an alpha macro that was changed with the system call commit.
* Provide more correct default values for sysconf(3) reporting of the AIOalfred2002-11-161-0/+3
| | | | | | | | | | | | | subsystems capabilities: _SC_AIO_LISTIO_MAX returns the default of _POSIX_AIO_LISTIO_MAX _SC_AIO_MAX returns the default _POSIX_AIO_MAX _SC_AIO_PRIO_DELTA_MAX returns the default of 0 Without these adjustments the values returned are -1 even when the aio side of the kernel returns '0' for them which is incorrect. Noticed by: Craig Rodrigues <rodrigc@attbi.com>
* Sort SRCS.marcel2002-11-161-5/+4
|
* Define `Sudden_Underflow' when compiling for the Alpharobert2002-11-141-0/+3
| | | | | | | | | | | | | | | | | | | | | architecture, mainly to avoid getting a SIGFPE signal sent when calling strtod(3) with certain input. The SIGFPE has been sent because the code was not aware that a Gradual Underflow is handled in software via traps on the Alpha architecture, but is not implemented in our Alpha kernel layer. With `Sudden_Underflow' defined, strtod(3) should not depend on Gradual Underflow and adjust its calculations accordingly, which means that other, more subtle errors than the sending of SIGFPE could be solved by this. Discussed with: bde PR: alpha/12623 PR: alpha/17032 PR: alpha/43567 MFC after: 7 days
* bde points out that the LIBC_MAJOR macro doesn't exist and requestsimp2002-11-141-3/+6
| | | | | | | that we not use it here. In its place I've put a comment about the current state of play. Submitted by: bde
OpenPOWER on IntegriCloud