summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace the current strspn() and strcspn() with significantly fasterdas2005-04-022-67/+79
| | | | | | | | | implementations inspired by the ones in DragonFly. Unlike the DragonFly versions, these have a small data cache footprint, and my tests show that they're never slower than the old code except when the charset or the span is 0 or 1 characters. This implementation is generally faster than DragonFly until either the charset or the span gets in the ballpark of 32 to 64 characters.
* Add some missing errnos from POSIX. Nothing in FreeBSD generatesdas2005-04-021-0/+5
| | | | | | | | | | these at the moment, but applications that test for them will now have a better chance of compiling. I have intentionally omitted errnos that are only good for STREAMS, since apps that use STREAMS won't compile anyway. The exception is EPROTO, which was apparently intended for STREAMS, but worth having anyway because Linux (mis)uses it for other things.
* nuke the logic for AF_UNSPEC and simplify. once, it was introducedume2005-04-021-301/+47
| | | | | to improve getaddrinfo(3). but, it is not needed for a long time since getaddrinfo(3) became providing its own res_*N() functions.
* Connect libthr and libthread_db to make buildworld.davidxu2005-04-021-3/+3
|
* Update debugger code for new libthr.davidxu2005-04-021-216/+578
|
* Import my recent 1:1 threading working. some features improved includes:davidxu2005-04-0277-4641/+7200
| | | | | | | | | | | | | | | | 1. fast simple type mutex. 2. __thread tls works. 3. asynchronous cancellation works ( using signal ). 4. thread synchronization is fully based on umtx, mainly, condition variable and other synchronization objects were rewritten by using umtx directly. those objects can be shared between processes via shared memory, it has to change ABI which does not happen yet. 5. default stack size is increased to 1M on 32 bits platform, 2M for 64 bits platform. As the result, some mysql super-smack benchmarks show performance is improved massivly. Okayed by: jeff, mtm, rwatson, scottl
* Prepare for importing my 1:1 threading work, disconnect libthr anddavidxu2005-04-021-2/+2
| | | | libthread_db from make buildworld.
* Add over 32GB disk support on pc98 (userland part).nyan2005-03-301-1/+24
| | | | Submitted by: Hirokazu WATANABE
* Clean up the support for extracting very long pathnames.kientzle2005-03-292-14/+18
|
* Fix typo - link for bsde_add_rule(3) manual page was not created.pjd2005-03-281-1/+1
| | | | MFC after: 1 week
* Properly return rule number.pjd2005-03-281-1/+1
| | | | | | Submitted by: Wojciech A. Koszek PR: bin/79292 MFC after: 1 week
* Implement and document remquo() and remquof().das2005-03-2512-20/+583
|
* Eliminate plt relocation for kse_switchin.davidxu2005-03-214-0/+4
|
* Use __weak_reference macro to define weak symbols.davidxu2005-03-211-31/+51
|
* Teach fmtcheck() about the ' (thousands separator) flag.das2005-03-211-1/+1
|
* Add byteorder(9) to SEE ALSO.simon2005-03-201-2/+3
| | | | MFC after: 3 days
* Make kvm(3) aware of ki_jid field.pjd2005-03-201-1/+17
| | | | | Reviewed by: gad MFC after: 3 days
* Use the correct values for softfloat, in both the little endian and the bigcognet2005-03-202-8/+13
| | | | endian cases.
* Fix the double rounding problem with subnormals, anddas2005-03-182-16/+36
| | | | remove the XXX comments, which no longer apply.
* Add missing prototypes for fma() and fmaf(), and remove an inaccuratedas2005-03-181-1/+2
| | | | comment.
* Make the fenv.h routines work for programs that use SSE fordas2005-03-172-85/+262
| | | | | | | | | | | | | | | | | | | | | | | | | floating-point arithmetic on i386. Now I'm going to make excuses for why this code is kinda scary: - To avoid breaking the ABI with 5.3-RELEASE, we can't change sizeof(fenv_t). I stuck the saved mxcsr in some discontiguous reserved bits in the existing structure. - Attempting to access the mxcsr on older processors results in an illegal instruction exception, so support for SSE must be detected at runtime. (The extra baggage is optimized away if either the application or libm is compiled with -msse{,2}.) I didn't run tests to ensure that this doesn't SIGILL on older 486's lacking the cpuid instruction or on other processors lacking SSE. Results from running the fenv regression test on these processors would be appreciated. (You'll need to compile the test with -DNO_STRICT_DFL_ENV.) If you have an 80386, or if your processor supports SSE but the kernel didn't enable it, then you're probably out of luck. Also, I un-inlined some of the functions that grew larger as a result of this change, moving them from fenv.h to fenv.c.
* Fix typo in comments (spell Linux correctly)emax2005-03-171-1/+1
| | | | | Submitted by: Markus Brueffer < markus at brueffer dot de > MFC after: 3 days
* Regenerate for 9.3.1dougb2005-03-175-6/+12
|
* bmake changes to handle the move of dns/sec and related filesdougb2005-03-172-17/+17
|
* Spell 'fedisableexcept' correctly.das2005-03-161-1/+1
|
* Document feenableexcept(), fedisableexcept(), and fegetexcept().das2005-03-162-1/+101
|
* Replace fegetmask() and fesetmask() with feenableexcept(),das2005-03-1610-57/+166
| | | | | | | | | | fedisableexcept(), and fegetexcept(). These two sets of routines provide the same functionality. I implemented the former as an undocumented internal interface to make the regression test easier to write. However, fe(enable|disable|get)except() is already part of glibc, and I would like to avoid gratuitous differences. The only major flaw in the glibc API is that there's no good way to report errors on processors that don't support all the unmasked exceptions.
* Remove fpsetsticky(). This was added for SysV compatibility, but duedas2005-03-159-162/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to mistakes from day 1, it has always had semantics inconsistent with SVR4 and its successors. In particular, given argument M: - On Solaris and FreeBSD/{alpha,sparc64}, it clobbers the old flags and *sets* the new flag word to M. (NetBSD, too?) - On FreeBSD/{amd64,i386}, it *clears* the flags that are specified in M and leaves the remaining flags unchanged (modulo a small bug on amd64.) - On FreeBSD/ia64, it is not implemented. There is no way to fix fpsetsticky() to DTRT for both old FreeBSD apps and apps ported from other operating systems, so the best approach seems to be to kill the function and fix any apps that break. I couldn't find any ports that use it, and any such ports would already be broken on FreeBSD/ia64 and Linux anyway. By the way, the routine has always been undocumented in FreeBSD, except for an MLINK to a manpage that doesn't describe it. This manpage has stated since 5.3-RELEASE that the functions it describes are deprecated, so that must mean that functions that it is *supposed* to describe but doesn't are even *more* deprecated. ;-) Note that fpresetsticky() has been retained on FreeBSD/i386. As far as I can tell, no other operating systems or ports of FreeBSD implement it, so there's nothing for it to be inconsistent with. PR: 75862 Suggested by: bde
* Dike out unwarranted reference to si_udev.phk2005-03-151-0/+4
|
* Finish repo-copy of lib/libbsnmp/modules to usr.sbin/bsnmpd/modules.harti2005-03-1414-3255/+1
| | | | | These modules are modules for the daemon, not for the library so they should be where the daemon is.
* Support extracting entries with pathnames longer than PATH_MAX. Inkientzle2005-03-134-27/+104
| | | | | testing, I've archived and restored dir trees with ~1MB pathnames. Most formats, of course, have much smaller limits.
* When rejecting rediculously large pax attributes (such as pathnameskientzle2005-03-131-2/+5
| | | | | over 1MB), issue a warning instead of forcing an internal assertion failure.
* Correctly pass low-level I/O errors back up to the caller whenkientzle2005-03-131-1/+4
| | | | reading cpio format.
* Better error messages on read and file-open errors.kientzle2005-03-132-6/+30
|
* Include detailed error message from zlib after a decompression error.kientzle2005-03-131-0/+3
|
* If the output is not a regular file, it's okay to add it to the archive.kientzle2005-03-132-4/+18
| | | | | | In particular, /dev/st0 can be added to an archive being written to /dev/st0. Thanks to: Jaakko Heinonen
* Use socklen_t where appropriate.stefanf2005-03-111-2/+2
|
* Avoid pointer arithmetics on void *.stefanf2005-03-101-1/+1
| | | | Approved by: alfred
* Remove an superfluous assignment.stefanf2005-03-101-1/+0
| | | | Approved by: alfred
* Use socklen_t where appropriate.stefanf2005-03-102-2/+3
| | | | Approved by: alfred
* In light of the recent 2^69 operation collision-finding attack on SHA1,cperciva2005-03-095-6/+522
| | | | | | | | add support for SHA256. Tested on: i386, sparc64 Tested using: NIST test vectors, built-in tests X-MFC-after: 5.4-RELEASE
* The third parameter to SHA_Update and SHA1_Update is a "size_t", not acperciva2005-03-091-2/+2
| | | | "unsigned int".
* Make MSG_NOSIGNAL available to native programs.alfred2005-03-091-5/+9
| | | | | | Bump FreeBSD_version to note this change. Reviewed by: sobomax
* Initialise `sn' before using its value.stefanf2005-03-081-2/+1
|
* Have ttyname_r() try to ask DEVFS for the device name.phk2005-03-082-35/+16
| | | | | | Document ttyname_r(). Simplify threaded/unthreaded stuff a lot.
* Make the returnvalue of times(3) insensitive to changes in wall-clock.phk2005-03-081-3/+5
| | | | PR: 78537
* Replace strong references with weak references. There's nodas2005-03-074-7/+7
| | | | | | | | particularly good reason to do this, except that __strong_reference does type checking, whereas __weak_reference does not. On Alpha, the compiler won't accept a 'long double' parameter in place of a 'double' parameter even thought the two types are identical.
* Remove an obsolete sentence from a comment.stefanf2005-03-071-2/+1
|
* Add korean NLS message catalogs for libcphantom2005-03-072-0/+498
| | | | | Submitted by: Hye-Shik Chang <perky@FreeBSD.org> PR: misc/78290
* - If z is 0, one of x or y is 0, and the other is infinite, raisedas2005-03-071-2/+18
| | | | | | | an invalid exception and return an NaN. - If a long double has 113 bits of precision, implement fma in terms of simple long double arithmetic instead of complicated double arithmetic. - If a long double is the same as a double, alias fma as fmal.
OpenPOWER on IntegriCloud