| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
| |
the %m into the errno and then vfprintf would expand the % and the first
character of the strerror(3) return causing possible data corruption.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
| |
Approved by: markm (mentor)(implicit)
|
|
|
|
| |
after srand(1)
|
| |
|
|
|
|
| |
PR: 8376
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
may store less amount bits for seed, than available. Fix it.
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
PR: 46365
Submitted by: gioria (original version)
OK'ed by: alfred (older version)
|
|
|
|
| |
result in a segfault. Instead just return NULL.
|
| |
|
|
|
|
|
| |
to avoid locking the stream for each character and to avoid input being
scattered among multiple threads.
|
|
|
|
|
| |
Reviewed by: phk
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
| |
comment.
NetBSD Rev. 1.9 and 1.7
Reviewed by: phk
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
NetBSD r 1.5
Reviewed by: phk
Obtained from: NetBSD
|
|
|
|
|
|
|
| |
NetBSD Rev 1.5
Reviewed by: phk
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
| |
mount_nfs -T work for scoped addresses.
NetBSD Rev 1.11
Reviewed by: phk
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
| |
Handle that malloc may return NULL.
NetBSD Rev. 1.8
Reviewed by: phk
Obtained from: NetBSD
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Reviewed by: phk
|
|
|
|
|
| |
PR: standards/45274
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
PR: 47469
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
|
|
|
|
|
| |
PR: 47471
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
o Prepend a function name by .Fn macro.
Reviewed by: archie
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Reviewed by: rwatson
MFC after: 2 weeks
|
|
|
|
|
|
| |
Reviewed by: rwatson
Obtained from: NetBSD
MFC after: 1 day
|
|
|
|
|
|
|
|
| |
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
|