summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix a bug that could result in a null pointer dereference innectar2004-01-121-1/+1
| | | | | | | | | | | getpwent(3) or getpwuid(3) when using NIS adjunct maps. The bug was present in the internal `nis_passwd' function. The lookup in the adjunct map used the name passed into `nis_passwd', however no name was of course supplied by getpwent or getpwuid. Correctly use the name from the `struct pwd' that was found instead. PR: bin/59962 Submitted by: Gabriel Gomez <ggomez@fing.edu.uy>
* XDR sources are handled by ../xdr/Makefile.inc.ru2004-01-111-4/+0
|
* Replaced an ugly hack to selectively disable warningsru2004-01-112-3/+3
| | | | | | | in contributed sources with just a hack made possible by bsd.sys.mk,v 1.33. This is better because it just nulls out the warning flags rather than adding gcc(1) specific -w option to CFLAGS.
* Add an ulgy hack so that warnings added by non-zero WARNS values won't beobrien2004-01-101-0/+3
| | | | | | used with the contrib/ gdtoa sources as they aren't WARNS-clean. Submitted by: ru
* Clarify the behavior of ptrace(2) a little bit: the tracing processrwatson2004-01-101-0/+24
| | | | | | | | | | | | | | | must first attach to the traced process. If the tracing process exits without detaching, the traced process will be killed rather than continued. For the duration of the tracing session, the traced process is reparented to the tracing process (with resulting expected behaviors). It is permissible to trace more than one other process at a time. When using waitpid() to monitor the behavior of the traced process, signals are intercepted: they may optionally then be forwarded using ptrace(). Signals are generated normally by and for the process, but also by the tracing facility (SIGTRAP). Product of: Suffering Sponsored by: DARPA, AFRL
* We need to discard `const'ness explicitly when invoking sysarch.nectar2004-01-101-1/+1
| | | | Reported by: sparc64 tinderbox via bde
* Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'mnectar2004-01-0914-39/+14
| | | | | | | | | | at it, use the ANSI C generic pointer type for the second argument, thus matching the documentation. Remove the now extraneous (and now conflicting) function declarations in various libc sources. Remove now unnecessary casts. Reviewed by: bde
* It was reported that when using nss_ldap, getgrent(3) would behavenectar2004-01-091-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incorrectly when encountering `large' groups (many members and/or many long member names). The reporter tracked this down to the glibc NSS module compatibility code (nss_compat.c): it would prematurely record that a NSS module was finished iterating through its database in some cases. Two aspects are corrected: 1. nss_compat.c recorded that a NSS module was finished iterating whenever the module reported something other than SUCCESS. The correct logic is to continue iteration when the module reports either SUCCESS or RETURN. The __nss_compat_getgrent_r and __nss_compat_getpwent_r routines are updated to reflect this. 2. An internal helper macro __nss_compat_result is used to map glibc NSS status codes to BSD NSS status codes (e.g. NSS_STATUS_SUCCESS -> NS_SUCCESS). It provided the obvious mapping. When a NSS routine is called with a too-small buffer, the convention in the BSD NSS code is to report RETURN. (This is used to implement reentrant APIs such as getpwnam_r(3).) However, the convention in glibc for this case is to set errno = ERANGE and overload TRYAGAIN. __nss_compat_result is updated to handle this case. PR: bin/60287 Reported by: Lachlan O'Dea <odela01@ca.com>
* Adjust for brain outage that affected the previous commit.nectar2004-01-061-1/+1
| | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Add required headers.nectar2004-01-062-0/+4
|
* Add required headers and function declarations.nectar2004-01-062-0/+3
|
* Remove unused variables. Add required headers and functionnectar2004-01-067-6/+12
| | | | declarations.
* Use ANSI C function definition for `_mcount' and remove `static'nectar2004-01-061-2/+2
| | | | | | prototype from header file. Discussed with: bde, maybe one year ago
* Add missing declaration.nectar2004-01-061-0/+2
|
* Work around a `warning: zero-length printf format string'.nectar2004-01-061-1/+1
|
* Avoid undefined behavior:nectar2004-01-061-2/+2
| | | | foo[i] = bar[++i]; /* Which operator [] will be evaluated first? */
* Make intentions explicit with additional parenthesis.nectar2004-01-062-8/+8
|
* Remove unused variables and function declarations. Add missing headers.nectar2004-01-065-8/+6
|
* Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.maxim2003-12-291-0/+9
| | | | Reviewed by: silby
OpenPOWER on IntegriCloud