summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* inet_nsap_ntoa() and inet_nsap_addr() go away. Unused APIs from darkerderaadt2013-12-172-100/+4
| | | | days.
* f_prealloc() goes away. Comment from the original source file:deraadt2013-12-171-24/+1
| | | | | * XXX. Force immediate allocation of internal memory. Not used by stdio, * but documented historically for certain applications. Bad applications.
* Add tcgetsid() now that it is in POSIX base. Man page adapted frommillert2013-12-173-3/+118
| | | | NetBSD (thorpej). OK kettenis@
* POSIX no longer requires sys/types.h be included to get the pid_tmillert2013-12-122-6/+4
| | | | definition, and neither do our headers. OK espie@ guenther@
* no more regexp(3), so point to regex(3);jmc2013-12-051-3/+3
| | | | as advised by deraadt
* express final disapproval of the interfaces in libcompat, such asderaadt2013-12-041-3/+2
| | | | | | | | | 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]
* tweak from deraadt;jmc2013-12-041-2/+2
|
* update BUGS to reflect previous; as advised byjmc2013-12-041-4/+3
| | | | guenther and deraadt
* Remove string.h dependency from sys/select.h; from FreeBSD, tweakednaddy2013-12-031-6/+3
| | | | | | by deraadt@. Sync man page. ok guenther@, deraadt@
* CIRCLEQ begone.krw2013-12-021-22/+21
| | | | ok miller@
* Eliminate references to the basep argument which was removed in theguenther2013-12-011-12/+8
| | | | | | | | 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@
* The print() routine here can be passed at least some of the non-charactersguenther2013-11-281-6/+17
| | | | | | | | | | 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@
* 1 << 31 cleanup. Eitan Adler pointed out that there has been aderaadt2013-11-263-10/+10
| | | | | resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
* unsigned char cast for ctype; ok guentherderaadt2013-11-261-2/+2
|
* unsigned char changes for ctypederaadt2013-11-251-10/+11
| | | | re-re-reviewed by krw
* use an unsigned char instead, to avoid lots of castsderaadt2013-11-251-2/+2
|
* Use iswupper() for wide characters, not isupper(); ok deraadtstsp2013-11-251-3/+2
|
* most obvious unsigned char casts for ctypederaadt2013-11-2414-65/+85
| | | | ok jca krw ingo
* doc nit okay millert@espie2013-11-221-3/+3
|
* In getdiskbyname() set partition size with DL_SETPSIZE(). Make surekrw2013-11-161-2/+4
| | | | | | 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.
* getpwnam_r() and getpwuid_r() reopen the passwd even when called withbenno2013-11-151-7/+3
| | | | | | | setpassent(stayopen). Bug found and fixed by Erik Lax <erik-AT-halon-DOT-se> ok millert@ guenther@
* oops should not be staticderaadt2013-11-131-2/+2
|
* bring in protoderaadt2013-11-131-1/+2
|
* bring in math.h to provide prototypesderaadt2013-11-133-3/+6
|
* remove dead fileseric2013-11-1211-7785/+0
| | | | ok deraadt@
* put the _readdir_unlocked() prototype in an obvious placederaadt2013-11-122-4/+4
|
* ANSI prototypesderaadt2013-11-121-3/+3
|
* a __fputwc_unlock() prototype was available in fvwrite.h, so use thatderaadt2013-11-124-8/+7
|
* both files contain a function which should only be static.deraadt2013-11-122-4/+4
| | | | not cranking libc over this (unless an issue is found in ports)
* permute15() should be static. Not cranking libc now, because it isderaadt2013-11-121-2/+2
| | | | not urgent.
* insert the proper arguments into a prototypederaadt2013-11-121-2/+2
|
* avoid arithetic on void *deraadt2013-11-121-4/+4
| | | | ok guenther otto
* ANSI prototypederaadt2013-11-121-2/+2
|
* pull in missing includes (math.h, unistd.h, stdlib.h) needed forderaadt2013-11-128-8/+17
| | | | prototypes
* pull in stdlib.h as requiredderaadt2013-11-121-1/+2
|
* add proto for amd64 case; unify otherwisederaadt2013-11-122-3/+5
|
* ttyslot() needs <stdlib.h>deraadt2013-11-121-2/+3
| | | | ok guenther
* Nowadays, seekdir(3) doesn't call _readdir_unlocked().schwarze2013-11-062-14/+7
| | | | | | Consequently, the "skipdeleted" argument is always == 1. Remove it, effectively reverting readdir.c rev. 1.14. ok millert@ guenther@
* Search the userland buffer of dirent structures before falling back toschwarze2013-11-062-26/+46
| | | | | | | 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@
* Cleanup, no functional change:schwarze2013-11-054-41/+12
| | | | | | | | 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@
* Make sure seekdir(3) works even when dirp->dd_buf still contains someschwarze2013-11-051-1/+2
| | | | | | | | | | | | | 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@
* Oops, utime() is section 3, not 2guenther2013-11-021-2/+2
| | | | noted by jmc@
* Fix lie that predated NetBSD: the struct stat time padding affectedguenther2013-11-021-3/+3
| | | | | | utime() usage, not utimes() ok deraadt@
* out of place word; discussed with jmc and guentherderaadt2013-11-021-2/+2
|
* .Xr clock_gettimeespie2013-11-024-8/+12
| | | | okay deraadt@
* finish xref linking clock_gettime and getitimertedu2013-11-022-4/+7
|
* Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directlyguenther2013-11-014-13/+8
| | | | ok deraadt@
* kill kame version symbols and sysctlderaadt2013-10-281-7/+2
| | | | ports tree grep run by sthen
* close(fd), then set errnotedu2013-10-251-3/+3
|
* Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.guenther2013-10-241-4/+4
| | | | | | | | 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@