summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
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
2013-11-12ttyslot() needs <stdlib.h>Theo de Raadt
ok guenther
2013-11-06Nowadays, seekdir(3) doesn't call _readdir_unlocked().Ingo Schwarze
Consequently, the "skipdeleted" argument is always == 1. Remove it, effectively reverting readdir.c rev. 1.14. ok millert@ guenther@
2013-11-06Search the userland buffer of dirent structures before falling back toIngo Schwarze
getdents(2). No functional change, but considerable speedup in many cases, see http://marc.info/?l=openbsd-tech&m=138369623117934 for some approximate numbers. ok guenther@, "good diagnosis" deraadt@
2013-11-05Cleanup, no functional change:Ingo Schwarze
1. avoid code duplication in rewinddir() by calling seekdir() directly 2. move __seekdir() into seekdir() and _telldir_unlocked() into telldir() Both functions were called from nowhere else. 3. remove some unused #include directives and one unused function prototype ok otto@ millert@
2013-11-05Make sure seekdir(3) works even when dirp->dd_buf still contains someIngo Schwarze
pending entries: At the time of the lseek(2), also invalidate the buffer in order to force getdents(2) during the next readdir(3). Because this throws away buffered data that could still be used in some cases, this is not particularly efficient, but at least it works; i will suggest optimizations soon. Bug found when investigating perl-5.18.1/t/op/threads-dirh.t that was reported broken by Andrew Fresh <andrew at afresh1 dot com>. ok guenther@ deraadt@
2013-11-02Oops, utime() is section 3, not 2Philip Guenther
noted by jmc@
2013-11-02Fix lie that predated NetBSD: the struct stat time padding affectedPhilip Guenther
utime() usage, not utimes() ok deraadt@
2013-11-02out of place word; discussed with jmc and guentherTheo de Raadt
2013-11-02.Xr clock_gettimeMarc Espie
okay deraadt@
2013-11-02finish xref linking clock_gettime and getitimerTed Unangst
2013-11-01Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directlyPhilip Guenther
ok deraadt@
2013-10-28kill kame version symbols and sysctlTheo de Raadt
ports tree grep run by sthen
2013-10-25close(fd), then set errnoTed Unangst
2013-10-24Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.Philip Guenther
Use useconds_t in the ualarm() declaration. Bump libstdc++ major to be sure there isn't ABI issues. ok deraadt@ jca@ jmc@ millert@ ports testing by landry@
2013-10-22- add UNIX-domain socket info to struct kinfo_file2Philip Guenther
- convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@
2013-10-22tweak previous;Jason McIntyre
2013-10-22delete extra words; Henri KemppainenTheo de Raadt