| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
fix const poisoning
add cast to silence warning
pull in unistd.h
|
| |
|
|
|
|
|
| |
Submitted by: imp
Reviewed by: silence on -audit
|
| |
|
|
|
|
| |
dladdr() and dlinfo() functions calls.
|
|
|
|
|
| |
Submitted by: Murray S. Kucherawy <msk@blackops.org>
X-MFC after: re approval
|
|
|
|
|
| |
PR: 48125
Submitted by: Per Hedeland <per@hedeland.org> (original version)
|
| |
|
|
|
|
| |
Prompted by: mini
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
o Add cross reference to dlinfo(3)
o Minor mdoc nits
|
| |
|
|
|
|
| |
examples, but it's better than nothing already.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|