summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Stilistic improvement: use clean mdoc(7) .Qq enclosures rather thanschwarze2011-03-091-8/+8
| | | | | | | | | | | (correct, but ugly) low-level roff(7) quoting of quote characters. As a side effect, this avoids ugly formatting caused by a nasty mandoc(1) bug with roff(7) quoting in mdoc(7) documents. Of course, that bug will ultimately get fixed as well, but that can't be done quickly. Reported by Tim van der Molen <tbvdm at xs4all dot nl> ok jmc@
* Add a kernel man page sosplice(9) for the socket splicing implementation.bluhm2011-03-081-3/+4
| | | | ok jmc@
* wrong type for variable; spotted by christian.siebert@cs.tu-chemnitz.dederaadt2011-03-061-3/+3
| | | | ok guenther
* Fix PR 6267: recheck POSIXLY_CORRECT each time getopt_long() starts a newguenther2011-03-053-44/+16
| | | | | | | | argv and don't suppress the handling of leading '-' in optstring when POSIXLY_CORRECT is set. Based on patch from Eric Blake. ok and manpage update from millert@, manpage ok jmc@
* Fix __cxa_finalize() so that calling __cxa_finalize(NULL) properlymatthew2011-03-021-2/+2
| | | | | | invokes handlers registered with __cxa_atexit(). "seems right" deraadt@
* SOCK_SEQPACKET is only valid for the AF_BLUETOOTH now, andmikeb2011-02-241-4/+3
| | | | | | | SOCK_RDM is a dead SysV compatibility option that is not described anywhere in the man page so don't reference it. ok claudio
* An attempt to open an append-only file without O_APPEND results in EPERM.millert2011-02-181-2/+10
| | | | OK jmc@ guenther@
* Fix typo, setreseuid -> setresuidweerd2011-02-111-3/+3
| | | | ok otto@, jmc@
* Put a limit on recursion during matching, and reject input of size greaterstsp2011-02-101-3/+29
| | | | | or equal PATH_MAX. Based on similar fix made in NetBSD. ok miod@ millert@
* Update after fix for kernel/6547. SETVAL and SETALL can return ERANGE now.fgsch2011-02-021-3/+16
| | | | jmc@ ok.
* Document the kernel option SOCKET_SPLICE and the socket optionbluhm2011-01-311-2/+56
| | | | | SO_SPLICE for zero-copy socket splicing. ok jmc@
* Correctly escape a literal colon in an enclosure;schwarze2011-01-242-6/+6
| | | | the \: roff escape is an optional line break.
* over written -> overwrittenlum2011-01-211-3/+3
| | | | ok jmc@
* Fix typo, %F pattern corresponds to %Y-%m-%d (the ISO 8601 date format),landry2011-01-191-2/+2
| | | | | not %Y/%m/%d. Found while debugging geo/gpx-viewer. ok millert@ jasper@
* - missing leading '.' before 'It'.jasper2011-01-191-3/+3
| | | | spotted by landry@
* superceded -> superseded;jmc2011-01-141-3/+3
|
* avoid some integer overflows mostly with GLOB_APPEND and GLOB_DOOFFSdjm2011-01-121-4/+12
| | | | | | and sanity check arguments (these will be unnecessary when we switch struct glob members from being type into to size_t in the future); "looks ok" tedu@ feedback guenther@
* tweak previous; ok millertjmc2011-01-101-3/+4
|
* mkdtemp() is present in POSIX 1003.1-2008millert2011-01-101-11/+9
| | | | Add a warning about using less than 6 Xs causing an error on some systems
* mktemp(3) can be used, but not where mkstemp(3) is an alternative. Alsonicm2011-01-071-6/+6
| | | | | | trim an inaccurate comment about its future removal. ok deraadt
* Make this compile with llvm-clang; problem pointed out by Amit Kulkarniguenther2010-12-311-1/+2
|
* mktemp(3) (and thus mktemp(1)) no longer use the process ID whenmillert2010-12-271-3/+2
| | | | | | replacing the Xs, it is now purely random. Also replace a use of .Fn that should be .Xr. OK jmc@
* Fix out of date comment; no code changemillert2010-12-221-2/+2
|
* remove comment that hasn't been true for quite a while now;otto2010-12-221-6/+1
| | | | ok deraadt@ djm@
* avoid pointer arithmetic on void *dhill2010-12-161-5/+5
| | | | | | tested for a while by me. ok otto@
* Rewrite the mbrtowc(3) man page so we can make sense of this function.stsp2010-12-051-93/+187
| | | | tweaks from jmc, help from uwe, "We are going to have to trust you :-)" deraadt
* involes -> involves; from Carlos Alberto Pereira Gomesjmc2010-11-301-1/+1
|
* replace a large stack buffer with a malloc call, with help from matthew.tedu2010-11-301-25/+34
| | | | | ok deraadt [passed upstream to the tz list as well]
* the posix regex mistake is here to stay. ok deraadttedu2010-11-212-16/+2
|
* Add CAVEATS section documenting error handling caveats.stsp2010-11-201-2/+9
| | | | tweak and ok jmc, tedu
* Make KERN_CPTIME return an avarage number of ticks across all CPUsmikeb2010-11-191-4/+3
| | | | tedu agreed with an idea, tested by Luis Useche and me; ok deraadt
* tweak previous;jmc2010-11-081-3/+3
|
* Add %F, %g, %G, %u, %z (extended) and %Z.jasper2010-11-082-9/+334
| | | | | | | This is mostly a sync with NetBSD. tested in a bulk build by landry@ ok millert@
* - the nroff workaround is no longer neededjmc2010-10-291-19/+22
| | | | - use some Fn and \*(Gt
* Change basep parameter of getdirentries() to be off_t *, not long *millert2010-10-282-3/+3
| | | | | | | | so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
* remove skipjack and cast from the libc; ok deraadtmikeb2010-10-283-1053/+2
|
* support _SC_HOST_NAME_MAX; from bradderaadt2010-10-282-3/+9
| | | | a libc crank is happening in < 24 hours
* Remove the EXAMPLE, since *noone* should use this non-portable APIderaadt2010-10-271-38/+11
| | | | | directly -- it exists for libc use only. Tell people to use readdir(3). discussed with millert
* print the pointer value that caused the error (if available); okotto2010-10-211-47/+54
| | | | deraadt@ nicm@ (on an earlier version)
* The ssizearg member of union arg is pointless if it isn't of type ssize_tguenther2010-10-171-2/+2
| | | | Noted by Claus Assmann
* update struct statfs; from Vladimir Kirillovjmc2010-10-161-20/+30
|
* tcp.sendspace & tcp.recvspace buttons are gone.claudio2010-10-111-12/+2
|
* Extend GLOB_LIMIT to cover readdir and stat and bump the malloc limitnicm2010-10-082-31/+72
| | | | | | | | | | | from ARG_MAX to 64K. Fixes glob-using programs (notably ftp) able to be triggered to hit resource limits. Idea from a similar NetBSD change, original problem reported by jasper@. ok millert tedu jasper
* Retire Skipjackmikeb2010-10-061-3/+3
| | | | | | | | | | | There's not much use for the declassified cipher from the 80's with a questionable license these days. According to the FIPS drafts, Skipjack reaches its EOL in December 2010. The libc portion will be removed after the ports hackathon. djm and thib agree, no objections from deraadt Thanks to jsg for digging up FIPS drafts.
* Provide a WEAK_ALIAS macro in <machine/asm.h> for the few platformsguenther2010-10-015-14/+12
| | | | | | | that didn't already have one, and then immediately use it in libc's SYS.h ok miod@
* Update to tzcode2010m from elsie.nci.nih.govmillert2010-09-271-1/+47
|
* oops, don't free array before freeing members; spotted by dkrause@djm2010-09-261-2/+2
|
* Make gcvt() better match printf("%g") behavior, it now passes regress.millert2010-09-251-11/+23
| | | | OK deraadt@
* document GLOB_KEEPSTAT in the RETURN VALUES and STANDARDS sections.djm2010-09-251-3/+14
|
* Bump libc major for ABI changes.millert2010-09-241-1/+1
|