summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Bump library versions in preparation for 7.0.deischen2007-05-2140-40/+40
| | | | Ok'd by: kan
* Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGSkan2007-05-191-1/+2
| | | | puts it before library's object files, making the whole constuct useless.
* Use __mcount() instead of _mcount() to reduce diffs with NetBSD.cognet2007-05-191-1/+1
|
* Add a level of indirection to the kernel PTE table. The oldmarcel2007-05-191-8/+16
| | | | | | | | | scheme allowed for 1024 PTE pages, each containing 256 PTEs. This yielded 2GB of KVA. This is not enough to boot a kernel on a 16GB box and in general too low for a 64-bit machine. By adding a level of indirection we now have 1024 2nd-level directory pages, each capable of supporting 2GB of KVA. This brings the grand total to 2TB of KVA.
* Don't forget to free a string allocated by strdup where necessary.cperciva2007-05-191-2/+9
| | | | | Found by: Coverity Prevent Coverity ID: CID 3132
* Make sure libc is installed before all other shared libraries. Otherkan2007-05-191-3/+4
| | | | libraries might depend on versioned symbols from libc.
* Use built-in _end symbol insteadof 'end' for consistency with otherkan2007-05-191-2/+2
| | | | architectures. Linker defines end is synonym for _end.
* Do not declare float_detect_tininess as external if it will be re-delaredkan2007-05-191-0/+2
| | | | as static later.
* Make sure GCC will not try to link libc with itself.kan2007-05-191-0/+5
|
* Follow NetBSD, OpenBSD and DragonfyBSD project and add BSD-licensedkan2007-05-193-1/+124
| | | | | SSP functions into FreeBSD libc. Use the same file name and location for consistency with other projects.
* Move nss_compat symbols from r1.11 to private section of symbol map.jon2007-05-181-10/+10
| | | | Suggested by: deischen
* Fix a logic bug I re-introduced in my patch I sent to Danielru2007-05-184-4/+4
| | | | | | | that would cause the selected shared threading library to be overwritten with its 32-bit version on amd64. PR: amd64/112509
* __nss_compat_* from net/nss_compat.c are needed by ports/net/nss_ldap, so ↵jon2007-05-181-0/+10
| | | | export them.
* Allow DEFAULT_THREAD_LIB to be set from /etc/src.conf.deischen2007-05-174-16/+16
| | | | Submitted by: ru
* endrpcent belongs with rpc name service db, not services.jon2007-05-171-1/+1
| | | | MFC after: 1 week
* fix memory leak from reading nsswitch.confjon2007-05-172-0/+7
| | | | MFC after: 1 week
* -Fix so getoptinfo() is in conformance with socket api (itrrs2007-05-161-32/+33
| | | | | | can be used on any read socketopt). -Clean up of sendmsg call and make it conformant when no syscall is available.
* Resolves symbols map so sctp_xxx() functions are included.rrs2007-05-161-0/+14
| | | | | PR: 112704 Submitted by: kou@cozmixng.org
* Do not export 'end' symbol. It is not meant to be visible to outsidekan2007-05-161-1/+1
| | | | | world and it wreak havoc if libc collides with other versioned libraries.
* Replace select() by poll() to avoid problems with bigmav2007-05-142-6/+7
| | | | | | descriptor number. Approved by: glebius (mentor)
* Document RFTHREADpav2007-05-141-1/+9
| | | | | | PR: docs/78915 Submitted by: Marc Olzheim <marcolz@stack.nl> MFC after: 1 week
* I guess powerpc needs vfork(), add it to the symbol list.deischen2007-05-141-0/+1
| | | | Submitted by: marius
* Use unsigned comparisons. Prior to this commit, SHA1_Update andcperciva2007-05-142-2/+4
| | | | | | | | | | | | | | | | | | | RIPEMD160_Update were broken when all of the following conditions applied: (1) The platform is i386. (2) The program calling *_Update is statically linked to libmd. (3) The buffer provided to *_Update is aligned modulo 4 bytes. (4) The buffer extends beyond 2GB. Due to the design of this code, SHA1_Update and RIPEMD160_Update will still be broken if conditions (1)-(3) apply AND the buffer extends beyond 4GB (i.e., there is an integer overflow in computing "data + len"). Since this remaining bug simply replaces SIGSEGV with a bogus hash (and non-broken programs should never provide such operands) I don't consider it to be a serious problem. MFC After: 1 week PR: kern/102795
* Add ether_aton_r and ether_ntoa_r to public symbol map for libc.rwatson2007-05-131-0/+2
| | | | Pointed out by: deischen
* Remove .mcount from gmon's Symbol map and add it to the appropriatedeischen2007-05-135-2/+27
| | | | | | | arch. It can be named differently depending on the arch (.mcount, _mcount). Submitted by: marius
* Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.deischen2007-05-1312-781/+48
| | | | | | | | | | Warning, after symbol versioning is enabled, going back is not easy (use WITHOUT_SYMVER at your own risk). Change the default thread library to libthr. There most likely still needs to be a version bump for at least the thread libraries. If necessary, this will happen later.
* Add and document ether_ntoa_r() and ether_aton_r() functions, which acceptrwatson2007-05-132-37/+85
| | | | | | passed storage buffers rather than using static storage. Reimplement ether_ntoa() and ether_aton() in terms of these functions. These variants are thread-safe.
* Move to more conformant style(9) before making functional changes.rwatson2007-05-131-51/+35
|
* - Add bits for userland profiling. For sun4u this is compile-tested only.marius2007-05-111-0/+1
| | | | - Replace magic 14 with PIL_TICK.
* strlcpy() may be faster than snprintf(), but it is less portable, and thisdes2007-05-111-8/+8
| | | | | | | is not performance critical code anyway. Also, avoid using strlen() to obtain information which we already have. MFC after: 3 weeks
* Fix typo.des2007-05-101-1/+1
| | | | Submitted by: Bård Skaflestad <bardsk@math.ntnu.no>
* Well gag me with a spoon... I'm so used to working at high WARNS levelsdes2007-05-102-1/+5
| | | | that I make stupid fundamental mistakes like this when I don't.
* Remove superfluous unexpanded RCS tag.des2007-05-101-2/+0
|
* Use flopen(3).des2007-05-101-2/+2
| | | | MFC after: 3 weeks
* DTRT when O_NONBLOCK is specified.des2007-05-102-4/+29
| | | | MFC after: 3 weeks
* I'm tired of seeing this done incorrectly and non-portably, so add ades2007-05-104-6/+177
| | | | | | flopen(3) function which reliably opens and locks a file. MFC after: 3 weeks
* Integrate the Camellia Block Cipher. For more information see RFC 4132gnn2007-05-091-0/+3
| | | | | | | and its bibliography. Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp> MFC after: 1 month
* backout experimental adaptive spinning mutex for product use.davidxu2007-05-093-9/+0
|
* Handle temporary redirects (HTTP status code 307)des2007-05-081-0/+2
| | | | | | PR: kern/112515 Submitted by: Ryan C. Gordon <icculus@icculus.org> MFC after: 3 weeks
* We should never zero-pad INF or NaN (yielding silly strings like "00inf")das2007-05-081-0/+1
| | | | even if the programmer asks for zero padding.
* Fix a rounding error.das2007-05-081-1/+1
| | | | Reported by: Bruno Haible
* Remove parameter names from prototypes to avoid namespace issues.des2007-05-061-22/+22
|
* Implement and document some utility functions that can be used to communicatepjd2007-05-064-3/+360
| | | | | | with GEOM providers. OK'ed by: phk
* - Fix typogabor2007-05-041-2/+2
| | | | | Approved by: keramida (mentor) MFC after: 3 days
* Don't assume that int is signed 32-bits in one place. Keep assumingbde2007-05-022-8/+11
| | | | | | | | | | | | | | that ints have >= 31 value bits elsewhere. s/int/int32_t/ seems to have been done too globally for all other files in msun/src before msun/ was imported into FreeBSD. Minor fixes in comments. e_lgamma_r.c: Describe special cases in more detail: - exception for lgamma(0) and lgamma(neg.integer) - lgamma(-Inf) = Inf. This is wrong but is required by C99 Annex F. I hope to change this.
* Fix tgamma() on some special args:bde2007-05-021-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) tgamma(-Inf) returned +Inf and failed to raise any exception, but should always have raised an exception, and should behave like tgamma(negative integer). (2) tgamma(negative integer) returned +Inf and raised divide-by-zero, but should return NaN and raise "invalid" on any IEEEish system. (3) About half of the 2**52 negative intgers between -2**53 and -2**52 were misclassified as non-integers by using floor(x + 0.5) to round to nearest, so tgamma(x) was wrong (+-0 instead of +Inf and now NaN) on these args. The floor() expression is hard to use since rounding of (x + 0.5) may give x or x + 1, depending on |x| and the current rounding mode. The fixed version uses ceil(x) to classify x before operating on x and ends up being more efficient since ceil(x) is needed anyway. (4) On at least the problematic args in (3), tgamma() raised a spurious inexact. (5) tgamma(large positive) raised divide-by-zero but should raise overflow. (6) tgamma(+Inf) raised divide-by-zero but should not raise any exception. (7) Raise inexact for tiny |x| in a way that has some chance of not being optimized away. The fix for (5) and (6), and probably for (2), also prevents -O optimizing away the exception. PR: 112180 (2) Standards: Annex F in C99 (IEC 60559 binding) requires (1), (2) and (6).
* Document (in a comment) the current (slightly broken) handling of specialbde2007-05-021-6/+9
| | | | | | | | | | | | | | | | | | | | | | values in more detail, and change the style of this comment to be closer to fdlibm and C99: - tgamma(-Inf) was undocumented and is wrong (+Inf, should be NaN) - tgamma(negative integer) is as intended (+Inf) but not best for IEEE-754 (NaN) - tgamma(-0) was documented as being wrong (+Inf) but was correct (-Inf) - documentation of setting of exceptions (overflow, etc.) was more complete here than in most of libm, but was further from matching the actual setting than in most of libm, due to various bugs here (primarily, always evaluating +Inf one/zero and getting unwanted divide-by-zero exceptions from this). Now the actual behaviour with gcc -O0 is documented. Optimization still breaks setting of exceptions all over libm, so nothing can depend on this working. - tgamma(NaN)'s exception was documented as being wrong (invalid) but was correct (no exception with IEEEish NaNs). Finish (?) rev.1.5. gamma was not renamed to tgamma in one place. Finish (?) rev.1.6. errno.h was not completely removed.
* s/@VERSION@/@ARCHIVE_VERSION@/cperciva2007-05-022-3/+3
| | | | | | | This is a no-op as far as FreeBSD is concerned, but makes libarchive more autoconf-friendly. Approved by: kientzle
* Fix one kind of style(9) bug and a typo in a comment.yar2007-05-011-5/+5
| | | | Tested with: md5(1)
* Roughly implement libpthread support.marcel2007-05-011-1/+19
|
OpenPOWER on IntegriCloud