summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Define LDBL_NBIT to be a mask indicating the position of the integerdas2005-03-071-2/+10
| | | | | | | | | bit in a long double. For architectures that don't have such a bit, LDBL_NBIT is 0. This makes it possible to say `mantissa & ~LDBL_NBIT' in places that previously used an #ifdef to select the right expression. The optimizer should dispense with the extra arithmetic when LDBL_NBIT is 0 anyway. - Add an XXX comment for the big endian case.
* Define LDBL_NBIT to be a mask indicating the position of the integerdas2005-03-076-3/+9
| | | | | | | | bit in a long double. For architectures that don't have such a bit, LDBL_NBIT is 0. This makes it possible to say `mantissa & ~LDBL_NBIT' in places that previously used an #ifdef to select the right expression. The optimizer should dispense with the extra arithmetic when LDBL_NBIT is 0.
* Implement frexpl.das2005-03-071-0/+62
|
* Alias frexp as frexpl on platforms where a long double is the same asdas2005-03-071-0/+7
| | | | a double.
* Implement fmal.das2005-03-071-0/+170
|
* - Define the LDBL_PREC to be the number of significant bits in a longdas2005-03-071-1/+2
| | | | | double's mantissa. - Add an assembly version of fmal.
* - Define the LDBL_PREC to be the number of significant bits in a longdas2005-03-071-0/+5
| | | | | double's mantissa. - Add an assembly version of scalbnl.
* Define the LDBL_PREC to be the number of significant bits in a longdas2005-03-075-0/+9
| | | | double's mantissa.
* Add an assembly version of fmal.das2005-03-071-0/+34
|
* Add scalbnl, also known as as ldexpl.das2005-03-072-0/+90
|
* Alias scalbnf as ldexpf. The two are identical in binarydas2005-03-072-0/+7
| | | | floating-point formats.
* Fix a mistake in the exponent range.das2005-03-061-1/+1
|
* Increase the default stacksizes:marcus2005-03-063-15/+31
| | | | | | | | | 32-bit 64-bit main thread 2 MB 4 MB other threads 1 MB 2 MB Approved by: mtm Adapted from: libpthread
* Unbreak strsignal(). This is an MFC candidate.mux2005-03-061-2/+3
| | | | Reported by: Sean McNeil <sean@mcneil.com>
* Work around a gcc bug. This fixes feholdexcept() et al. at -O1.das2005-03-051-1/+1
| | | | | | | | | | | | | | Symptoms of the problem included assembler warnings and nondeterministic runtime behavior when a fe*() call that affects the fpsr is closely followed by a float point op. The bug (at least, I think it's a bug) is that gcc does not insert a break between a volatile asm and a dependent instruction if the volatile asm came from an inlined function. Volatile asms seem to be fine in other circumstances, even without -mvolatile-asm-stop, so perhaps the compiler adds the stop bits before inlining takes place. The problem does not occur at -O0 because inlining is disabled, and it doesn't happen at -O2 because -fschedule-insns2 knows better.
* Do not require the pty(4) majors to be anything in particular.green2005-03-041-3/+0
|
* Fix a problem in the Skinny ALG where a specially crafted packet could causemarcus2005-03-031-4/+4
| | | | | | | | | a libalias application (e.g. natd, ppp, etc.) to crash. Note: Skinny support is not enabled in natd or ppp by default. Approved by: secteam (nectar) MFC after: 1 day Secuiryt: This fixes a remote DoS exploit
* Set the TCP_NODELAY socket option and clear TCP_NOPUSH in order to flushkbyanc2005-03-021-2/+15
| | | | | | | | any pending HTTP request rather than calling shutdown(2) with SHUT_WR. This makes libfetch (and thus fetch(1)) work again with Squid proxies configured to not allow half-closed connections. Reported by: Pawel Worach (pawel.worach AT telia DOT com)
* Use correct byte order when parsing the size of the gzip "Extra data" field.kientzle2005-03-021-1/+1
| | | | | | | In particular, this correctly allows bsdtar (and pkg_add) to skip package signatures. Thanks to: Theo Schlossnagle
* Fix incorrect comment.davidxu2005-03-011-1/+1
|
* Fix typo in a comment.stefanf2005-03-011-1/+1
|
* Add polish version of libc NLS catalog.pjd2005-03-011-0/+249
|
* Increase the default stacksizes:marcus2005-02-283-20/+30
| | | | | | | | | 32-bit 64-bit main thread 2 MB 4 MB other threads 1 MB 2 MB Adapted from: libpthread Approved by: deischen
* Fix grammatical issue.trhodes2005-02-271-4/+4
| | | | Submitted by: ceri
* Backout NLS catalog handling, until all edge cases are resolvedphantom2005-02-271-11/+0
|
* Unbreak !NLS casephantom2005-02-272-2/+2
|
* Make the format of LC_COLLATE files architecture independent.ru2005-02-272-3/+14
|
* Revert accidiental removal of string.h inclusion.phantom2005-02-271-0/+1
|
* Enable processing of NLS catalogs while building/installing of libcphantom2005-02-271-0/+11
|
* Add russian version of libc NLS catalogphantom2005-02-271-0/+256
| | | | | Translated by: Valeriy Kravchuk <openxs@ipnet.kiev.ua> Alexey Dokuchaev <danfe@nsu.ru>
* Add template NLS catalog for strerror(), strerror_r() and strsignal()phantom2005-02-271-0/+249
| | | | localization support
* Change the spin lock logic to a reasonable one. We should spin whendelphij2005-02-272-2/+2
| | | | | | | | | the lock is held by other thread, but not when nobody owns it. According to deischen@, this part of code will never be hit in our threads library, since it does not use locks without wait/wakeup functions. Spotted by: mingyanguo via ChinaUnix.net forum Reviewed by: deischen
* Remove the check about whether MALLOC_EXTRA_SANITY is defined,delphij2005-02-271-2/+0
| | | | | | | | | surrounding the undef'ing it. It does not seem necessary to undef some symbol that is not exist, and gcc does not complain about whether a symbol is exist before #undef'ing it out. Spotted by: mingyanguo via ChinaUnix.net forum Reviewed by: phk
* Add NLS catalogs support to strerror(), strerror_r() and strsignal().phantom2005-02-272-29/+97
| | | | | | Controlled by NLS define, currently disabled by default. Idea obtained from: NetBSD
* . Bump .Dd'sphantom2005-02-273-7/+20
| | | | | | . Note POSIX 1003.1-2001 conformation . Add ERRORS section for catgets(3) . Note what catopen(3) returns EINVAL, if catalog is corrupt
* Bring in NetBSD's improvements and cleanups to NLS subsystem, makingphantom2005-02-272-392/+96
| | | | | | | | | | | it type and endian clean and removing of stdio dependency from NLS functions (catalog files now are processed via mmap()) Also following changes were done (against NetBSD version): . If mmap() failed, set errno to EINVAL and do not try to munmap() file Obtained from: NetBSD
* . Static'ize functions exported via function reference variables only.phantom2005-02-2711-117/+112
| | | | | | | | | | | | . Replace inclusion of sys/param.h to sys/cdefs.h and sys/types.h where appropriate. . move _*_init() prototypes to mblocal.h, and remove these prototypes from .c files . use _none_init() in __setrunelocale() instead of duplicating code . move __mb* variables from table.c to none.c allowing us to not to export _none_*() externs, and appropriately remove them from mblocal.h Ok'ed by: tjr
* ANSI'fy prototypesphantom2005-02-273-11/+5
|
* Replace usage of strerror()/strcpy() with strerror_r() here, reducingphantom2005-02-271-4/+2
| | | | | | | number of required operations to get error message and avoiding of strerror's buffer clobbering. Also ANSI'fy prototypes while I'm here
* Use ~/.login_conf when discussing a user's local file.trhodes2005-02-261-1/+1
| | | | Suggested by: ru
* Make the format of LC_CTYPE files architecture independent byru2005-02-261-66/+156
| | | | | | | | | | | | | introducing the disk formats for _RuneLocale and friends. The disk formats do not have (useless) pointers and have 32-bit quantities instead of rune_t and long. (htonl(3) only works with 32-bit quantities, so there's no loss). Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x would be trivial (verified), but we no longer provide pre-5.3 source upgrades and this is the first commit to actually break it.)
* Bring in a more healthy version of the libpthread for arm, which usescognet2005-02-268-8/+24
| | | | ARM_TP_ADDRESS.
* Mark _rtld_allocate_tls and _rtld_free_tls as weak symbols for Variant Idavidxu2005-02-261-0/+5
| | | | | | tls. Reviewed by: dfr
* Un-document the non-extant exp10() and exp10f() functions.das2005-02-262-3/+1
| | | | exp10() was a casualty of the transition away from the VAX.
* Fix a few markup nits in previous commit.trhodes2005-02-251-1/+1
| | | | Noticed by: ru, who else? :)
* Reword previous commit to be a bit more correct and provide more information.trhodes2005-02-251-5/+13
| | | | Inspiried by: ru
* Revert rev 1.8, which causes small (e.g. 2 ulp) errors for somedas2005-02-241-8/+13
| | | | | | | | | inputs. The trouble with replacing two floats with a double is that the latter has 6 extra bits of precision, which actually hurts accuracy in many cases. All of the constants are optimal when float arithmetic is used, and would need to be recomputed to do this right. Noticed by: bde (ucbtest)
* Do not mislead users into checking for a mount_ufs or mount_ufs2 manualtrhodes2005-02-241-1/+3
| | | | | | | page. They do not exist. PR: 53303 Submitted by: Marc Silver <marcs@draenor.org> (original version)
* -document the fact that extattr_get_* can fail if the requestedcsjp2005-02-241-1/+3
| | | | | | | | attribute does not exist on the file. -bump document date Reviewed by: rwatson,trhodes MFC after: 1 week
* Xref chflags(2).trhodes2005-02-231-1/+7
| | | | | | Note that unlink.2 can return EPERM if the immutable or append-only flags are set. PR: 77043
OpenPOWER on IntegriCloud