summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tweak;jmc2012-04-121-2/+2
|
* tweak previous;jmc2012-04-121-5/+6
|
* alloca.c cannot be usedderaadt2012-04-1213-34/+12
|
* alloca is NOT machine dependent; it has exactly the samederaadt2012-04-121-7/+3
| | | | | effective result. its use is NOT discouraged -- it is not common, but when you need it, there is nothing else that will do.
* Since threads are becoming more common, this "work around thederaadt2012-04-121-136/+0
| | | | | | compiler not doing alloca in C using malloc" is unworkable. It is not safe, and we can never use it. ok guenther kurt
* more rfork mop-upderaadt2012-04-124-30/+9
|
* mmap(2) updatedariane2012-04-121-50/+72
| | | | | | | | Add that len=0 will yield failure with EINVAL. While here, rephrase some of the text. Get rid of MAP_SWAP: its future came and went but nothing came of it. Lots of hackroom input; including feedback from jmc.
* remove rfork(); ok guenther miodderaadt2012-04-1217-784/+40
|
* crank major for sh gcc4 switchjsg2012-04-121-1/+1
|
* kill lfs system call lines and libc stubsderaadt2012-04-121-2/+1
|
* New system call: getdtablecount(2) returns the number of filederaadt2012-04-122-37/+73
| | | | | descriptors the process currently has open. ok guenther miod gilles ...
* document getdelim() and getline(), and a grammar fix whilst here;jmc2012-04-121-4/+6
| | | | | | from Jan Stary ok fgsch
* Mark outermost frame such that backtraces in thread terminate atkettenis2012-04-111-2/+3
| | | | | | __tfork_thread(). ok guenther@
* complete function name.espie2012-04-111-2/+2
| | | | | | | This shit is so silly, length-wise, that it still makes some sense if you forget to write half of it. (noticed by jmc@)
* tweak previous;jmc2012-04-116-44/+36
|
* In sendmsg() permit at most 10% of maxfiles to be in-flightderaadt2012-04-111-2/+7
| | | | | | during CMSG_DATA SCM_RIGHTS fd transfers. If this is exceeded, return EMFILE. ok claudio guenther gilles
* Provide __tfork_thread() for hppa64. This makes libc compile again.jsing2012-04-111-0/+57
| | | | ok miod@
* fuss with detailsespie2012-04-116-31/+36
|
* new clean-room manpages for posix_spawn, unencumbered by any POSIX bullshit.espie2012-04-1111-1096/+333
| | | | | | "just commit it" deraadt@ (nits to be fixed soon)
* Do not pick the network number as alias on entries with no aliaseric2012-04-101-3/+2
| | | | | | defined. ok deraadt@
* Document new KERN_NTHREADS and KERN_MAXTHREAD sysctlsguenther2012-04-101-2/+8
|
* range check st_size before calling calloc()deraadt2012-04-061-3/+7
| | | | ok millert
* Document that openat(), etc are safe to call from a signal handler.matthew2012-04-032-40/+40
| | | | | | While here, recognize that _Exit() and raise() are C functions. ok deraadt@, guenther@, jmc@
* tweak previous;jmc2012-04-031-3/+3
|
* simplify the strlcpy/strlcat manual page substantially. do lessderaadt2012-04-021-70/+58
| | | | | | | | | | | | explaining of "what a C string is", and make it more clear that these functiosn BEHAVE EXACTLY LIKE snprintf with "%s"! (anyone who wants to write a 'strlcpy considered harmful' paper should probably write a 'strlcpy and snprintf considered harmful' paper instead). note to those from other projects reading this commit message: It would be very good if this new manual was picked up in your project. ok jmc millert krw
* fix previous;jmc2012-04-011-1/+2
|
* remind people to think of the poor file descriptorsderaadt2012-04-011-3/+14
| | | | with claudio and jmc
* Bump standards years, as we conform to the new versions tooguenther2012-03-261-4/+4
| | | | ok jmc@
* strsignal() was standardized in POSIX-2008guenther2012-03-261-2/+7
| | | | ok millert@
* The arguments scandir() and alphasort() have changed; show that andguenther2012-03-241-4/+26
| | | | | | give some history. ok matthew@ millert@ jmc@ naddy@
* we don't mention LIBRARY: cespie2012-03-2310-30/+10
| | | | "of course" deraadt@
* clean the sigact in a portable way; ok matthewderaadt2012-03-221-2/+5
|
* bump majors on libc and rthreads for the additions to libc and transferguenther2012-03-221-1/+1
| | | | of __tfork_thread from rthreads to libc
* Make DIR a private type within libc, give it the same underlyingmatthew2012-03-225-5/+23
| | | | | | typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@
* Update alphasort() and scandir()'s argument types to match POSIX:guenther2012-03-221-5/+5
| | | | | | | use "const struct dirent **" instead of "const void *". Also, add __restrict to readdir_r(). ok matthew@
* Add dirfd() as a function to libc per POSIX requirement; dirfd() macromatthew2012-03-222-2/+14
| | | | | | to be pruned later when DIR is made an opaque type. ok guenther@; prodding by brad@ for VLC and other ports
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-2214-2/+923
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* Implement getdelim(3) and getline(3).fgsch2012-03-214-3/+332
| | | | | | | | | Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further improvements would happen in tree. ok millert@; discussed with many others ports cleanup by naddy@, sthen@. Antti Harri, Gonzalo L. R. and myself.
* Implement execvpe(3) and posix_spawn(3) and family. Based onmatthew2012-03-2114-17/+1839
| | | | | | | | FreeBSD's implementation via Frank Denis, with various cleanups and tweaks by me. ok deraadt@, guenther@; discussions and tweaks from many others jmc@ promises to help me further with the man pages in tree
* Fix a bug where random() always returns 0 when srandom() is seededmillert2012-03-211-2/+3
| | | | | with 0. Use 1 and not 0 as the first element of the state array, similar to what glibc does. OK nicm@
* the disease is spreadingdlg2012-03-201-3/+3
|
* Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. Variousguenther2012-03-133-2/+346
| | | | syntax and grammar fixes from jmc@
* - fix a mistake in the list headerjmc2012-03-101-3/+3
| | | | - zap trailing whitespace
* Try to document the new settings of net.inet.tcp.rfc3390.claudio2012-03-101-3/+7
|
* tweak previous;jmc2012-03-061-3/+3
|
* Add the _POSIX_MONOTONIC_CLOCK symbol and the sysconf(3)ajacoutot2012-03-062-3/+8
| | | | | | | | | | | _SC_MONOTONIC_CLOCK variable. from Brad No libc minor crank needed, as no API has been changed, per se (deraadt). ports bulk testing by landry@ small man rewording from thib@ ok millert@ otto@ deraadt@
* New threads now inherit their TCB address from their parent threadguenther2012-03-041-4/+3
|
* Drop the rpcauth(3) MLINK, there is no function of that name.schwarze2012-03-043-14/+14
| | | | Joint work with and OK haesbaert@ jmc@
* Update to tzcode2012a from munnari.oz.aumillert2012-03-014-20/+36
|
* - Test for the retrieved page address not being NULL. This turns free((void*)1)otto2012-02-291-2/+7
| | | | | | into an bogus pointer error instead of a segfault. - Document that we use the assumption that a non-MAP_FIXED mmap() with hint 0 never returns NULL.