summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Remove part of my stateful locale patch that slipped into the previous rev.Tim J. Robbins2003-01-261-3/+0
| | | | Notes: svn path=/head/; revision=109880
* Initial implementation of the C99 feature whereby calling freopen() withTim J. Robbins2003-01-262-2/+94
| | | | | | | | | | | | | a NULL filename argument allows a stream's mode to be changed. At the moment it just recycles the old file descriptor instead of storing the filename somewhere and using that to reopen the file, as the standard seems to require. Strictly conforming C99 applications probably can't tell the difference but POSIX ones can. PR: 46791 Notes: svn path=/head/; revision=109871
* Bring shm functions closer the the opengroup standards.Alfred Perlstein2003-01-252-3/+3
| | | | | | | | PR: 47469 Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109831
* Bring semop() closer the the opengroup standards.Alfred Perlstein2003-01-251-1/+1
| | | | | | | | PR: 47471 Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109829
* Add an MLINK malloc.conf(5) -> malloc(3).Mike Barcroft2003-01-241-1/+2
| | | | Notes: svn path=/head/; revision=109803
* For "sensitive" processes, we always set the 'A' flag which causes abort()Poul-Henning Kamp2003-01-231-0/+7
| | | | | | | | | | | | | | | | to be called on first sight of trouble. "sensitive" is somewhat arbitrarily defined as "setuid, setgid, uid == root or gid == wheel". The 'A' option carries no performance penalty. It is not possible to override this setting: fix the program instead. Absentmindedly nodded OK to by: various Notes: svn path=/head/; revision=109754
* Remove EOL whitespaces.Maxim Konovalov2003-01-201-2/+2
| | | | Notes: svn path=/head/; revision=109564
* o Fix a typo.Maxim Konovalov2003-01-201-2/+3
| | | | | | | | | o Prepend a function name by .Fn macro. Reviewed by: archie Notes: svn path=/head/; revision=109562
* Sync with NetBSD -- sl_add() now returns an int.David E. O'Brien2003-01-192-9/+23
| | | | Notes: svn path=/head/; revision=109508
* Use __FBSDID.David E. O'Brien2003-01-1928-42/+66
| | | | Notes: svn path=/head/; revision=109501
* We don't need our own personal definition of __CONCAT.David E. O'Brien2003-01-181-4/+1
| | | | Notes: svn path=/head/; revision=109499
* Document that listen() can return EINVAL now.Thomas Moestl2003-01-171-0/+2
| | | | Notes: svn path=/head/; revision=109440
* Do a better job of documenting mincore(2), esp. the MINCORE_* flags.Tim J. Robbins2003-01-171-14/+46
| | | | Notes: svn path=/head/; revision=109404
* Fix memleak.Martin Blapp2003-01-161-2/+8
| | | | | | | | Reviewed by: rwatson MFC after: 2 weeks Notes: svn path=/head/; revision=109384
* Implement non-blocking tcp-connections.Martin Blapp2003-01-165-62/+437
| | | | | | | | | Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day Notes: svn path=/head/; revision=109359
* realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.Johan Karlsson2003-01-152-9/+9
| | | | | | | | | | | This also reverts the PATH_MAX -> MAXPATHLEN part of rev 1.3 of src/bin/realpath/realpath.c Requested by: imp Reviewed by: imp, bde Notes: svn path=/head/; revision=109331
* Add a missing word.Tim J. Robbins2003-01-151-1/+1
| | | | Notes: svn path=/head/; revision=109297
* Document the named semaphore functions. This could still use a bitTim J. Robbins2003-01-151-18/+165
| | | | | | | of polishing. Notes: svn path=/head/; revision=109275
* Actually add mac_prepare.3.Chris Costello2003-01-151-0/+85
| | | | | | | Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109274
* Cross-reference mac(4)Chris Costello2003-01-155-0/+5
| | | | | | | Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109273
* s/SEE_ALSO/SEE ALSO/Chris Costello2003-01-152-2/+5
| | | | | | | | | Cross-reference mac(4) and mac(9) Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109272
* o Document mac_prepare() and associated functionsChris Costello2003-01-158-33/+61
| | | | | | | | | | | | | o Link mac_get_pid.3 to mac_get.3 o Update SEE ALSO to refer to mac_prepare, and added missing references o Remove clause #3 on my work o Update mac_get.3 for the updated MAC API Sponsored by: DARPA, Network Associates Laboratories Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=109263
* o Remove clause #3Chris Costello2003-01-141-5/+9
| | | | | | | | | o Document mac_set_link(). Sponsored by: DARPA, Network Associates Labs Notes: svn path=/head/; revision=109260
* Back out previous; sharing semaphores between processes only worksTim J. Robbins2003-01-141-8/+16
| | | | | | | in certain special cases. Notes: svn path=/head/; revision=109226
* Sharing semaphores between processes works now, so remove the stale commentsTim J. Robbins2003-01-141-16/+8
| | | | | | | | about it always returning EPERM. Document that ENFILE occurs when the limit on kernel semaphores is reached. Notes: svn path=/head/; revision=109222
* Cross reference sem(4) so users know which kernel options are requiredTim J. Robbins2003-01-145-5/+10
| | | | | | | to use these semaphore functions. Notes: svn path=/head/; revision=109220
* Add the newly created semaphore to the named semaphore list in sem_open()Tim J. Robbins2003-01-142-2/+4
| | | | | | | | | so that multiple opens of the same semaphore without an intervening sem_close() return the same object, and so that sem_close() does not segfault while trying to remove the item from the list. Notes: svn path=/head/; revision=109219
* Including <time.h> before <aio.h> has not been necessary for a while now.Tim J. Robbins2003-01-141-1/+0
| | | | Notes: svn path=/head/; revision=109217
* Mention the oddities and requirements for mount operations executed byJoerg Wunsch2003-01-131-3/+16
| | | | | | | | | | | non-root users. PR: docs/42651 Submitted by: Thomas Seck <tmseck@netcologne.de> MFC after: 3 days Notes: svn path=/head/; revision=109186
* Refer to 1003.1 instead of 1003.2 in the Standards section.Tim J. Robbins2003-01-136-6/+6
| | | | Notes: svn path=/head/; revision=109174
* Lock the stream before calling __sfileno() to retrieve the file descriptor.Tim J. Robbins2003-01-131-2/+10
| | | | | | | 1003.1-2001 requires that fileno() behave as if it locks the stream. Notes: svn path=/head/; revision=109155
* Add missing word to "Return Values" section.Tim J. Robbins2003-01-131-0/+1
| | | | Notes: svn path=/head/; revision=109154
* Fix struct iovec documentation to match reality.Mike Barcroft2003-01-122-2/+2
| | | | | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109140
* Add a manual page for the lio_listio() syscall. Still needs a bitTim J. Robbins2003-01-122-1/+177
| | | | | | | of polishing. Notes: svn path=/head/; revision=109135
* Implement missing fpgetround() and fpsetround().Marcel Moolenaar2003-01-113-2/+84
| | | | Notes: svn path=/head/; revision=109096
* The macro versions of putc() and putchar() are gone.Tim J. Robbins2003-01-101-9/+3
| | | | Notes: svn path=/head/; revision=109057
* There is no macro version of getc() anymore.Tim J. Robbins2003-01-101-2/+1
| | | | Notes: svn path=/head/; revision=109056
* Bring the list of function-like macros up to date with reality.Tim J. Robbins2003-01-101-28/+20
| | | | Notes: svn path=/head/; revision=109055
* spell multiple correctly.Alfred Perlstein2003-01-101-1/+1
| | | | Notes: svn path=/head/; revision=109051
* Document clearerr_unlocked(), feof_unlocked(), ferror_unlocked()Tim J. Robbins2003-01-102-3/+38
| | | | | | | and fileno_unlocked(). Notes: svn path=/head/; revision=109050
* Add a manual page for flockfile(), ftrylockfile(), and funlockfile().Tim J. Robbins2003-01-102-1/+106
| | | | Notes: svn path=/head/; revision=109047
* Document getc_unlocked(), getchar_unlocked(), putc_unlocked(),Tim J. Robbins2003-01-103-6/+68
| | | | | | | and putchar_unlocked(). Notes: svn path=/head/; revision=109043
* Add function versions of getchar_unlocked(), getc_unlocked(),Tim J. Robbins2003-01-102-1/+96
| | | | | | | | | putchar_unlocked(), putc_unlocked(), feof_unlocked(), ferror_unlocked(), clearerr_unlocked(), and fileno_unlocked(). The first four are required by POSIX. The rest are provided for consistency. Notes: svn path=/head/; revision=109042
* Avoid a memory leak by using reallocf() instead of realloc().Tim J. Robbins2003-01-101-1/+1
| | | | Notes: svn path=/head/; revision=109040
* Prototype __getcwd() to avoid a warning.Tim J. Robbins2003-01-101-0/+2
| | | | Notes: svn path=/head/; revision=109039
* #include <ctype.h> for prototypes (or macro versions) ofTim J. Robbins2003-01-101-0/+1
| | | | | | | tolower() and isdigit(). Notes: svn path=/head/; revision=109038
* #include "namespace.h" to get a prototype for _err().Tim J. Robbins2003-01-071-0/+2
| | | | Notes: svn path=/head/; revision=108868
* Remove an unused variable: mbresult.Tim J. Robbins2003-01-071-1/+0
| | | | Notes: svn path=/head/; revision=108867
* #include <stdlib.h> for free()'s prototype.Tim J. Robbins2003-01-071-0/+1
| | | | Notes: svn path=/head/; revision=108866
* Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.Tim J. Robbins2003-01-071-22/+22
| | | | Notes: svn path=/head/; revision=108865