summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* threadsafe random().tedu2013-03-151-8/+43
| | | | reported by ajacoutot and (much earlier, sorry) by Alexey Suslikov
* tedu faith(4), suggested by todd@ some weeks ago after a submission bympi2013-03-141-13/+2
| | | | | | dhill. ok krw@, mikeb@, tedu@ (implicit)
* Return EINVAL if there are fewer than six template Xs in the path.guenther2013-03-122-24/+30
| | | | ok deraadt@ millert@
* Fix kernel profiling on MP systems by using per-CPU buffers and teachmpi2013-03-121-8/+14
| | | | | | | | | | | kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@
* SOCK_SEQPACKET is supported on AF_UNIX too.dlg2013-03-121-5/+6
| | | | ok jmc@ matthew@
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-2/+3
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* document LOG_ODELAY; from Daniel Dickmanjmc2013-03-111-2/+9
| | | | ok millert
* Describe interaction between write and O_APPEND.tedu2013-03-091-2/+9
| | | | Pointed out by Sachidananda on tech
* Fix return value of wcrtomb() in single-byte locales if the s argument is NULL.stsp2013-03-071-2/+2
| | | | | wcrtomb() must pretend to store one byte (NUL-terminator) in this case. Patch by Vladimir Tamara Patino. ok guenther
* 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)
* tweak wording of scanf return value; prompted by Jan Stary; ok jmc@otto2013-03-051-4/+5
|
* Update STANDARDS section as appropriate for C99.brad2013-03-042-7/+9
| | | | ok guenther@
* Fix the combination of 'j' format flag and the XPG "<num>$" modifier.guenther2013-03-021-2/+11
| | | | ok deraadt@ kettenis@ millert@
* 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@
* Back out per-CPU kernel profiling, it shouldn't modify a public headermpi2013-02-122-19/+9
| | | | at this moment.
* Unbreak the tree by adding missing defines. Forgot to sync in previousmpi2013-02-121-1/+4
| | | | spotted by todd@.
* Sync with libkern's copy. No functional change.mpi2013-02-111-8/+15
|
* gremlin crept inmiod2013-02-031-2/+2
|
* Userland bits for m68k/ELF. Mostly addition of register prefixes to themiod2013-02-0279-612/+649
| | | | | assembler instructions, and cope with the few changes in return values location.
* Add a bunch of missing functions.brad2013-01-311-2/+19
| | | | ok millert@
* Add support for POSIX.1-2008 functions dprintf(3) and vdprintf(3).brad2013-01-306-9/+156
| | | | | Feedback from millert@ guenther@ OK guenther@ man page bits OK jmc@
* Oops, due to the way return from system calls work, we can not use a delaymiod2013-01-242-6/+16
| | | | | | slot in the branch to cerror, for the delay slot instruction would also run as part of a successful return. Doh. Fortunately almost nothing in the tree uses brk() or sbrk() anymore... but binaries linked against libiberty.
* The kernel sources mention that the system call entry point is trap #450; themiod2013-01-239-19/+19
| | | | | fact that #128 and #129 may also be used for this purpose was never documented, so there is no reason to have libc use #128. Switch to #450 for consistency.
* Fix PIC_LOAD and PIC_STORE macros to really access the variable, instead ofmiod2013-01-201-5/+7
| | | | the GOT pointer. Oops.
* Properly handle "%%" and "%N" where N is not a supported escape.millert2013-01-201-1/+3
| | | | This is consistent with strftime(3) behavior. OK stsp@
* PIC-related code should follow the #ifdef __PIC__ line, not the #else line.miod2013-01-203-14/+14
| | | | Doh!
* Document F_DUPFD_CLOEXEC; adapted from FreeBSDmillert2013-01-191-4/+13
| | | | OK miod@ espie@
* partially re-instate previous; requested by deraadtjmc2013-01-191-2/+5
|
* better description of O_CLOEXEC; from russelljmc2013-01-191-3/+3
| | | | ok guenther
* Update the setsockopt(2) interface documentation for the EFBIG andbluhm2013-01-181-9/+10
| | | | | UDP socket splicing changes. help and OK jmc@
* Don't pull <math.h> just because it can return HUGE_VAL in themartynas2013-01-151-3/+2
| | | | corner cases. OK millert@.
* Remove machine-dependent glue for strtorQ, since hppa64 quad-precisionmartynas2013-01-132-47/+2
| | | | support has been removed from our compiler a year ago.
* Add END() directives to the various functions.miod2013-01-1120-31/+142
| | | | | | Make the code PIC-aware when necessary (i.e. invoke other functions through the PLT, and access global data through the GOT). No change for non-PIC compilation.
* Add a bunch of macros to help writing PIC code for libc .S routines. Handlesmiod2013-01-111-10/+42
| | | | both -fpic and -fPIC.
* fix __cerror non-weak symbol namemiod2013-01-081-2/+2
|
* 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
* Fix verbiage to make it clear that on success the return value ofkrw2013-01-051-3/+3
| | | | | | strftime() is the number of characters printed. POSIX verbiage verified by jmc@, ok jmc@.
* Switch m88k ports to ELF.miod2013-01-0528-319/+319
|
* 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
* some small cleanup;jmc2013-01-032-13/+14
|
* Add an implementation based on tedu@'s design of fmemopen(3) andmpi2013-01-014-0/+655
| | | | | | | | open_memstream(3) so they can be polished in-tree. One of the manpages comes from NetBSD with some tweaks. Prodded by espie@, krw@, guenther@
* Actually invoke the system call in libc's sigreturn() wrapper; went unnoticedmiod2012-12-261-4/+3
| | | | for 15 years or so (sigcode, of course, was correct).
* Make sure the stack is 16-byte aligned otherwise the use of certain SSEkettenis2012-12-221-1/+4
| | | | | | instructions will fail. ok guenther@
* Fix bug in random offset introduced in rev 1.143; random range wasotto2012-12-221-3/+3
| | | | expanded, but not enough due to precedence error. Spotted by Thorsten Glaser.
* Allow gethostbyname() to accept a numeric IP string.eric2012-12-171-4/+47
| | | | | | No lookup is done in this case. regression reported by espie@
* document RES_USE_DNSSEC; text tweaked by sthenjmc2012-12-121-2/+6
| | | | ok jakob
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-05103-243/+113
| | | | ok guenther millert kettenis
* Cross-reference getfsstat(2); OK jmc@millert2012-12-051-2/+3
|