summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add mentions about net.mpls and net.inet.ip.ifq.yasuoka2013-06-021-2/+71
| | | | input from jmc claudio
* fix id, from bradtedu2013-06-021-1/+1
|
* tweak previous;jmc2013-06-011-5/+5
|
* reorder syslog params descr to make sense, and minor tweaks, plus jmc@'sespie2013-06-011-60/+65
| | | | | input. okay jmc@, schwarze@
* string.h defines null for ustedu2013-06-011-2/+1
|
* no need to cast nulltedu2013-06-011-13/+13
|
* doesn't need any headerstedu2013-05-311-3/+1
|
* minor tweakstedu2013-05-311-4/+5
|
* fixietedu2013-05-311-2/+2
|
* Add getprogname() and setprogname() to ease slackers^porters' work.ajacoutot2013-05-315-11/+168
| | | | | | | | | Man page adapted from FreeBSD and NetBSD. Bump libc minor now (there will be more upcoming changes). input from tedu@ get it in deraadt@
* add shm_open and friends which i have been told ports programs wouldtedu2013-05-313-3/+209
| | | | | like to use. ok deraadt guenther
* use FD_CLOEXEC instead of 1; from David Hillokan2013-04-291-2/+2
| | | | ok otto
* Fixed typo.tobias2013-04-221-3/+3
| | | | ok jmc
* add clock_gettime to see also. i think guenther was ok with this.tedu2013-04-191-2/+3
|
* add some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-176-9/+14
| | | | silence some warnings.
* Remove CTL_USER hierarchy from sysctl()guenther2013-04-152-248/+4
| | | | | | (Use sysconf() or confstr() instead) ok miod@ millert@
* Implement fdatasync() as a wrapper around fsync()matthew2013-04-152-2/+16
| | | | ok guenther, deraadt, jmc
* rthread sysctl isn't experimental anymore. oh, and it's gone too.tedu2013-04-061-6/+2
|
* - Add comments regarding copies of these files also in libexec/ld.sokurt2013-04-052-2/+6
| | | | okay guenther@
* Switch libc and libm to use strong aliases rather than weak aliasesmartynas2013-03-289-87/+24
| | | | | | | | | | | where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
* sysconf(_SC_SEM_VALUE_MAX) should return SEM_VALUE_MAX, not someguenther2013-03-241-7/+3
| | | | | unrelated sysv sem limit. Similarly, sysconf(_SC_SEM_NSEMS_MAX) should return -1 instead of another sysv sem limit.
* Do not need machine/param.hderaadt2013-03-211-2/+1
|
* tedu faith(4), suggested by todd@ some weeks ago after a submission bympi2013-03-141-13/+2
| | | | | | dhill. ok krw@, mikeb@, tedu@ (implicit)
* document LOG_ODELAY; from Daniel Dickmanjmc2013-03-111-2/+9
| | | | ok millert
* Oops: confstr()'s return value should include the NUL in its countguenther2013-03-071-5/+5
| | | | Problem pointed out by Andres Perera (andres.p (at) zoho.com)
* zap end of line whitespace;jmc2013-03-021-5/+5
|
* Adds the (somewhat silly) _CS_V[67]_ENV and _CS_POSIX_V[67]_* definesguenther2013-03-012-48/+180
| | | | | | | | to <unistd.h> and confstr(3) per POSIX 1003.1-2008 Change confstr(_CS_PATH) to operate directly instead of calling sysctl(3) ports build tested by espie@
* More int's that should be size_t for strlen() usederaadt2013-01-082-5/+8
| | | | ok millert
* use a size_t instead of an int to avoid signed comparederaadt2013-01-071-2/+3
| | | | | spotted by Ilja Van Sprundel ok millert
* sysctl.3: remove some confusing text about NFS_NIOTHREADSjmc2013-01-031-6/+5
| | | | | | | | | sysctl.8: remove the vfs.nfs.iothreads example, since a) showing how to set a default value is not particularly helpful and b) EXAMPLES is bloated enough as it is; further, remove the text which points to other pages for further discussion, since those pages no longer provide relevant info diff started by an email from Jan Stary; blambert helped me prepare this diff
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-0521-43/+24
| | | | ok guenther millert kettenis
* Change scandir()'s 'select' argument fromguenther2012-11-292-5/+13
| | | | | | | | | int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@
* Copy from the is* manpages the CAVEAT about the input range.guenther2012-11-232-4/+20
| | | | ok jmc@
* raise() sends the signal to the current thread and only one error can occur.guenther2012-11-101-14/+13
| | | | ok jmc@
* Per POSIX, fix raise() and abort() to send the signal to the current thread.guenther2012-11-101-2/+4
| | | | | | Should make coredumps from abort() easier to debug too. ok kurt@
* Make sleep(3) and usleep(3) more consistent and remove extraneousmillert2012-10-162-67/+52
| | | | | | | historic implementation details that get in the way of readability. Our usleep(3) does not return EINVAL for values >= 1,000,000 but still mention it in CAVEATS since some do. Portions adapted from FreeBSD. OK jmc@
* Remove the first paragraph. The first sentence is already stated in thebrad2012-09-261-7/+2
| | | | | | STANDARDS section and the second sentence is bogus. ok matthew@
* remove tahoe-specific makefile machinery, no such hardware is known to bemiod2012-09-151-13/+1
| | | | | in working condition anymore (assuming there would be interest in running on it).
* Fix _SC_CHILD_MAX, _SC_OPEN_MAX, and _SC_STREAM_MAX to correctlymatthew2012-08-291-6/+38
| | | | | | | | | | | handle rlim_cur set to RLIM_INFINITY or values greater than LONG_MAX, as unlikely as those are to happen. Further limit _SC_STREAM_MAX to at most SHRT_MAX, because struct __sFILE uses a short int for storing the file descriptor. While here, also remove a dead label that Clang complains about. From FreeBSD via Brad.
* RFCs 2461 and 2462 have been replaced by, respectively, RFCs 4861 and 4862;jmc2012-08-181-6/+6
|
* In sysconf(), don't bother querying the kernel for userspace-onlymatthew2012-06-241-40/+19
| | | | | | values or features that POSIX now requires to always be provided. From Brad; ok guenther and me; incorporates feedback from millert too
* More sysconf(3)-y and pathconf(3)-y goodness from Brad.matthew2012-05-141-29/+231
| | | | ok guenther, millert (and me); bulk build test by naddy
* Since threads are becoming more common, this "work around thederaadt2012-04-121-136/+0
| | | | | | compiler not doing alloca in C using malloc" is unworkable. It is not safe, and we can never use it. ok guenther kurt
* more rfork mop-upderaadt2012-04-121-3/+3
|
* complete function name.espie2012-04-111-2/+2
| | | | | | | This shit is so silly, length-wise, that it still makes some sense if you forget to write half of it. (noticed by jmc@)
* tweak previous;jmc2012-04-116-44/+36
|
* fuss with detailsespie2012-04-116-31/+36
|
* new clean-room manpages for posix_spawn, unencumbered by any POSIX bullshit.espie2012-04-1111-1096/+333
| | | | | | "just commit it" deraadt@ (nits to be fixed soon)
* Document new KERN_NTHREADS and KERN_MAXTHREAD sysctlsguenther2012-04-101-2/+8
|
* range check st_size before calling calloc()deraadt2012-04-061-3/+7
| | | | ok millert