summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Grammer fix.mikeh2003-02-041-1/+1
|
* For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}()ache2003-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.
* Park & Miller PRNG can be safely initialized with any value but 0 and stuckache2003-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.
* For some combinations of variable sizes and RAND_MAX value rand_r()ache2003-02-021-2/+4
| | | | may store less amount bits for seed, than available. Fix it.
* Document a bug in our chroot(2) implementation: if access controlrwatson2003-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).
* Zap another reference to !RFPROC being unsupported that I missed before.tjr2003-01-311-2/+0
|
* Don't use -compact in list of available flags. Fix tag width.tjr2003-01-311-1/+1
|
* !RFPROC has been supported for a while now.tjr2003-01-311-2/+1
|
* Back out previous. Many people disagreed with removing the warning.tjr2003-01-301-0/+8
|
* Add getosreldate.3 to the Makefile.trhodes2003-01-301-1/+1
|
* Add a manual page for getosreldate.c.trhodes2003-01-301-0/+65
| | | | | | PR: 46365 Submitted by: gioria (original version) OK'ed by: alfred (older version)
* Catch some cases where asking for ridiculously large allocations couldphk2003-01-301-0/+4
| | | | result in a segfault. Instead just return NULL.
* Remove runtime warning about gets().tjr2003-01-301-8/+0
|
* Lock stdin on entry, unlock on return, use __sgetc() instead of getchar()tjr2003-01-301-5/+9
| | | | | to avoid locking the stream for each character and to avoid input being scattered among multiple threads.
* Fix signed/unsigned comparison warnings.mbr2003-01-271-3/+3
| | | | | Reviewed by: phk Obtained from: NetBSD
* Fix signed/unsigned comparison warnings. Fix spelling error inmbr2003-01-271-4/+5
| | | | | | | | | comment. NetBSD Rev. 1.9 and 1.7 Reviewed by: phk Obtained from: NetBSD
* Make this work in the !INET6 case -- if we mismatch the AF, don't return ambr2003-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
* Check pmap_flag before sendto.mbr2003-01-271-1/+2
| | | | | | | NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD
* Make sure we don't look before the beginning of the string.mbr2003-01-271-2/+2
| | | | | | | NetBSD Rev 1.5 Reviewed by: phk Obtained from: NetBSD
* Add missing __rpc_fixup_addr. This is needed to makembr2003-01-271-0/+3
| | | | | | | | | mount_nfs -T work for scoped addresses. NetBSD Rev 1.11 Reviewed by: phk Obtained from: NetBSD
* Free the correct buffer in error handling.mbr2003-01-271-1/+3
| | | | | | | | | Handle that malloc may return NULL. NetBSD Rev. 1.8 Reviewed by: phk Obtained from: NetBSD
* Reset the record lenght and received bytes once a recordmbr2003-01-271-0/+9
| | | | | | | | | | is finished. This fixes clients doing two RPCs over the same connection at the same time. Without this fix, we could end with a reply to old data. Submitted by: Frank van der Linden <fvdl@netbsd.org> Reviewed by: rwatson Obtained from: NetBSD
* Fix namespace pollution introduced in previous commit.mbr2003-01-262-5/+5
| | | | Reviewed by: phk
* Add const qualifier to data argument for msgsnd.alfred2003-01-261-1/+1
| | | | | PR: standards/45274 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Remove part of my stateful locale patch that slipped into the previous rev.tjr2003-01-261-3/+0
|
* Initial implementation of the C99 feature whereby calling freopen() withtjr2003-01-262-2/+94
| | | | | | | | | | a NULL filename argument allows a stream's mode to be changed. At the moment it just recycles the old file descriptor instead of storing the filename somewhere and using that to reopen the file, as the standard seems to require. Strictly conforming C99 applications probably can't tell the difference but POSIX ones can. PR: 46791
* Bring shm functions closer the the opengroup standards.alfred2003-01-252-3/+3
| | | | | PR: 47469 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Bring semop() closer the the opengroup standards.alfred2003-01-251-1/+1
| | | | | PR: 47471 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Add an MLINK malloc.conf(5) -> malloc(3).mike2003-01-241-1/+2
|
* For "sensitive" processes, we always set the 'A' flag which causes abort()phk2003-01-231-0/+7
| | | | | | | | | | | | | to be called on first sight of trouble. "sensitive" is somewhat arbitrarily defined as "setuid, setgid, uid == root or gid == wheel". The 'A' option carries no performance penalty. It is not possible to override this setting: fix the program instead. Absentmindedly nodded OK to by: various
* Remove EOL whitespaces.maxim2003-01-201-2/+2
|
* o Fix a typo.maxim2003-01-201-2/+3
| | | | | | o Prepend a function name by .Fn macro. Reviewed by: archie
* Sync with NetBSD -- sl_add() now returns an int.obrien2003-01-192-9/+23
|
* Use __FBSDID.obrien2003-01-1928-42/+66
|
* We don't need our own personal definition of __CONCAT.obrien2003-01-181-4/+1
|
* Document that listen() can return EINVAL now.tmm2003-01-171-0/+2
|
* Do a better job of documenting mincore(2), esp. the MINCORE_* flags.tjr2003-01-171-14/+46
|
* Fix memleak.mbr2003-01-161-2/+8
| | | | | Reviewed by: rwatson MFC after: 2 weeks
* Implement non-blocking tcp-connections.mbr2003-01-165-62/+437
| | | | | | Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.johan2003-01-152-9/+9
| | | | | | | | This also reverts the PATH_MAX -> MAXPATHLEN part of rev 1.3 of src/bin/realpath/realpath.c Requested by: imp Reviewed by: imp, bde
OpenPOWER on IntegriCloud