summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Bring libc and libm in line with the compiler now that we no longer have akettenis2011-08-198-191/+6
| | | | 128-bit long double. Diff committed on behalf of martynas@
* 64-bitification went a bit too far here; sigset_t is 32-bit so using 64-bitkettenis2011-08-163-11/+11
| | | | | | loads and stores may trigger an alignment trap. Also fix issues where the code was assuming arguments were passed both in registers on the stack. This isn't ithe case for hppa64.
* missing $ in rcs tag; from Daniel Dickmansthen2011-07-291-1/+1
|
* .Fn rmdir -> .Xr rmdir 2matthew2011-07-261-3/+3
|
* At some point we've switched to the VFP floating-point--unlike FPAmartynas2011-07-262-6/+6
| | | | | | | | | it actually stores floats in natural-endian--therefore the existing checks became wrong. Take into account __VFP_FP__, effectively bringing back the old behavior. This way it will work now, and in the future when some of our platforms are switched to FPA, where it's much faster.
* Assumptions about floating-point word order based on BYTE_ORDER aremartynas2011-07-261-3/+3
| | | | | wrong on ARM. A more elegant solution is pending, but this is good for now. OK miod@.
* __arm32__ -> __arm__, since our new compiler isn't defining themartynas2011-07-261-3/+3
| | | | former anymore. OK miod@.
* tweak previous;jmc2011-07-253-6/+6
|
* update HISTORY and SEE ALSO for all of string(3), together with variousschwarze2011-07-2553-237/+642
| | | | | smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree
* occured -> occurred;jmc2011-07-241-2/+2
|
* Recent Single Unix will malloc memory if the second argument of realpath()miod2011-07-242-17/+52
| | | | | | is NULL, and third-party software is starting to rely upon this. Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor tweaks from nicm@ and yours truly.
* Sync wcslcpy and wcslcat with strlcpy and strlcat. OK deraadt@millert2011-07-242-50/+26
|
* fix linkat(2) prototypematthew2011-07-241-3/+3
|
* Show (in the example) that < and > can be used multiple times; ok jmc@otto2011-07-221-4/+5
| | | | jasper@
* - add a MALLOC_OPTIONS section header. the content is already there, but havingjasper2011-07-211-3/+3
| | | | | | a section will help people looking for just the MALLOC_OPTIONS. ok otto@ jmc@
* Change "constructed by bitwise-inclusive OR'ing of flags from ..." tomatthew2011-07-197-27/+27
| | | | | | "constructed by bitwise-inclusive ORing flags from ..." Requested by jmc@
* Change "If also flag is zero" to "If flag is also zero".matthew2011-07-192-8/+8
| | | | Requested by jmc@
* no need to mention xerox network stack here; ok claudiomikeb2011-07-191-5/+2
|
* tweak previous;jmc2011-07-191-4/+4
|
* knock out some useless Pp;jmc2011-07-192-6/+4
|
* Fix two typos pointed out by guenther@ during our libpthread micromatthew2011-07-191-3/+3
| | | | hackathon.
* document that we don't currently handle UTIME_OMIT correctly for the mtime timestampmatthew2011-07-191-2/+15
|
* oops, forget a critical "not"matthew2011-07-181-2/+2
|
* Add (rough draft) documentation for fdopendir(3) and the 15 newmatthew2011-07-1817-92/+1094
| | | | | | | XXXat(2) system calls from POSIX 2008. Editing will be done in tree. General style discussed with jmc@, schwarze@, and deraadt@ ok jmc@
* Expose a bunch of new functionality from POSIX 2008: openat(2),matthew2011-07-183-6/+7
| | | | | | | | | | | | | fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2), symlinkat(2), unlinkat(2), utimensat(2), futimens(2), and fdopendir(3). "Minor" libc bump. Tested in a bulk build by naddy@ Much help from guenther@, thib@, tedu@, oga@, and others. ok deraadt@, naddy@
* Implement fdopendir(3) and refactor opendir(3) and fdopendir(3) to usematthew2011-07-181-22/+62
| | | | | | | | | | | a common __fdopendir() function. Also, take advantage of the new O_DIRECTORY and O_CLOEXEC flags in opendir(3). (Currently fdopendir(3) is commented out; it will be enabled shortly alongside openat(2) et al.) Tested by naddy@ in a bulk build. tweaks and ok guenther@; stupid POSIX nit pointed out by oga@
* __opendir2, DTF_NODUP, and __DTF_READALL can die. struct direntderaadt2011-07-141-9/+2
| | | | | | | | dd_flags is renamed to the placeholder position dd_unused so that we can spot "broken software" which assumes we have Jan Simon Pendry's union mounts (we don't have them, and won't have them ever again). __opendir2 question spotted by matthew verified to not break ports by sthen
* Don't call munmap(2) if mmap(2) failed.matthew2011-07-121-2/+1
| | | | ok deraadt@, tedu@
* Clarify that exactly one of O_RDONLY, O_WRONLY, and O_RDWR must bematthew2011-07-121-3/+9
| | | | specified when calling open(2).
* document O_CLOEXEC and O_DIRECTORYmatthew2011-07-121-3/+14
|
* on malloc flag S, set cache size to 0; will catch even moreotto2011-07-121-2/+6
| | | | use-after-free bugs; ok krw@ dlg@ pirofti@
* Use stdio in getent() and reuse pfp from tcgetnext when calling getent().millert2011-07-101-36/+37
| | | | Cuts cap_mkdb system time in half. OK nicm@
* Minor function name tweaks.nicm2011-07-093-8/+8
|
* Instead of documenting all the wide string functions in wmemchr(3), addnicm2011-07-0918-139/+1327
| | | | | | | individual pages (based on the existing string man pages). By Tim van der Molen (tbvdm at xs4all dot nl) after a suggestion by millert@. ok deraadt
* Move fabs(3) manual page from libm to libc, for consistency. Themartynas2011-07-082-4/+83
| | | | modf(3), frexp(3), ldexp(3), fpclassify(3) pages are in libc, too.
* Alias modfl to modf. This goes together with the previous bump.martynas2011-07-082-5/+25
|
* Revert (leaving the complex math part alone). Some stuff is dependingmartynas2011-07-0842-38/+1670
| | | | | on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
* tweak previous;jmc2011-07-081-3/+5
|
* Kill weak `cerror' alias, it's colliding with the userland namespace. Noticedmiod2011-07-081-2/+1
| | | | by guenther@ months ago, had to wait for a libc major bump.
* Support sending struct info to kdump. So far for struct stat andotto2011-07-081-2/+3
| | | | struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
* Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingmartynas2011-07-0842-1671/+39
| | | | them in libc for a very long time. OK guenther@.
* Include PIPEX in kernel by default. And add new sysctl variableyasuoka2011-07-081-2/+16
| | | | | | | | `net.pipex.enable' to enable PIPEX. By default, pipex is disabled and it will not process packets from wire. Update man pages and update HOWTO_PIPEX_NPPPD.txt for testers. discussed with dlg@, ok deraadt@ mcbride@ claudio@
* After a certain amount of fighting with the mbstowcs API, remove L fromnicm2011-07-081-4/+12
| | | | | | the wcsdup example. ok stsp
* timed's time is up. use ntpd(8). Even our own fossil developersderaadt2011-07-074-28/+12
| | | | | switched a while back. ok miod, kettenis
* no more math(3);jmc2011-07-0714-50/+36
|
* add tcp.always_keepalive;jmc2011-07-071-2/+3
|
* Fix bit twiddling routines on ARM; where floating-point word ordermartynas2011-07-071-3/+3
| | | | is big endian.
* Add sysctl net.inet.tcp.always_keepalive, when this is set the systemsthen2011-07-061-2/+6
| | | | | | | | | | | behaves as if SO_KEEPALIVE was set on all TCP sockets, forcing keepalives to be sent every net.inet.tcp.keepidle half-seconds. In conjunction with a keepidle value greatly reduced from the default, this can be useful for keeping sessions open if you are stuck on a network with short NAT or firewall timeouts. Feedback from various people, ok henning@ claudio@
* Add support for C99 %ls and %lc format directives, as been documented instsp2011-07-062-7/+148
| | | | | | the vfprintf(3) man page for ages. Based on code from NetBSD/FreeBSD. Prevent ramdisk growth with a maze of #ifdefs. ok robert, no objections deraadt, espie, millert
* Speed up cgetnext() by passing the record we want to parse in tomillert2011-07-061-92/+110
| | | | | getent() as toprec. Make cap_mkdb faster when building termcap.db. OK nicm@