summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typo in the !__GNUC__ case and remove an obsolete comment.das2004-02-161-3/+1
|
* Fix some aliasing problems.das2004-02-166-52/+94
|
* Add forgotten IEEE functions. The Perl 5.8 port now compiles.grehan2004-02-129-2/+428
| | | | | Submitted by: Suleiman Souhlal <refugee@segfaulted.com> Obtained from: NetBSD
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-103-6/+0
| | | | | | | | These files had tags after teh copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-102-5/+1
| | | | | | | | These files had tags after the copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-103-4/+0
| | | | | | | | These files had tags at the start of the file (incorrect, removed), and after the copyright notices (correct). Approved by: rwatson (mentor)
* Rewrite fabs.S to use pure SSE2 operations. I got the clues how to dopeter2004-02-081-10/+35
| | | | this from looking at code generated by gcc.
* Update the documentation for setpgrp(2) to reflect the access controldas2004-02-081-7/+21
| | | | | | | checks that the code actually performs. Judging from the 4.2BSD release notes, the docs have only been out of date for 20 years. PR: 29844
* Document the SF_NODISKIO flag, and fix a small typo.silby2004-02-081-2/+10
|
* Unbreak world.ru2004-02-071-2/+2
|
* getnetbyname fixes:dds2004-02-071-22/+67
| | | | | | | Do not choke on malformed network addresses. Return n_name in static space, not on the function's stack. MFC after: 1 week
* Prevent memory leak on sem_destroy() by destroying the semaphore'sdeischen2004-02-061-1/+4
| | | | internal mutex and CV.
* Only allow the semaphore to be taken when the value is positive.deischen2004-02-061-2/+1
| | | | | | Don't decrement it twice when it is taken. Reported by: kris
* Correct check for invalid semaphore on sem_destroy() (s/==/!=/).deischen2004-02-051-1/+1
| | | | Reported by: kris
* Correct the weak reference for sem_unlink.deischen2004-02-051-1/+1
|
* Allow libc's version of sem_trywait() to work for non-pshared mutexes.deischen2004-02-041-2/+17
|
* Modify the implementation of libc semaphores so that they can bedeischen2004-02-031-146/+132
| | | | | | | | | | | | overridden by the threads library to provide a userland version of non-pshared semaphores and cancellation points. Also add a sem_timedwait(). The libc version of semaphores always uses kernel semaphores regardless of whether pshared is set or not. When threads are not present, it is difficult to get sem_wait() or sem_timedwait() to do the right thing (since pthread_cond_timedwait() and pthread_cond_wait() are stubs in libc and just return immediately).
* Merge vfscanf.c,v 1.35.das2004-01-311-4/+10
|
* Fix the handling of negative hexadecimal numbers in integer formats.das2004-01-311-3/+9
| | | | | | | Note that this bug is unrelated to recent work in this area; it seems to have been present since revision 1.1. Obtained from: NetBSD
* LC_ALL not always take priority over other LC_*ache2004-01-311-22/+35
| | | | | Obtained from: NetBSD PR: 62047
* Add reference to environ(7)ache2004-01-291-1/+2
|
* Xref kqueue and polleivind2004-01-261-0/+2
|
* Xref kqueueeivind2004-01-261-0/+1
|
* Describe EOVERFLOW caseache2004-01-251-0/+9
|
* When writing/reading longs use explicit 32bit temporary values.mbr2004-01-241-3/+4
| | | | | | | | MFNetBSD rev. 1.15 + rev 1.16 PR: bin/60901 Submitted by: Logan Gabriel <gersh@sonn.com> Obtained from: NetBSD
* Merge vfprintf.c, v1.61 and 1.62. For compatibility with __hdtoa()das2004-01-231-19/+25
| | | | | | | and to reduce diffs between vfprintf.c and vfwprintf.c, declare xdigs* to be char arrays rather than wchar_t arrays. In collaboration with: tjr
* Include <stdlib.h> to get abort() prototype.grehan2004-01-211-0/+2
|
* Updated manh shift constant type to 'ULL' for PPC to fixgrehan2004-01-211-1/+1
| | | | | | shift-too-large compile error reviewed by: das
* Discard the first 1024 bytes of output as suggested bydas2004-01-201-1/+13
| | | | | | | | http://citeseer.nj.nec.com/fluhrer01weaknesses.html and http://citeseer.nj.nec.com/531224.html . PR: 61126 Submitted by: Jeff Ito <jeffi@rcn.com>
* Use 'uint32_t' instead of 'long' when a 32-bit integer is intended.das2004-01-201-31/+32
| | | | | | | | | This results in no functional change, aside from fixing a data corruption bug on LP64 platforms. The code here could still use a significant amount of cleanup. PR: 56502 Submitted by: hrs (earlier version)
* Simplify mpool_get() and mpool_write() by using pread() and pwrite()das2004-01-201-6/+3
| | | | | | | instead of lseek()/_read() and lseek()/_write(). PR: bin/54276 Submitted by: <dnelson@allantgroup.com>
* libc is now WARNS=2 clean with the exception of the gdtoa bits (whichnectar2004-01-191-1/+1
| | | | are now not built with warnings enabled at all).
* Add prototypes for the three syscall stubs that are invoked here,nectar2004-01-191-0/+4
| | | | in order to quiet warnings.
* add cross-reference to clock_gettime(2)phk2004-01-191-0/+1
|
* Bring the *printf(3) documentation up to date with the code:das2004-01-191-37/+24
| | | | | | | | | | | | | | | | | | | - Update and improve the documentation for %[aA] o Like %[eE], %[aA] may round the result if a precision is specified. o Grammar police: Fix a split infinitive. o The FreeBSD implementation does better than the minimum required by C99 (literal translation of the mantissa). The digit before the hexadecimal-point is never 0 unless the number itself is 0. o Clarify that the exponent field represents a decimal exponent of 2. o Discuss the fact that multiple valid representations are possible. o Remove the entry in the BUGS section claiming that %[aA] is not implemented. - Remove the entry in the BUGS section claiming that the ' flag for printing thousands separators is unimplemented for floating-point. - Remove the entry in the BUGS section claiming that the L modifier reduces the precision to "double" before conversion.
* add missing endusershell() call. Original version was incorrect.charnier2004-01-181-1/+3
| | | | | PR: bin/2442 Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
* Implement __hdtoa() and __hldtoa() and enable printf() support for %adas2004-01-183-6/+435
| | | | and %A, which print floating-point numbers in hexadecimal.
* Prototype __hdtoa() and __hldtoa().das2004-01-181-0/+2
|
* Fix some bugs affecting the %a and %A format specifiers. Sincedas2004-01-181-6/+16
| | | | | | | | | | | | | these are not fully implemented and ifdef'd out, the bugs have never manifested themselves. Specifically: - Fix a memory leak in the case where %a follows another floating-point format. - Make the %a/%A code behave like %e/%E with respect to precision. - It is no longer valid to assume that '-' and '0x' are mutually exclusive. - Address other minor issues.
* Add a delta accidentally omitted from the previous commit:das2004-01-181-0/+3
| | | | | Define DBL_MANH_SIZE and DBL_MANL_SIZE to be the sizes of the high and low words of the mantissa in bits, respectively.
* Define LDBL_MANH_SIZE and LDBL_MANL_SIZE to be the sizes of thedas2004-01-186-0/+18
| | | | high and low words of the mantissa in bits, respectively.
* Fix a bug that caused long double subnormals to be printeddas2004-01-181-0/+3
| | | | | incorrectly on architectures without an explicit normalization bit (sparc64, powerpc).
* Backout revision 1.6, because some stub functions not in libc, anddavidxu2004-01-171-18/+2
| | | | | non-threaded won't build. The cancellation point support should be further discussed.
* Enable cancellation point in sem_wait, it is required by POSIX.davidxu2004-01-171-2/+18
| | | | | | For pshared semaphore, this commit still does not enable cancellation point, I think there should be a pthread_enter_cancellation_point_np for libc to implement a safe cancellation point.
* Fixed style of previous commit.ru2004-01-151-3/+2
| | | | Submitted by: bde
* The libc_r/man/sigwait.3 manpage has been repocopied to libc/sys/sigwait.2.ru2004-01-142-6/+7
| | | | | Reviewed by: deischen Repocopy by: markm
* - libc/sys/sem.c was repocopied to libc/gen/sem.c.ru2004-01-149-366/+14
| | | | | | | - sem_*(3) manpages were repocopied from libc_r. Reviewed by: deischen Repocopy by: markm
* Translate from GNU C to ISO C.des2004-01-144-4/+4
|
* Add and document ffsl(), fls() and flsl().des2004-01-137-12/+201
|
* Kill whitespace at end of lines.nectar2004-01-121-9/+9
|
OpenPOWER on IntegriCloud