summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* use arc4random_uniform(); ok djm millertderaadt2008-07-221-2/+2
|
* - handle sign of negative zero. use sign dtoa setsmartynas2008-07-101-11/+6
| | | | | | - remove 'value < 0' cruft, dtoa already clears sign bit for us discussed with, and tested by phessler@ ok millert@, who noticed to remove now-unused variable, and phessler@
* oops, fix getpwent() use of wrong buffersderaadt2008-07-061-3/+4
| | | | found by alexander.schrijver
* document that mquery(2) is non-standard; hint and ok deraadt@otto2008-06-301-2/+6
|
* xref mqueryotto2008-06-301-2/+3
|
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-2642-343/+49
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* `Li' needs an argument;jmc2008-06-251-9/+5
|
* Change a very long selective list of all architectures which do IEEE intoderaadt2008-06-251-10/+6
| | | | | | just handling the vax different (just vax for now, 'cause tahoe might even be too legacy for Miod) ok miod
* Implement _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_LOGIN_NAME_MAX,millert2008-06-252-3/+37
| | | | and _SC_THREAD_SAFE_FUNCTIONS for sysconf(3). OK deraadt@
* Add _PW_BUF_LEN define and use it instead of hard-coding 1024 formillert2008-06-251-6/+6
| | | | the buffer size. OK deraadt@
* crank major because of two new interfacesderaadt2008-06-241-1/+1
|
* create a private getpwent()-like interface which does not walk the YPderaadt2008-06-242-16/+99
| | | | | | | groups map but instead tells us that it is there. then use this interface in getgrouplist(), and do a single lookup against netid.byname instead to get all the groups associated with that user ok kurt, testing by many others
* implement getpwnam_r() and getpwuid_r() -- very nearly a rewrite of thederaadt2008-06-243-472/+437
| | | | entire file. much help from kurt, and tested by many
* remove _thread_malloc_init prototypeotto2008-06-141-2/+1
|
* grammar fixes;jmc2008-06-131-3/+3
|
* document xdr_{u_}int64_t() functionsderaadt2008-06-132-3/+23
|
* remove _MALLOC_LOCK_INIT; major bump; ok deraadt@otto2008-06-134-18/+4
|
* implement xdr_int64_t, xdr_u_int64_tsturm2008-06-131-1/+55
| | | | from NetBSD
* Add strtof() to libc, some ports seem to like it. Currently it's a simplelandry2008-06-133-9/+64
| | | | | | | call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@
* document access(2) can return EPERM; noted by Tim van der Molen; ok millert@otto2008-06-101-1/+5
|
* add missing arg to .Fnotto2008-06-101-3/+3
|
* Update access(2) to have modern semantics with respect to X_OK andmillert2008-06-091-8/+16
| | | | | | the superuser. access(2) will now only indicate success for X_OK on non-directories if there is at least one execute bit set on the file. OK deraadt@ thib@ otto@
* fix an Xr, and use a more appropriate macro;jmc2008-06-091-4/+4
|
* arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandomderaadt2008-06-081-4/+6
|
* olf support starts to die (easy stuff first); ok miodderaadt2008-06-041-3/+2
|
* fix math screwup that reintroduced a bias for upper_bounds in rangedjm2008-06-041-2/+2
| | | | | | | (2^30,2^31). Nothing in the tree yet requests random numbers bounded by this range. report jakob!deraadt; ok deraadt@
* fix a broken Xr;jmc2008-05-301-3/+4
|
* typo.sobrado2008-05-241-3/+3
|
* Use _C_LABEL when appropriate.miod2008-05-2112-38/+40
|
* Use _PROF_PROLOGUE insteaf of rolling our own.miod2008-05-211-4/+6
|
* kill an Xr to a non-existent man page, ulimit(1);jmc2008-05-201-5/+3
|
* bump (recalloc removal)otto2008-05-191-1/+1
|
* remove recalloc(3); it is buggy and impossible to repair without bigotto2008-05-193-62/+20
| | | | costs; ok jmc@ for the man page bits; ok millert@ deraadt@
* Fix ssize_t vs. size_t mismatchmillert2008-05-161-2/+2
|
* C99 says that for each va_copy() there must be a matching va_end().millert2008-05-161-30/+59
| | | | | Replace the non-portable hackery in __find_arguments() with a union. From FreeBSD.
* Don't forget to va_end() the va_list we get from va_copy(). From FreeBSD.millert2008-05-131-1/+2
|
* Fix a crash when iterating over a hash and removing its elements.millert2008-05-112-11/+22
| | | | From Patrick Keshishian. OK pvalchev@
* garbage collect the portability bits for the removed select() support.brad2008-05-111-11/+1
| | | | ok djm@ deraadt@
* kill trailing whitespace;jmc2008-05-091-2/+2
|
* add SO_BINDANY with pf example; help from jmc, ok beck@markus2008-05-091-2/+20
|
* routed is no more so use dhcpd in these examples instead. OK norby@claudio2008-05-071-3/+3
|
* Use the standard syslog levels on CARP logging messages instead ofmcbride2008-05-061-5/+7
| | | | | | | | | | | simple on/off, allowing more control over how verbose the logging is. This also allows you to do a further level of filtering in syslog.conf if you need to. Also add logging of state changes, inspired by diff provided by Brian A. Seklecki in PR 5513. These messages are logged by default. ok henning mpf deraadt
* add missing header for getpagesizechl2008-05-051-1/+2
| | | | ok espie@
* add missing header for closechl2008-05-031-1/+2
| | | | ok otto@ espie@ millert@
* Make the SO_TIMESTAMP sockopt work. When set, this allows the user tockuethe2008-05-021-2/+20
| | | | | | | | | get a timestamp of when the datagram was accepted (by udp(4), for example) rather than having to take a timestamp with gettimeofday(2) when recv(2) returns - possibly several hundreds of microseconds later. May be of use to those interested in precision network timing schemes or QoS for media applications. Tested on alpha, amd64, i386 and sparc64. manpage suggestions from jmc, ok deraadt
* Be carefull not to read away the target entry when encounteringotto2008-05-012-8/+14
| | | | | deleted files after a seekdir(); testcase produced by mbalmer@; fix with and ok mbalmer; ok millert@
* - correct brk(2) prototype and man page to match implementation and POSIX.kurt2008-04-243-8/+8
| | | | | brk(2) returns an int value not a void *. brk(2) returns 0 upon success not a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
* _file is only a short, so prevent truncation if we happen to hitotto2008-04-213-3/+28
| | | | | upon a fd > SHRT_MAX. From freebsd via Jan Schaumann; ok deraadt@ millert@ espie@
* convert select() => poll(), saves a runtime malloc+free per retrydjm2008-04-181-23/+16
| | | | feedback deraadt@ drahn@; ok deraadt@
* permit _ in the middle of a DNS name componentderaadt2008-04-161-2/+3
|