summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2010-07-17Correct the #includes to avoid warnings in <rpc/svc.h>Philip Guenthe
ok miod@
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
who asked me to commit because he is just running out of the door.
2010-07-13update our recommended hash function to sha256 and note md5 is broken.Ted Unangst
ok deraadt jmc millert sobrado
2010-07-13no more rmd160(1);Jason McIntyre
2010-07-08Switch hppa, i386 and powerpc to gcc4. Bump libc major to handle ABI cornerMark Kettenis
cases fixed in gcc4.
2010-07-06Document new unsetenv() error returns.Christian Weisgerber
From Nicolas Legrand <nlegrand@ethelred.fr>; ok jmc@
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
2010-07-02Constipate init_hash() to eliminate a warning and remove a cast that isPhilip Guenthe
thereby rendered superfluous ok blambert@
2010-07-01sort SEE ALSO;Jason McIntyre
2010-07-01getpeereid() can now be a library routine using getsockopt() withTheo de Raadt
SOL_SOCKET and SO_PEERCRED, only issue being that it cannot return EFAULT for a page fault. The kernel code will soon be put into compat, and then in 10 years or so tedu will delete it. ok guenther millert
2010-07-01zap trailing whitespace;Jason McIntyre
2010-06-30Add getsockopt SOL_SOCKET SO_PEERCRED support. This behaves similar toTheo de Raadt
getpeereid(2), but also supplies the remote pid. This is supplied in a 'struct sockpeercred' (unlike Linux -- they showed how little they know about real unix by calling theirs 'struct ucred'). ok guenther ajacoutot
2010-06-29use a union to align the dns answer buffer until gcc4 is fixedTheo de Raadt
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