summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2013-12-31Remove #ifdef _REENTRANT code that isn't used here. These days, the codeMark Kettenis
handling per-thread errno lives in librthread. ok miod@, espie@
2013-12-31don't try writing past the end unless we have toTed Unangst
ok gilles millert
2013-12-28Do not need __guard[] anymore since we are now relying on __guard_localTheo de Raadt
for a while already ok miod kettenis
2013-12-28Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass theMark Kettenis
right __dso_handle and have dlopen'ed shared objects run their atexit handlers when they get unloaded. This is what Linux does, and several ports depend on this behaviour (and will crash upon exit without this chang). Based on an earlier diff from matthew@ Tested by ajacoutot@ ok deraadt@
2013-12-27do not need to create the stack cookie using a constructor anymore,Theo de Raadt
since the kernel supplies a .openbsd.randomdata segment. ok matthew miod guenther
2013-12-27remove non-openbsd.randomdata partsTheo de Raadt
ok miod matthew
2013-12-24yup, we do ELFTheo de Raadt
2013-12-22remove unneeded check for null context. ok deraadt gilles millertTed Unangst
2013-12-19fix double word error;Jason McIntyre
2013-12-19Split out strncpy and strncat from strcpy and strcat manuals.Todd C. Miller
Requested by deraadt@
2013-12-19pseudo-code corrections from Solar Designer <solar@openwall.com>Theo de Raadt
2013-12-17The termios.h bits were missing from the initial commit.Todd C. Miller
2013-12-17fix build; from deraadt@Christian Weisgerber
2013-12-17crank libc for +tcgetsid -inet_nsap_addr -inet_nsap_ntoa -f_preallocTheo de Raadt
ok millert
2013-12-17inet_nsap_ntoa() and inet_nsap_addr() go away. Unused APIs from darkerTheo de Raadt
days.
2013-12-17f_prealloc() goes away. Comment from the original source file:Theo de Raadt
* XXX. Force immediate allocation of internal memory. Not used by stdio, * but documented historically for certain applications. Bad applications.
2013-12-17Add tcgetsid() now that it is in POSIX base. Man page adapted fromTodd C. Miller
NetBSD (thorpej). OK kettenis@
2013-12-12POSIX no longer requires sys/types.h be included to get the pid_tTodd C. Miller
definition, and neither do our headers. OK espie@ guenther@
2013-12-05no more regexp(3), so point to regex(3);Jason McIntyre
as advised by deraadt
2013-12-04express final disapproval of the interfaces in libcompat, such asTheo de Raadt
them ftime(), gtty(), stty(), re_comp(), cuserid() and others. Discussion and ongoing work to fix the ports tree from many, especially naddy. ok naddy [There is a bit more cleanup possible after that, but this is considered the current safe step]
2013-12-04tweak from deraadt;Jason McIntyre
2013-12-04update BUGS to reflect previous; as advised byJason McIntyre
guenther and deraadt
2013-12-03Remove string.h dependency from sys/select.h; from FreeBSD, tweakedChristian Weisgerber
by deraadt@. Sync man page. ok guenther@, deraadt@
2013-12-02CIRCLEQ begone.Kenneth R Westerback
ok miller@
2013-12-01Eliminate references to the basep argument which was removed in thePhilip Guenther
change to getdents(). Indicate that d_off values are valid for seeking on directories. problem noted by Jared Yanovich (slovichon (at) gmail.com) ok jmc@
2013-11-28The print() routine here can be passed at least some of the non-charactersPhilip Guenther
OUT to EOW, making its domain CHAR_MIN...CODEMAX. It makes sense to have pchar() take the same domain and output those non-characters appropriately, so the (unsigned char) cast for isprint() goes in pchar(). Constipate pchar() while we're here, and let print() pass through NUL to it, as it knows how to output it unambiguously. ok otto@ millert@
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2013-11-26unsigned char cast for ctype; ok guentherTheo de Raadt
2013-11-25unsigned char changes for ctypeTheo de Raadt
re-re-reviewed by krw
2013-11-25use an unsigned char instead, to avoid lots of castsTheo de Raadt
2013-11-25Use iswupper() for wide characters, not isupper(); ok deraadtStefan Sperling
2013-11-24most obvious unsigned char casts for ctypeTheo de Raadt
ok jca krw ingo
2013-11-22doc nit okay millert@Marc Espie
2013-11-16In getdiskbyname() set partition size with DL_SETPSIZE(). Make sureKenneth R Westerback
d_secperunith and p_offseth are set to 0 since they can't be read from disktab and lower 32 bits (d_secperunit and p_offset) are read directly from the input.
2013-11-15getpwnam_r() and getpwuid_r() reopen the passwd even when called withSebastian Benoit
setpassent(stayopen). Bug found and fixed by Erik Lax <erik-AT-halon-DOT-se> ok millert@ guenther@
2013-11-13oops should not be staticTheo de Raadt
2013-11-13bring in protoTheo de Raadt
2013-11-13bring in math.h to provide prototypesTheo de Raadt
2013-11-12remove dead filesEric Faurot
ok deraadt@
2013-11-12put the _readdir_unlocked() prototype in an obvious placeTheo de Raadt
2013-11-12ANSI prototypesTheo de Raadt
2013-11-12a __fputwc_unlock() prototype was available in fvwrite.h, so use thatTheo de Raadt
2013-11-12both files contain a function which should only be static.Theo de Raadt
not cranking libc over this (unless an issue is found in ports)
2013-11-12permute15() should be static. Not cranking libc now, because it isTheo de Raadt
not urgent.
2013-11-12insert the proper arguments into a prototypeTheo de Raadt
2013-11-12avoid arithetic on void *Theo de Raadt
ok guenther otto
2013-11-12ANSI prototypeTheo de Raadt
2013-11-12pull in missing includes (math.h, unistd.h, stdlib.h) needed forTheo de Raadt
prototypes
2013-11-12pull in stdlib.h as requiredTheo de Raadt
2013-11-12add proto for amd64 case; unify otherwiseTheo de Raadt