summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2010-06-29RTHREADS option is gone, now it's a sysctl. spotted by jmcTed Unangst
2010-06-29briefly document kern.rthreadsTed Unangst
2010-06-29use a union to align the dns answer buffer until gcc4 is fixedTheo de Raadt
2010-06-29Make unsetenv(NULL) and unsetenv("") give EINVAL, per POSIX. ok deraadt@Christian Weisgerber
2010-06-02Avoid using and end pointer since strnlen(string, -1) is legalTodd C. Miller
and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@
2010-05-26Switch amd64 and sparc64 over to gcc4; bump libc major to deal with the ABIMark Kettenis
corner cases that were fixed in gcc4, and changes in libgcc that we may have missed. ok kettenis@
2010-05-26oops - forgot to check for trailing whitespace;Jason McIntyre
2010-05-26reword the 'D' dump bit to make it clear that the malloc.out file needsThordur I. Bjornsson
to exist before exit for malloc to dump stats in it. tweaks from jmc@ ok otto@,jmc@
2010-05-24Add HISTORY section, mostly for strnlen() but include strlen() forTodd C. Miller
completeness (verified).
2010-05-21remove unused variable.Charles Longeau
ok millert@ tedu@
2010-05-19remove unused variableCharles Longeau
ok nicm@
2010-05-19tweak previous;Jason McIntyre
2010-05-18add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromTed Unangst
brad and millert, with hints from guenther, jmc, and otto I think. ok previous.
2010-05-14Defer installing signal handlers until echo is disabled so that weTodd C. Miller
get suspended normally when not the foreground process. Fix potential infinite loop when restoring terminal settings if process is in the background when restore occurs. OK miod@
2010-05-09Mark _MCOUNT_DECL as __used to prevent gcc4 from optimizing it away when itMark Kettenis
is only referenced from inline asm. ok jsg@
2010-05-06Do not return success when the IPv6 address has a :: and 8 hex sections.Claudio Jeker
::1:2:3:4:5:6:7:8 for example. PR 6277, fix by Jun KAWAI (kwj at vlax net) OK henning, gilles, jsing (who also reminded me to remove the now wrong comment about superfluous ::)
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-04-20Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledTheo de Raadt
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
2010-04-14Mention that kern.somaxconn is the real upper limit to the listenTodd C. Miller
queue depth. OK deraadt@ kettenis@
2010-04-12clarify that strptime reads, not writes, strings when handling %%.Ted Unangst
ok deraadt jmc
2010-04-07- nuke some unneeded Pp; from kristapsJason McIntyre
- small tweak while here
2010-04-03Add missing documention:Philip Guenthe
- fork1() flags: FORK_SIGHAND, FORK_PTRACE, and FORK_THREAD - RTHREADS kernel option - rfork() RFTHREAD flag (with a BUGS entry that it's not usable from C) ok tedu@
2010-04-02fix a potential memory leak found by zinovik@Ingo Schwarze
while here, make sure each error path sets YP_YPERR and make the function shorter and easier to read by using the idiom "if (error) goto fail" everywhere in the loop and by putting xdr_free in exactly one place near the end ok deraadt@
2010-04-01WARNINGS -> CAVEATS, and a little neccessary cleanup;Jason McIntyre
2010-04-01typoTheo de Raadt
2010-04-01document that setting the time of the machine is unsafe. explain why,Theo de Raadt
and suggest workarounds ok guenther
2010-03-30describe better what KERN_PROC_ARGV and KERN_PROC_ENV return; ok jmc@Otto Moerbeek
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2010-03-24Modify example not to use an assignment in the if statement. We shouldn'tMark Kettenis
teach people bad habits! ok krw@, jmc@, dlg@, thib@
2010-03-23Fix glob(3) to correctly return an error when its buffer space isNicholas Marriott
exhausted and GLOB_BRACE is given. globexp2() was ignoring errors returned from lower levels. While here, change globexp2() to return its return value normally rather putting it in a int pointer then always returning 0. ok otto
2010-03-22Various improvements, mainly regarding ERRORS.Ingo Schwarze
* Document EINVAL and EEXIST. * Neither mkstemp nor mkdtemp use lstat, but mktemp does. * Documenting ENOTDIR is useless, it is documented in lstat(2), mkdir(2) and open(2), and it's just one thing out of several that could go wrong. * Refer to lstat(2) instead of stat(2), which is actually used here. * State that two of these functions are standardized in the XPG. * Move the sentence about mkdtemp and mkstemps to the new STANDARDS section. * Get rid of the ugly ".So Li X Sc Ns s", just use "Xs" (suggested by jmc@). tweaks and ok jmc@ millert@
2010-03-21When all tried file names already existed, mktemp(3) returned withoutIngo Schwarze
setting errno(2). Behaviour unchanged for mkstemp[s] and mkdtemp. ok guenther deraadt
2010-03-12document PF_KEY; from sthen and myselfJason McIntyre
issue reported by Toni Mueller ok markus
2010-03-10It's unsetenv() that doesn't like `=' in the argument, not putenv().Matthias Kilian
ok millert@
2010-03-01explain KERN_NOSUIDCOREDUMP with less words and more precisionIngo Schwarze
ok jmc@ deraadt@ guenther@
2010-02-25Do not attempt to silently continue text for the last column of tablesIngo Schwarze
generated by .Bl -column .It <tab> on following lines. This is a workaround; fixing it properly in a way compatible with our old groff would require .Xo support for .Bl -column phrases in mandoc(1), which is too much work right now just to fix exactly this one place in our tree. ok jmc@ This commit fixes the last issue i'm aware of which prevented building our whole tree with mandoc. Not all pages format nicely yet, but none kill the build any more.
2010-02-22fix the description of _SC_GETPW_R_SIZE_MAX; from Tim van der MolenJason McIntyre
2010-02-18Every .Bl requires .It, even when using -column.Ingo Schwarze
Found by and unbreaking the build with mandoc(1). While here, properly escape blanks inside columns and use "backslash" instead of "back slash". OK jmc@
2010-02-12typo; ok ogaJason McIntyre
(sorry, i can't actually find where this started....)
2010-02-11The previous commit didn't use the first X in the template if thePhilip Guenthe
entire template was Xs. Test suite written now to keep this from happening again. Problem caught by Vadim Zhukov again. ok millert@
2010-02-08Don't underrun the buffer when the template is all X's.Philip Guenthe
Also, remove a duplicate preconditions check. Based on a suggestion by Vadim Zhukov (persgray <at> gmail.com) ok millert@
2010-02-08Use size_t in appropriate places; fixes sorting of big arrays;Otto Moerbeek
after the diff was written, I made it similar to the freebsd fix of the same code; pr6287 ok millert@ guenther@
2010-02-08use size_t to index arrays; avoids big array bugs; ok millert@ guenther@Otto Moerbeek
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentMiod Vallat
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
2010-01-28Update translations: fix EREMOTE and add a bunch of error codes too.Philip Guenthe
From Vadim Zhukov (persgray at gmail.com)
2010-01-25stucture -> structure;Jason McIntyre
2010-01-23Give little-endian fp on mips a change to be handled correctly.Miod Vallat
2010-01-19Better ERRORS section info; from Tim van der Molen. POSIX documentsTodd C. Miller
other common errno values for opendir() whereas we just point the user to open() et al. OK jmc@
2010-01-19Leave errno as-is if fstat(2) fails instead of masking the realTodd C. Miller
errno with ENOTDIR. From Tim van der Molen.
2010-01-15Add support to sysconf(3) for the variables _SC_NPROCESSORS_CONF andStuart Henderson
_SC_NPROCESSORS_ONLN, implemented by AIX/Tru64/Solaris/Linux/SCO/FreeBSD/NetBSD. Bump libc minor. From Brad, ok deraadt@ guenther@