summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Reintroduce lost local diff; detective work by matthew@; ok okan@ oga@otto2011-07-131-5/+16
| | | | all hail the more strict malloc S flag!
* 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@
* Remove the GCC2 optimizer workaround for sparc. After switchingmartynas2011-07-111-5/+1
| | | | | to GCC4 it doesn't generate broken code anymore. From Brad. Tested and verified by myself.
* 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@
* - Fix the cabs, and cabsf prototypes in the manual pages; it'smartynas2011-07-092-34/+22
| | | | | | been C99 complex (not struct complex) for couple of years. - Remove BUGS section; cabs is finally prototyped in complex.h. - Also document cabsl.
* Switch to the SSE code. OK mikeb@.martynas2011-07-092-44/+5
|
* 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
* Make the zero condition properly raise the exception and return.martynas2011-07-091-1/+2
|
* Don't reimplement the same thing twice. OK matthew@.martynas2011-07-095-116/+5
|
* Copied from hppa; should work for hppa64 as well.kettenis2011-07-091-0/+76
|
* On hppa64 we need to use __gp instead of $global$.kettenis2011-07-091-3/+3
|
* Move fabs(3) manual page from libm to libc, for consistency. Themartynas2011-07-083-10/+9
| | | | modf(3), frexp(3), ldexp(3), fpclassify(3) pages are in libc, too.
* Remove the stupid commented out fabs(3), frexp(3), and modf(3)martynas2011-07-084-191/+1
| | | | | entries and unused implementations. It is clear that this situation won't change.
* 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-0846-110/+314
| | | | | on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
* No need to set CFLAGS+=-DOPENSSL_IA32_SSE2 on amd64. Nothing uses it.mpf2011-07-081-2/+1
| | | | Small test by marco@ and md5 /usr/lib/libcrypto.so.19.0 agrees.
* 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@
* Finalize work on complex math routines, now that we have themartynas2011-07-0845-34/+1820
| | | | extended-precision support. Mostly from Cephes.
* Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingmartynas2011-07-0846-318/+114
| | | | 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
* signbitl -> signbit.martynas2011-07-082-4/+4
|
* el_set EL_BIND or EL_SETTC must have argument lists ending with NULL.nicm2011-07-081-5/+5
| | | | ok tedu
* Pass CFLAGS (which contains -DOPENSSL_IA32_SSE2) to the perlasmmpf2011-07-081-3/+3
| | | | | | | build on i386. This enables SSE2 optimizations for bignum multiplications, Montgomery multiplications and sha512. This speeds up Diffie-Hellman operations in isakmpd and iked quite a bit. OK djm@, markus@, mikeb@
* timed's time is up. use ntpd(8). Even our own fossil developersderaadt2011-07-074-28/+12
| | | | | switched a while back. ok miod, kettenis
* Enable wide character functions in libedit (not the other libe*t).nicm2011-07-073-14/+79
| | | | ok stsp deraadt
* fix typos; while here, improve spacing in comments.sobrado2011-07-072-6/+6
| | | | | | changes to libevent and zlib headers sent to the upstream maintainers. ok jmc@ (for typos), millert@
* no more math(3);jmc2011-07-0714-50/+36
|
* add tcp.always_keepalive;jmc2011-07-071-2/+3
|
* When context switching, if the 'new' thread is the same as the 'old'guenther2011-07-071-1/+10
| | | | | | | thread, then the save and restore of errno, FPU, and regs is unnecessary and can be skipped. "looks reasonable" marc@
* sync with upstream, retaining local modifications.okan2011-07-0717-230/+280
| | | | ok nicm@
* Remove references to math(3).martynas2011-07-0738-113/+69
|
* Remove math(3). OK theo.martynas2011-07-072-731/+2
|
* Document extended-precision routines.martynas2011-07-0722-117/+341
|
* 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@
* Don't pull bsd.own.mk for NOPROFILE & NOPIC -- the libm_i387 thingmartynas2011-07-061-20/+1
| | | | is gone since 1999.
* Finalize work on the math library. It's time to do this monstermartynas2011-07-0699-57/+11084
| | | | | | | | | | | | | | | | | | commit, and deal with problems (if any) in tree. Note that this adds the following functions. Ports with hacks might need adjustments. nexttoward(3), fma(3), nexttowardf(3), fmaf(3), acoshl(3), asinhl(3), atanhl(3), coshl(3), sinhl(3), tanhl(3), expl(3), expm1l(3), logl(3), log10l(3), log1pl(3), log2l(3), modfl(3), cbrtl(3), hypotl(3), powl(3), erfl(3), erfcl(3), lgammal(3), tgammal(3), ceill(3), floorl(3), lrintl(3), llrintl(3), roundl(3), lroundl(3), llroundl(3), truncl(3), fmodl(3), remainderl(3), remquol(3), nextafterl(3), nexttowardl(3), fmal(3). With this commit, our library implements all functionality required by C99. Documentation bits will follow.
* Fix some awful code in the example, pointed out by millert@.nicm2011-07-051-3/+3
|
* from Tim van der Molen:jmc2011-07-051-5/+12
| | | | | | | | | | | - State that ftell() and ftello() return -1 on error rather than just a non-zero value. The latter is not specific enough, because these functions can also return non-zero on success. - For clarity and search-friendliness, don't refer to fgetpos() and fsetpos() as "the others", but mention them by name. ok millert otto