summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a typo in regards to the ENOENT error.jhb2007-12-271-1/+1
| | | | | | PR: docs/118929 Submitted by: mymtom of hotmail MFC after: 3 days
* Clean up some of the pts(4) vs pty(4) stuff in grantpt(3) and friends:jhb2007-12-211-22/+23
| | | | | | | | | | - Use PTY* for all pty(4) related constants. - Use PTMX* for all pts(4) related constants. - Consistently use _PATH_DEV PTMX rather than "/dev/ptmx". - Revert 1.7 and properly fix it by using the correct prefix string for pts(4) masters. MFC after: 3 days
* Reduce lock contention for simple cases.imp2007-12-191-16/+22
| | | | | | # this really should be done with pthread_once, but I've debugged this code. Reviewed by: arch@
* Add note about other systems.imp2007-12-191-0/+3
|
* Move all the xprintf-related symbols to FBSDprivate_1.0.das2007-12-181-9/+13
| | | | Discussed with: deischen, kan, phk
* Since nan() is supposed to work the same as strtod("nan(...)", NULL),das2007-12-184-12/+0
| | | | | | | | | | | | my original implementation made both use the same code. Unfortunately, this meant libm depended on a vendor header at compile time and previously- unexposed vendor bits in libc at runtime. Hence, I just wrote my own version of the relevant vendor routine. As it turns out, mine has a factor of 8 fewer of lines of code, and is a bit more readable anyway. The strtod() and *scanf() routines still use vendor code. Reviewed by: bde
* Use fixed point integer math instead of floating point math whenjasone2007-12-181-42/+47
| | | | | | | | | | calculating run sizes. Use of the floating point unit was a potential pessimization to context switching for applications that do not otherwise use floating point math. [1] Reformat cpp macro-related comments to improve consistency. Submitted by: das
* Catch up with vfprintf.c,v 1.77.das2007-12-181-0/+1
|
* Moved logging out of the nss_method_lookup() in order not tobushman2007-12-171-9/+13
| | | | flood logs with failed fallback method lookup attempts.
* Refactor features a bit in order to make it possible to disable lazyjasone2007-12-171-52/+127
| | | | | | | | | deallocation and dynamic load balancing via the MALLOC_LAZY_FREE and MALLOC_BALANCE knobs. This is a non-functional change, since these features are still enabled when possible. Clean up a few things that more pedantic compiler settings would cause complaints over.
* Implement and document nan(), nanf(), and nanl(). This commitdas2007-12-161-4/+23
| | | | | | | adds two new directories in msun: ld80 and ld128. These are for long double functions specific to the 80-bit long double format used on x86-derived architectures, and the 128-bit format used on sparc64, respectively.
* Export gdtoa's __ULto{x,Q}_D2A routine in a private namespace sodas2007-12-165-0/+17
| | | | libm can use it.
* Arrange so that the NaN returned by strtod("nan", NULL) is the same asdas2007-12-165-27/+27
| | | | the NaN returned by strtod("nan()", NULL).
* Increment the version namespace for 8.0-current. New symbols anddeischen2007-12-141-0/+5
| | | | symbols whose ABI has changed should be added to FBSD_1.1.
* Update posix_openpt(3) to handle 512 ptys. This was missed in the earlierjhb2007-12-131-2/+2
| | | | | | pty(4) changes. MFC after: 3 days
* Remove license clause 3 to agree with the now-standard BSD license.wes2007-12-123-14/+0
| | | | Prompted by: Glenn Halperin, Symbian Software
* Implementing 'fallback' nsswitch source. 'fallback' source is usedbushman2007-12-123-116/+220
| | | | | | | | | | | | when particular function can't be found in nsswitch-module. For example, getgrouplist(3) will use module-supplied 'getgroupmembership' function (which can work in an optimal way for such source as LDAP) and will fall back to the stanard iterate-through-all-groups implementation otherwise. PR: ports/114655 Submitted by: Michael Hanselmann <freebsd AT hansmi DOT ch> Reviewed by: brooks (mentor)
* Remove 3rd clause of licensephantom2007-12-121-4/+0
| | | | Per request of: glenn halperin at symbian.com
* Fix typo in the commentache2007-12-111-1/+1
|
* Remove some test instrumentation. (The Symbol.map changes broke it anyway.)das2007-12-092-8/+0
|
* Fix handling of subnormals on i386/ia64/amd64.das2007-12-091-2/+0
| | | | PR: 85080
* Make the warning a bit less 'broad' then it used to be. The accessremko2007-12-081-1/+10
| | | | | | | | | is seems to be a problem for SUID applications, which we like to prevent as much as possible. PR: docs/39530 Submitted by: Soren Spies <sspies at apple dot com> MFC After: 3 days
* Merge BIND 9.4.2 into main chunk.ume2007-12-032-18/+25
|
* This commit was generated by cvs2svn to compensate for changes in r174223,ume2007-12-031-2/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.4.2ume2007-12-033-21/+32
| |
| * Vendor import of BIND 9.4.1ume2007-06-031-2/+7
| |
* | Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are nodes2007-12-034-11/+11
| | | | | | | | longer required.
* | In scanf, round according to the current rounding mode.das2007-12-037-8/+20
| |
* | Only zero large allocations when necessary (for calloc()).jasone2007-11-281-1/+1
| |
* | Add _pthread_mutex_init_calloc_cb to libc's map, for which malloc definesjasone2007-11-271-0/+1
| | | | | | | | a stub.
* | Document the B and L MALLOC_OPTIONS.jasone2007-11-271-1/+26
| |
* | Implement dynamic load balancing of thread-->arena mapping, based on lockjasone2007-11-271-58/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contention. The intent is to dynamically adjust to load imbalances, which can cause severe contention. Use pthread mutexes where possible instead of libc "spinlocks" (they aren't actually spin locks). Conceptually, this change is meant only to support the dynamic load balancing code by enabling the use of spin locks, but it has the added apparent benefit of substantially improving performance due to reduced context switches when there is moderate arena lock contention. Proper tuning parameter configuration for this change is a finicky business, and it is very much machine-dependent. One seemingly promising solution would be to run a tuning program during operating system installation that computes appropriate settings for load balancing. (The pthreads adaptive spin locks should probably be similarly tuned.)
* | Implement lazy deallocation of small objects. For each arena, maintain ajasone2007-11-271-0/+218
| | | | | | | | | | | | | | | | | | | | | | vector of slots for lazily freed objects. For each deallocation, before doing the hard work of locking the arena and deallocating, try several times to randomly insert the object into the vector using atomic operations. This approach is particularly effective at reducing contention for multi-threaded applications that use the producer-consumer model, wherein one producer thread allocates objects, then multiple consumer threads deallocate those objects.
* | Avoid re-zeroing memory in calloc() when possible.jasone2007-11-271-143/+218
| |
* | Fix stats printing of the amount of memory currently consumed by hugejasone2007-11-271-36/+37
| | | | | | | | | | | | | | | | | | | | | | allocations. [1] Fix calculation of the number of arenas when 'n' is specified via MALLOC_OPTIONS. Clean up various style inconsistencies. Obtained from: [1] NetBSD
* | Use an intermediate pointer to avoid a strict aliasing warning.jb2007-11-231-1/+2
| |
* | Use an intermediate pointer to avoid a strict aliasing warning.jb2007-11-211-1/+2
| | | | | | | | | | | | Note that ULong in this code is actually defined as an unsigned integer across all arches so that the gdtoa() function always processes 32 bit data despite the unfortunate naming of "ULong".
* | Use intermediate pointers to avoid strict alias type check failuresjb2007-11-207-15/+47
| | | | | | | | | | using gcc 4.2. This is required for tinderbox which doesn't have -fno-strict-aliasing in it's custom CFLAGS.
* | Change the casts from (pthread_mutex_t *) to (void *) to keep gcc quiet.cognet2007-11-191-3/+3
| | | | | | | | Anybody with a cleaner solution feel free to change it.
* | Fix bad rule and bad dependency for nsparser.h that canru2007-11-151-6/+3
| | | | | | | | | | | | | | | | | | | | | | cause the build to fail because y.tab.c can have a more recent modification time than y.tab.h, and the bad rule relied on the opposite. (The last write to y.tab.c by yacc(1) happens after the last write to y.tab.h, according to truss(1).) Reported by: kensmith
* | - Include runetype.h for _RuneLocale_rafan2007-11-071-0/+2
| |
* | Remove extraneous empty lines, to fix mdoc warnings.keramida2007-10-303-7/+3
| | | | | | | | MFC after: 3 days
* | mdoc fix: remove extraneous empty line.keramida2007-10-301-2/+1
| | | | | | | | MFC after: 3 days
* | Bump manpage date, missed during the last change.keramida2007-10-301-1/+1
| | | | | | | | MFC after: 3 days
* | The .Fx request doesn't recognize 2.2.0, so use ".Fx 2.2"keramida2007-10-301-1/+1
| | | | | | | | MFC after: 3 days
* | Remove extraneous .Ef request.keramida2007-10-301-2/+1
| | | | | | | | MFC after: 3 days
* | Back out 2nd part of wrong iswascii() change in prev. commit.ache2007-10-231-1/+1
| |
* | Add a BUGS section to note that mount/chroot changes sincejb2007-10-221-0/+4
| | | | | | | | | | | | | | | | | | a module was loaded might make the pathname inaccurate. I wonder if an inode reference should be stored with the pathname to allow a validity check? Suggested by: rwatson@
* | Add the full module path name to the kld_file_stat structurejb2007-10-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days
* | Remove out of date notes, the atoi code is thread-safe and async-canceldavidxu2007-10-191-4/+0
| | | | | | | | | | | | safe. Discussed with: desichen
OpenPOWER on IntegriCloud