summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix markup, language, function prototype, and example code.ru2006-09-301-35/+49
|
* Markup nit.ru2006-09-291-1/+1
|
* Fix typovd2006-09-261-2/+1
| | | | | | PR: docs/103666 Submitted by: vd Approved by: maxim
* Keep compatible parts in sync with OpenBSD v1.21, add some comments.ache2006-09-231-15/+7
| | | | No functional changes.
* Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSDache2006-09-221-12/+0
| | | | v1.21 which just do that.
* Be more GNU compatible:ache2006-09-221-2/+5
| | | | | | don't be greedy on the GNU "::" extension when arg separated by whitespace and POSIX_CORRECTLY is set. From POSIX point of view this is unclear situation, so minimal assumption looks right.
* Do not declare __evOptMonoTime static in one place and externkan2006-09-221-0/+2
| | | | in another. GCC4 does not like that.
* Use correct type in va_arg argument.kan2006-09-212-2/+2
|
* remove thr_getscheduler, thr_setscheduler, thr_setschedparam,davidxu2006-09-211-9/+3
| | | | add rtprio_thread.
* o Don't fseek() on closed file.maxim2006-09-181-2/+2
| | | | | Submitted by: pgollucci@p6m7g8.com, Mark Costlow MFC after: 3 weeks
* Markup fixes.ru2006-09-1722-130/+142
|
* Remove more traces of Alpha.ru2006-09-171-4/+0
|
* Remove reference to T/TCP.joel2006-09-131-5/+2
| | | | Reviewed by: andre
* Fix a typobrian2006-09-101-2/+2
|
* Sync with NetBSD rev. 1.16 + 1.17mbr2006-09-091-2/+5
| | | | | | | | Coverity CID 2292: Plug memory leak. Coverity CID 2291: Move function call before allocating storage to prevent memory leak on error. MFC after: 1 month
* Sync with NetBSD rev. 1.29mbr2006-09-091-0/+4
| | | | | | Coverity CID 2293: Fix memory leak. MFC after: 1 month
* Sync with NetBSD rev. 1.6 + 1.7mbr2006-09-091-4/+4
| | | | | | Coverity CID 779 + 780: Avoid NULL pointer dereference. MFC after: 1 month
* Sync with NetBSD rev. 1.20 + 1.21mbr2006-09-091-6/+11
| | | | | | | Coverity CID 2284: Fix multiple memory leaks. Coverity CID 710: Remove unreachable code. MFC after: 1 month
* Sync with NetBSD rev. 1.10mbr2006-09-091-0/+1
| | | | | | Coverity CID 2276: Don't leak memory on error. MFC after: 1 month
* Sync with NetBSD rev. 1.15mbr2006-09-091-0/+1
| | | | | | Coverity CID 2275: Avoid memory leak on error. MFC after: 1 month
* Sync part of NetBSD rev. 1.14mbr2006-09-091-1/+1
| | | | | | | Fix unpaired sigblock which possibly leaves the process with all signals blocked. MFC after: 2 weeks
* Sync with NetBSD rev. 1.16 + 1.17mbr2006-09-091-1/+4
| | | | | | | Coverity CID 3651: Don't leak ifaddrs on getaddrinfo failure. Coverity CID 2283: Don't leak sys_auth on error. MFC after: 1 month
* Change the way base allocation is done for internal malloc datajasone2006-09-081-56/+93
| | | | | | | structures, in order to avoid the possibility of attempted recursive lock acquisition for chunks_mtx. Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru>
* alloca() cannot check if the allocation is valid; mention the consequences.ru2006-09-051-4/+13
| | | | Obtained from: OpenBSD
* GC dead code. If we want to stay polite to the foreign compilers,ru2006-09-052-63/+1
| | | | | | we can find another way to issue an #error, but using a preprocessed assembler for that purpose and clobbering libc.a with an empty .o just for the sake of #error reporting is way too much of a burden.
* Whitespace fix.marcel2006-09-021-1/+1
|
* Enable TLS on PowerPC.marcel2006-09-011-1/+0
|
* Fix style(9) in code copied from rtld.marcel2006-09-011-3/+3
|
* Enable TLS on ia64.marcel2006-09-011-1/+0
|
* Fix the variant I allocation for KSE: Allow a larger TCB and assumemarcel2006-09-011-46/+37
| | | | | that the documented TCB is at the tail of the extended TCB. In other words, the base of the TCB has a negative offset from the TLS.
* Avoid dead code elimination of the assignment to TP by using inlinemarcel2006-08-301-2/+2
| | | | assembly.
* Prevent dead code elimination for the TP assignmient by using inlinemarcel2006-08-301-2/+1
| | | | assembly.
* Note that the system only allows a maximum of kern.kq_calloutmax timers.ceri2006-08-251-1/+10
| | | | | | PR: docs/102353 Submitted by: phk MFC after: 1 week
* Remove alpha left-overs.ru2006-08-2251-2957/+2
|
* If __ARMEB__ is defined, we're already using the network byte order, socognet2006-08-214-0/+8
| | | | | | | there's no need to to anything in the hton* functions, beside returning the parameter. Spotted out by: Oleksandr Tymoshenko <gonzo@freebsd.org>
* Document EAGAIN failure per PR. (Finally!)wes2006-08-161-1/+12
| | | | PR: 24125
* We operate on 'statfs' structures, not on 'fsstat' structures.pjd2006-08-151-2/+2
| | | | MFC after: 3 days
* Improve the wording. Remove the appositive about strcmp, putting thedd2006-08-141-2/+5
| | | | | first sentence back to the way it was. Add a second sentence that explains the case when strcmp is called.
* Correctly handle the case in calloc(num, size) wherecperciva2006-08-131-1/+1
| | | | | | | | | | | (size_t)(num * size) == 0 but both num and size are nonzero. Reported by: Ilja van Sprundel Approved by: jasone Security: Integer overflow; calloc was allocating 1 byte in response to a request for a multiple of 2^32 (or 2^64) bytes instead of returning NULL.
* Define NO_TLS on PowerPC.marcel2006-08-091-0/+1
| | | | See also: PR ia64/91846
* o It speaks about struct msqid_ds not struct shmid_ds.maxim2006-08-091-1/+1
| | | | | | PR: docs/101314 Submitted by: Vasil Dimov MFC after: 1 week
* Return length from fwopen() file callback instead of zero.phk2006-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | The symptom is that syslog() fails to log anything but the "ident" string if LOG_PERROR is specified to openlog(3) and the extensible printf is in action. For unclear, likely quaint historical reasons, syslog uses fwopen() on a stack buffer, rather than using the more straightforward and faster snprintf(). Along the way, fflush(3) is called, and since the callback writer function returns zero instead of the length "written", __SERR naturally gets set on the filedescriptor. The extensible printf, in difference from the normal printf refuses to output anything to an __SERR marked filedescriptor, and thus the actual syslog message is supressed. MFC: after 2 weeks
* Check if the filedes of kevent is expected one. Though ourume2006-08-041-0/+4
| | | | | | | | | old resolver opened just one socket, BIND9's resolver may open more than one sockets. And, BIND9's resolver doesn't close the socket on timeout. So, we need this check. Reported by: freebsd-cvs-src__at__oldach.net (Helge Oldach), bz Hinted by: rwatson
* _close() should be called instead of close() here.ume2006-08-041-2/+6
|
* Commit the results of the typo hunt by Darren Pilgrim.yar2006-08-041-1/+1
| | | | | | | | | | This change affects documentation and comments only, no real code involved. PR: misc/101245 Submitted by: Darren Pilgrim <darren pilgrim bitfreak org> Tested by: md5(1) MFC after: 1 week
* In DCE 1.1, the time_low value is defined as an unsigned 32-bitdelphij2006-08-031-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | integer. Presently, our implementation employs an approach that converts the value to int64_t, then back to int, unfortunately, this approach can be problematic when the the difference between the two time_low is larger than 0x7fffffff, as the value is then truncated to int. To quote the test case from the original PR, the following is true with the current implementation: 865e1a56-b9d9-11d9-ba27-0003476f2e88 < 062ac45c-b9d9-11d9-ba27-0003476f2e88 However, according to the DCE specification, the expected result should be: 865e1a56-b9d9-11d9-ba27-0003476f2e88 > 062ac45c-b9d9-11d9-ba27-0003476f2e88 This commit adds a new intermediate variable which uses int64_t to store the result of subtraction between the two time_low values, which would not introduce different semantic of the MSB found in time_low value. PR: 83107 Submitted by: Steve Sears <sjs at acm dot org> MFC After: 1 month
* Conditionally expand the size_invs lookup table in arena_run_reg_dalloc()jasone2006-07-271-1/+12
| | | | | | | | so that architectures with a quantum of 8 (rather than 16) work. Restore arm's quantum to 8. Submitted by: jmg
* Use 4 as QUANTUM_2POW_MIN on arm as it is on any other architecture, to avoidcognet2006-07-271-1/+1
| | | | triggering an assertion later.
* Fix cpp logic in arena_malloc() to adjust size when assertions are enabled,jasone2006-07-271-23/+19
| | | | | | | | even if stats gathering is disabled. [1] Remove 'size' parameter from several functions that do not use it. Reported by: [1] ache
* Remove stale comment about armimp2006-07-261-2/+0
|
OpenPOWER on IntegriCloud