summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Implement and document nan(), nanf(), and nanl(). This commitDavid Schultz2007-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. Notes: svn path=/head/; revision=174684
* Export gdtoa's __ULto{x,Q}_D2A routine in a private namespace soDavid Schultz2007-12-165-0/+17
| | | | | | | libm can use it. Notes: svn path=/head/; revision=174681
* Arrange so that the NaN returned by strtod("nan", NULL) is the same asDavid Schultz2007-12-165-27/+27
| | | | | | | the NaN returned by strtod("nan()", NULL). Notes: svn path=/head/; revision=174680
* Increment the version namespace for 8.0-current. New symbols andDaniel Eischen2007-12-141-0/+5
| | | | | | | symbols whose ABI has changed should be added to FBSD_1.1. Notes: svn path=/head/; revision=174595
* Update posix_openpt(3) to handle 512 ptys. This was missed in the earlierJohn Baldwin2007-12-131-2/+2
| | | | | | | | | pty(4) changes. MFC after: 3 days Notes: svn path=/head/; revision=174565
* Remove license clause 3 to agree with the now-standard BSD license.Wes Peters2007-12-123-14/+0
| | | | | | | Prompted by: Glenn Halperin, Symbian Software Notes: svn path=/head/; revision=174553
* Implementing 'fallback' nsswitch source. 'fallback' source is usedMichael Bushkov2007-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) Notes: svn path=/head/; revision=174547
* Remove 3rd clause of licenseAlexey Zelkin2007-12-121-4/+0
| | | | | | | Per request of: glenn halperin at symbian.com Notes: svn path=/head/; revision=174546
* Fix typo in the commentAndrey A. Chernov2007-12-111-1/+1
| | | | Notes: svn path=/head/; revision=174541
* Remove some test instrumentation. (The Symbol.map changes broke it anyway.)David Schultz2007-12-092-8/+0
| | | | Notes: svn path=/head/; revision=174495
* Fix handling of subnormals on i386/ia64/amd64.David Schultz2007-12-091-2/+0
| | | | | | | PR: 85080 Notes: svn path=/head/; revision=174488
* Make the warning a bit less 'broad' then it used to be. The accessRemko Lodder2007-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 Notes: svn path=/head/; revision=174463
* Merge BIND 9.4.2 into main chunk.Hajimu UMEMOTO2007-12-032-18/+25
| | | | Notes: svn path=/head/; revision=174226
* This commit was generated by cvs2svn to compensate for changes in r174223,Hajimu UMEMOTO2007-12-031-2/+2
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=174224
| * Vendor import of BIND 9.4.2vendor/resolver/9.4.2Hajimu UMEMOTO2007-12-033-21/+32
| | | | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=174223 svn path=/vendor/resolver/9.4.2/; revision=174225; tag=vendor/resolver/9.4.2
| * Vendor import of BIND 9.4.1vendor/resolver/9.4.1Hajimu UMEMOTO2007-06-031-2/+7
| | | | | | | | | | Notes: svn path=/vendor/resolver/dist/; revision=170245 svn path=/vendor/resolver/9.4.1/; revision=170246; tag=vendor/resolver/9.4.1
* | Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are noDag-Erling Smørgrav2007-12-034-11/+11
| | | | | | | | | | | | | | longer required. Notes: svn path=/head/; revision=174221
* | In scanf, round according to the current rounding mode.David Schultz2007-12-037-8/+20
| | | | | | | | Notes: svn path=/head/; revision=174204
* | Only zero large allocations when necessary (for calloc()).Jason Evans2007-11-281-1/+1
| | | | | | | | Notes: svn path=/head/; revision=174002
* | Add _pthread_mutex_init_calloc_cb to libc's map, for which malloc definesJason Evans2007-11-271-0/+1
| | | | | | | | | | | | | | a stub. Notes: svn path=/head/; revision=173986
* | Document the B and L MALLOC_OPTIONS.Jason Evans2007-11-271-1/+26
| | | | | | | | Notes: svn path=/head/; revision=173969
* | Implement dynamic load balancing of thread-->arena mapping, based on lockJason Evans2007-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.) Notes: svn path=/head/; revision=173968
* | Implement lazy deallocation of small objects. For each arena, maintain aJason Evans2007-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. Notes: svn path=/head/; revision=173966
* | Avoid re-zeroing memory in calloc() when possible.Jason Evans2007-11-271-143/+218
| | | | | | | | Notes: svn path=/head/; revision=173965
* | Fix stats printing of the amount of memory currently consumed by hugeJason Evans2007-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 Notes: svn path=/head/; revision=173964
* | Use an intermediate pointer to avoid a strict aliasing warning.John Birrell2007-11-231-1/+2
| | | | | | | | Notes: svn path=/head/; revision=173859
* | Use an intermediate pointer to avoid a strict aliasing warning.John Birrell2007-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". Notes: svn path=/head/; revision=173793
* | Use intermediate pointers to avoid strict alias type check failuresJohn Birrell2007-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. Notes: svn path=/head/; revision=173763
* | Change the casts from (pthread_mutex_t *) to (void *) to keep gcc quiet.Olivier Houchard2007-11-191-3/+3
| | | | | | | | | | | | | | Anybody with a cleaner solution feel free to change it. Notes: svn path=/head/; revision=173757
* | Fix bad rule and bad dependency for nsparser.h that canRuslan Ermilov2007-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 Notes: svn path=/head/; revision=173660
* | - Include runetype.h for _RuneLocale_Rong-En Fan2007-11-071-0/+2
| | | | | | | | Notes: svn path=/head/; revision=173420
* | Remove extraneous empty lines, to fix mdoc warnings.Giorgos Keramidas2007-10-303-7/+3
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173186
* | mdoc fix: remove extraneous empty line.Giorgos Keramidas2007-10-301-2/+1
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173185
* | Bump manpage date, missed during the last change.Giorgos Keramidas2007-10-301-1/+1
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173184
* | The .Fx request doesn't recognize 2.2.0, so use ".Fx 2.2"Giorgos Keramidas2007-10-301-1/+1
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173183
* | Remove extraneous .Ef request.Giorgos Keramidas2007-10-301-2/+1
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173182
* | Back out 2nd part of wrong iswascii() change in prev. commit.Andrey A. Chernov2007-10-231-1/+1
| | | | | | | | Notes: svn path=/head/; revision=172909
* | Add a BUGS section to note that mount/chroot changes sinceJohn Birrell2007-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@ Notes: svn path=/head/; revision=172886
* | Add the full module path name to the kld_file_stat structureJohn Birrell2007-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 Notes: svn path=/head/; revision=172862
* | Remove out of date notes, the atoi code is thread-safe and async-cancelDavid Xu2007-10-191-4/+0
| | | | | | | | | | | | | | | | | | safe. Discussed with: desichen Notes: svn path=/head/; revision=172790
* | Unbreak arm build by removing duplicate symbols.Olivier Houchard2007-10-181-8/+0
| | | | | | | | Notes: svn path=/head/; revision=172775
* | The fork symbols aren't MD, they already live in sys/.Yaroslav Tykhiy2007-10-181-3/+0
| | | | | | | | | | | | | | | | Found by: version_gen.awk Tested by: md5(1) (libc.so hasn't changed at all) Notes: svn path=/head/; revision=172750
* | Fix build from errors exposed with recent version_gen.awk commit.Peter Grehan2007-10-181-2/+1
| | | | | | | | | | | | | | | | Not quite sure if this is 100% correct: awaiting review. But quieten tinderbox in the meantime. Notes: svn path=/head/; revision=172740
* | - Correctly define CACHED_SOCKET_PATH as /var/run/nscd after cached toTom McLaughlin2007-10-171-1/+1
| | | | | | | | | | | | | | | | | | nscd renaming. Approved by: mux Notes: svn path=/head/; revision=172730
* | VM_METER is long deprecated.Ruslan Ermilov2007-10-161-2/+2
| | | | | | | | Notes: svn path=/head/; revision=172699
* | Rescue parts of the sensorsd commit that are still relevant:Ruslan Ermilov2007-10-161-6/+9
| | | | | | | | | | | | | | | | | | - HW_FLOATINGPOINT renamed to HW_FLOATINGPT. - Documented HW_REALMEM. - Sorted as per <sys/sysctl.h>. Notes: svn path=/head/; revision=172698
* | Backout sensors framework.Alexander Leidinger2007-10-151-36/+6
| | | | | | | | | | | | | | | | Requested by: phk Discussed on: cvs-all Notes: svn path=/head/; revision=172674
* | Add comment explaining __mb_sb_limit trick here.Andrey A. Chernov2007-10-151-0/+5
| | | | | | | | Notes: svn path=/head/; revision=172661
* | Fix mdoc in last commit.Ruslan Ermilov2007-10-141-13/+15
| | | | | | | | Notes: svn path=/head/; revision=172646
* | Import OpenBSD's sysctl hardware sensors framework.Alexander Leidinger2007-10-141-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts) Notes: svn path=/head/; revision=172631