summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* MFp4: Pentium/Athlon-optimised implementation of wmemchr().tjr2003-03-122-1/+115
|
* MFp4: Pentium-optimised implementation of wcscmp(). Performs significantlytjr2003-03-102-1/+80
| | | | better than the code generated by gcc in many cases.
* MFp4: Add the standard "the {fgetws,fputws} function will fail if" texttjr2003-03-092-0/+6
| | | | to the Errors section.
* Clean up some signed/unsigned issues in the XDR code.nectar2003-03-073-12/+18
| | | | Obtained from: OpenBSD
* Remove NS and ISO stuff.peter2003-03-057-737/+3
|
* Fix threaded applications on ia64 that are linked dynamicly. We didmarcel2003-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.
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforemarcel2003-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.
* Restore vendor ID.obrien2003-03-031-2/+2
|
* Use __FBSDID.obrien2003-03-0335-44/+85
|
* Eliminate 19 warnings in libc (at level WARNS=2) of thenectar2003-02-2714-5/+33
| | | | `implicit declaration of function' variety.
* ia64 actually uses 80-bit long doubles and must support big and littlemike2003-02-262-3/+27
| | | | | | endian at compile-time. Reviewed by: das
* Fix typo.robert2003-02-251-1/+1
|
* Catch up with change to kse_release syscall.julian2003-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.
* Fixed copyright.ru2003-02-241-20/+32
| | | | | | Tidy up the markup. Only describe the new, post-2.0 behavior. Added the RETURN VALUES and ERRORS sections.
* mdoc(7) police: Scheduled sweep.ru2003-02-244-23/+26
|
* Mention CLOCK_MONOTONIC.phk2003-02-231-2/+3
|
* mdoc(7) police: markup laundry.ru2003-02-239-35/+39
|
* mdoc(7) police: kill self-xref.ru2003-02-231-1/+0
|
* Punctuation.ru2003-02-231-1/+1
|
* Typo.ru2003-02-231-1/+1
|
* Grammar.ru2003-02-231-0/+1
|
* More changes from NetBSD:mikeh2003-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
* Grab some changes from NetBSD:mikeh2003-02-231-5/+6
| | | | | | fix const poisoning add cast to silence warning pull in unistd.h
* Apple PR-2449102: getdomainname() doesn't document that it is NIS/YP specificzarzycki2003-02-221-3/+3
|
* Use strlcpy instead of strncpy.johan2003-02-221-2/+1
| | | | | Submitted by: imp Reviewed by: silence on -audit
* Fix a bad free() call that would occur if some #if 0'd code was used.tjr2003-02-221-4/+6
|
* Mention that dlerror() is also applicable to retrieve error message afterphantom2003-02-211-0/+2
| | | | dladdr() and dlinfo() functions calls.
* Fix the description for mkdtemp(), which creates directories, not files.gshapiro2003-02-191-1/+1
| | | | | Submitted by: Murray S. Kucherawy <msk@blackops.org> X-MFC after: re approval
* Update errors.trhodes2003-02-181-8/+8
| | | | | PR: 48125 Submitted by: Per Hedeland <per@hedeland.org> (original version)
* Whack 28 unused variables.nectar2003-02-188-19/+9
|
* Remove these from libc; they are now system calls.deischen2003-02-182-532/+0
| | | | Prompted by: mini
* Call the weak symbol for sigprocmask, so that it can be overridden.mini2003-02-171-1/+1
|
* Back out "drop first N values" method of removing monotonically increasedache2003-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...
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-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
* Add dlinfo(3) manual page to the rank of base system manpagesphantom2003-02-151-2/+2
|
* Add examples of dlinfo() usage to manual page.phantom2003-02-151-1/+48
|
* o Document that dlsym()'s behaviour with new special handle RTLD_SELFphantom2003-02-141-1/+16
| | | | | o Add cross reference to dlinfo(3) o Minor mdoc nits
* Follow Solaris's manual page and describe Link_map structure herephantom2003-02-141-1/+29
|
* Add manual page for dlinfo(3). It's still need some work and addphantom2003-02-141-0/+191
| | | | examples, but it's better than nothing already.
* Implement dlinfo() function.kan2003-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
* o Implement C99 classification macros isfinite(), isinf(), isnan(),mike2003-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>
* This manual is called SIGNBIT(3) not FPCLASSIFY(3).mike2003-02-121-1/+1
|
* Implement C99's signbit() macro.mike2003-02-113-2/+100
|
* Handle %%m properly in syslog format string. Previously it would expandalfred2003-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.
* Implement fpclassify():mike2003-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)
* The .Fn functioncharnier2003-02-0610-33/+43
|
* Fix use of an uninitialized pointer introduced in a previous revision.mtm2003-02-061-0/+1
| | | | Approved by: markm (mentor)(implicit)
* Since we drop NSHUFF values now, set default seed to what it becomesache2003-02-051-3/+3
| | | | after srand(1)
* Prevent uppercase after .Xr by adding ``The ... utility/system call''.charnier2003-02-052-7/+9
|
* Mention that the CLOCK_VIRTUAL and CLOCK_PROF clocks are not implemented.tjr2003-02-051-1/+7
| | | | PR: 8376
OpenPOWER on IntegriCloud