summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* MFp4: Pentium-optimised implementation of wcscmp(). Performs significantlyTim J. Robbins2003-03-102-1/+80
| | | | | | | better than the code generated by gcc in many cases. Notes: svn path=/head/; revision=112059
* MFp4: Add the standard "the {fgetws,fputws} function will fail if" textTim J. Robbins2003-03-092-0/+6
| | | | | | | to the Errors section. Notes: svn path=/head/; revision=112019
* Clean up some signed/unsigned issues in the XDR code.Jacques Vidrine2003-03-073-12/+18
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=111962
* Remove NS and ISO stuff.Peter Wemm2003-03-057-737/+3
| | | | Notes: svn path=/head/; revision=111920
* Fix threaded applications on ia64 that are linked dynamicly. We didMarcel Moolenaar2003-03-051-3/+5
| | | | | | | | | | | | | | | | | | | | not save (restore) the global pointer (GP) in the jmpbuf in setjmp (longjmp) because it's not needed in general. GP is considered a scratch register at callsites and hence is always restored after a call (when it's possible that the call resolves to a symbol in a different loadmodule; otherwise GP does not have to be saved and restored at all), including calls to setjmp/longjmp. There's just one problem with this now that we use setjmp/longjmp for context switching: A new context must have GP defined properly for the thread's entry point. This means that we need to put GP in the jmpbuf and consequently that we have to restore is in longjmp. This automaticly requires us to save it as well. When setjmp/longjmp isn't used for context switching, this can be reverted again. Notes: svn path=/head/; revision=111897
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforeMarcel Moolenaar2003-03-051-2/+2
| | | | | | | | | | | | | | the J_SIG0 field. While here, rename J_SIG0 to J_SIGSET and remove J_SIG1. The main reason for this change is that the 128-bit sigset_t is now aligned on a 16-byte boundary, which allows us to use 16-byte atomic loads and stores on CPUs that support it. The removal of J_SIG1 is done to avoid confusion: it is never accessed and should not be. Renaming J_SIG0 to J_SIGSET is the icing on the cake that's better done now than later. Notes: svn path=/head/; revision=111894
* Restore vendor ID.David E. O'Brien2003-03-031-2/+2
| | | | Notes: svn path=/head/; revision=111778
* Use __FBSDID.David E. O'Brien2003-03-0335-44/+85
| | | | Notes: svn path=/head/; revision=111777
* Eliminate 19 warnings in libc (at level WARNS=2) of theJacques Vidrine2003-02-2714-5/+33
| | | | | | | `implicit declaration of function' variety. Notes: svn path=/head/; revision=111618
* ia64 actually uses 80-bit long doubles and must support big and littleMike Barcroft2003-02-262-3/+27
| | | | | | | | | endian at compile-time. Reviewed by: das Notes: svn path=/head/; revision=111555
* Fix typo.Robert Drehmel2003-02-251-1/+1
| | | | Notes: svn path=/head/; revision=111503
* Catch up with change to kse_release syscall.Julian Elischer2003-02-251-2/+2
| | | | | | | | | | The background info in this man page needs rewriting in some parts since the last major changes to the code, however it still accuratly reflects how to use the API. Notes: svn path=/head/; revision=111476
* Fixed copyright.Ruslan Ermilov2003-02-241-20/+32
| | | | | | | | | Tidy up the markup. Only describe the new, post-2.0 behavior. Added the RETURN VALUES and ERRORS sections. Notes: svn path=/head/; revision=111449
* mdoc(7) police: Scheduled sweep.Ruslan Ermilov2003-02-244-23/+26
| | | | Notes: svn path=/head/; revision=111447
* Mention CLOCK_MONOTONIC.Poul-Henning Kamp2003-02-231-2/+3
| | | | Notes: svn path=/head/; revision=111301
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-239-35/+39
| | | | Notes: svn path=/head/; revision=111285
* mdoc(7) police: kill self-xref.Ruslan Ermilov2003-02-231-1/+0
| | | | Notes: svn path=/head/; revision=111282
* Punctuation.Ruslan Ermilov2003-02-231-1/+1
| | | | Notes: svn path=/head/; revision=111281
* Typo.Ruslan Ermilov2003-02-231-1/+1
| | | | Notes: svn path=/head/; revision=111280
* Grammar.Ruslan Ermilov2003-02-231-0/+1
| | | | Notes: svn path=/head/; revision=111278
* More changes from NetBSD:Mike Heffner2003-02-231-9/+11
| | | | | | | | | | | * use correct error detection of realloc failure * strtol negative return check * use strtol to validate string instead of rolling our own validation code * terminate the command sequence correctly Notes: svn path=/head/; revision=111274
* Grab some changes from NetBSD:Mike Heffner2003-02-231-5/+6
| | | | | | | | | fix const poisoning add cast to silence warning pull in unistd.h Notes: svn path=/head/; revision=111273
* Apple PR-2449102: getdomainname() doesn't document that it is NIS/YP specificDave Zarzycki2003-02-221-3/+3
| | | | Notes: svn path=/head/; revision=111262
* Use strlcpy instead of strncpy.Johan Karlsson2003-02-221-2/+1
| | | | | | | | Submitted by: imp Reviewed by: silence on -audit Notes: svn path=/head/; revision=111261
* Fix a bad free() call that would occur if some #if 0'd code was used.Tim J. Robbins2003-02-221-4/+6
| | | | Notes: svn path=/head/; revision=111237
* Mention that dlerror() is also applicable to retrieve error message afterAlexey Zelkin2003-02-211-0/+2
| | | | | | | dladdr() and dlinfo() functions calls. Notes: svn path=/head/; revision=111213
* Fix the description for mkdtemp(), which creates directories, not files.Gregory Neil Shapiro2003-02-191-1/+1
| | | | | | | | Submitted by: Murray S. Kucherawy <msk@blackops.org> X-MFC after: re approval Notes: svn path=/head/; revision=111117
* Update errors.Tom Rhodes2003-02-181-8/+8
| | | | | | | | PR: 48125 Submitted by: Per Hedeland <per@hedeland.org> (original version) Notes: svn path=/head/; revision=111103
* Whack 28 unused variables.Jacques Vidrine2003-02-188-19/+9
| | | | Notes: svn path=/head/; revision=111082
* Remove these from libc; they are now system calls.Daniel Eischen2003-02-182-532/+0
| | | | | | | Prompted by: mini Notes: svn path=/head/; revision=111080
* Call the weak symbol for sigprocmask, so that it can be overridden.Jonathan Mini2003-02-171-1/+1
| | | | Notes: svn path=/head/; revision=111029
* Back out "drop first N values" method of removing monotonically increasedAndrey A. Chernov2003-02-171-7/+1
| | | | | | | | | | | | | | | | | | seed->first value correlation. It breaks rand_r()... Other possible methods like shuffling inside aray will breaks rand_r() too, because it assumes only one word state, i.e. nothing extra can be added after seed assignment in srand(). BTW, for old formulae seed->first value correlation is not so monotonically increased as with other Linear Congruential Generators of this type only becase arithmetic overflow happens. But overflow affects distribution and lower bits very badly, as many articles says, such type of overflow not improves PRNG. So, monotonically increased seed->first value correlation problem remains... Notes: svn path=/head/; revision=111026
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-1637-39/+74
| | | | | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5 Notes: svn path=/head/; revision=111010
* Add dlinfo(3) manual page to the rank of base system manpagesAlexey Zelkin2003-02-151-2/+2
| | | | Notes: svn path=/head/; revision=110932
* Add examples of dlinfo() usage to manual page.Alexey Zelkin2003-02-151-1/+48
| | | | Notes: svn path=/head/; revision=110931
* o Document that dlsym()'s behaviour with new special handle RTLD_SELFAlexey Zelkin2003-02-141-1/+16
| | | | | | | | o Add cross reference to dlinfo(3) o Minor mdoc nits Notes: svn path=/head/; revision=110854
* Follow Solaris's manual page and describe Link_map structure hereAlexey Zelkin2003-02-141-1/+29
| | | | Notes: svn path=/head/; revision=110853
* Add manual page for dlinfo(3). It's still need some work and addAlexey Zelkin2003-02-141-0/+191
| | | | | | | examples, but it's better than nothing already. Notes: svn path=/head/; revision=110852
* Implement dlinfo() function.Alexander Kabaev2003-02-131-0/+8
| | | | | | | | | | | | | Introdice RTLD_SELF special handle and properly process it within dlsym() and dlinfo() functions. The intention is to improve our compatibility with Solaris and to make a Java port easier. Partially submitted by: phantom Notes: svn path=/head/; revision=110804
* o Implement C99 classification macros isfinite(), isinf(), isnan(),Mike Barcroft2003-02-1210-90/+188
| | | | | | | | | | | | isnormal(). The current isinf() and isnan() are perserved for binary compatibility with 5.0, but new programs will use the macros. o Implement C99 comparison macros isgreater(), isgreaterequal(), isless(), islessequal(), islessgreater(), isunordered(). Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> Notes: svn path=/head/; revision=110769
* This manual is called SIGNBIT(3) not FPCLASSIFY(3).Mike Barcroft2003-02-121-1/+1
| | | | Notes: svn path=/head/; revision=110739
* Implement C99's signbit() macro.Mike Barcroft2003-02-113-2/+100
| | | | Notes: svn path=/head/; revision=110734
* Handle %%m properly in syslog format string. Previously it would expandAlfred Perlstein2003-02-101-3/+13
| | | | | | | | the %m into the errno and then vfprintf would expand the % and the first character of the strerror(3) return causing possible data corruption. Notes: svn path=/head/; revision=110635
* Implement fpclassify():Mike Barcroft2003-02-0817-3/+498
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a MD header private to libc called _fpmath.h; this header contains bitfield layouts of MD floating-point types. o Add a MI header private to libc called fpmath.h; this header contains bitfield layouts of MI floating-point types. o Add private libc variables to lib/libc/$arch/gen/infinity.c for storing NaN values. o Add __double_t and __float_t to <machine/_types.h>, and provide double_t and float_t typedefs in <math.h>. o Add some C99 manifest constants (FP_ILOGB0, FP_ILOGBNAN, HUGE_VALF, HUGE_VALL, INFINITY, NAN, and return values for fpclassify()) to <math.h> and others (FLT_EVAL_METHOD, DECIMAL_DIG) to <float.h> via <machine/float.h>. o Add C99 macro fpclassify() which calls __fpclassify{d,f,l}() based on the size of its argument. __fpclassifyl() is never called on alpha because (sizeof(long double) == sizeof(double)), which is good since __fpclassifyl() can't deal with such a small `long double'. This was developed by David Schultz and myself with input from bde and fenner. PR: 23103 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> (significant portions) Reviewed by: bde, fenner (earlier versions) Notes: svn path=/head/; revision=110566
* The .Fn functionPhilippe Charnier2003-02-0610-33/+43
| | | | Notes: svn path=/head/; revision=110440
* Fix use of an uninitialized pointer introduced in a previous revision.Mike Makonnen2003-02-061-0/+1
| | | | | | | Approved by: markm (mentor)(implicit) Notes: svn path=/head/; revision=110429
* Since we drop NSHUFF values now, set default seed to what it becomesAndrey A. Chernov2003-02-051-3/+3
| | | | | | | after srand(1) Notes: svn path=/head/; revision=110421
* Prevent uppercase after .Xr by adding ``The ... utility/system call''.Philippe Charnier2003-02-052-7/+9
| | | | Notes: svn path=/head/; revision=110394
* Mention that the CLOCK_VIRTUAL and CLOCK_PROF clocks are not implemented.Tim J. Robbins2003-02-051-1/+7
| | | | | | | PR: 8376 Notes: svn path=/head/; revision=110369
* Grammer fix.Mike Heffner2003-02-041-1/+1
| | | | Notes: svn path=/head/; revision=110334