summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}()Andrey A. Chernov2003-02-042-6/+15
| | | | | | | | | | to remove part of seed -> 1st value correlation. Correlation still remains because of algorithm limits. Note that old algorithm have even stronger correlation, especially in the lower bits area, but not eye-visible, as current one. Notes: svn path=/head/; revision=110321
* Park & Miller PRNG can be safely initialized with any value but 0 and stuckAndrey A. Chernov2003-02-032-2/+8
| | | | | | | | | | at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to 2147483647 after calculation, but this method not works since 2147483647 seed returns to 0 again on the next interation. Instead of after calculation mapping, map 0 to another value _before_ calculation, so it never stucks. Notes: svn path=/head/; revision=110280
* For some combinations of variable sizes and RAND_MAX value rand_r()Andrey A. Chernov2003-02-021-2/+4
| | | | | | | may store less amount bits for seed, than available. Fix it. Notes: svn path=/head/; revision=110236
* Document a bug in our chroot(2) implementation: if access controlRobert Watson2003-01-311-0/+6
| | | | | | | | | | | | | | checks, including the "open directory" check or a MAC check fail, after the working directory of the process has been changed, then the cwd of the process will be left as the target directory rather than the original directory. At some point, this bug might be fixable by performing the directory change only after permission is granted for the change. In the mean time document it (it's been there for a while). Notes: svn path=/head/; revision=110158
* Zap another reference to !RFPROC being unsupported that I missed before.Tim J. Robbins2003-01-311-2/+0
| | | | Notes: svn path=/head/; revision=110135
* Don't use -compact in list of available flags. Fix tag width.Tim J. Robbins2003-01-311-1/+1
| | | | Notes: svn path=/head/; revision=110134
* !RFPROC has been supported for a while now.Tim J. Robbins2003-01-311-2/+1
| | | | Notes: svn path=/head/; revision=110133
* Back out previous. Many people disagreed with removing the warning.Tim J. Robbins2003-01-301-0/+8
| | | | Notes: svn path=/head/; revision=110127
* Add getosreldate.3 to the Makefile.Tom Rhodes2003-01-301-1/+1
| | | | Notes: svn path=/head/; revision=110122
* Add a manual page for getosreldate.c.Tom Rhodes2003-01-301-0/+65
| | | | | | | | | PR: 46365 Submitted by: gioria (original version) OK'ed by: alfred (older version) Notes: svn path=/head/; revision=110120
* Catch some cases where asking for ridiculously large allocations couldPoul-Henning Kamp2003-01-301-0/+4
| | | | | | | result in a segfault. Instead just return NULL. Notes: svn path=/head/; revision=110103
* Remove runtime warning about gets().Tim J. Robbins2003-01-301-8/+0
| | | | Notes: svn path=/head/; revision=110085
* Lock stdin on entry, unlock on return, use __sgetc() instead of getchar()Tim J. Robbins2003-01-301-5/+9
| | | | | | | | to avoid locking the stream for each character and to avoid input being scattered among multiple threads. Notes: svn path=/head/; revision=110082
* Fix signed/unsigned comparison warnings.Martin Blapp2003-01-271-3/+3
| | | | | | | | Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109957
* Fix signed/unsigned comparison warnings. Fix spelling error inMartin Blapp2003-01-271-4/+5
| | | | | | | | | | | | comment. NetBSD Rev. 1.9 and 1.7 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109956
* Make this work in the !INET6 case -- if we mismatch the AF, don't return aMartin Blapp2003-01-271-9/+10
| | | | | | | | | | | | | bogus (uninitialized) structure. Also, ignore v4 ifa's with no broadcast address (rather than core dumping). NetBSD Rev 1.8 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109955
* Check pmap_flag before sendto.Martin Blapp2003-01-271-1/+2
| | | | | | | | | | NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109954