| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
2) Localize
PR: 95715
Submitted by: Li-Lun Wang <llwang@infor.org> (slightly edited by me)
|
|
|
|
|
|
|
|
|
|
| |
for rand(3), not random(3). random(3) is defined to return values between
0 and 2^31-1, so add a local RANDOM_MAX constant to this file that is
defined as 2^31-1 and use that in place of RAND_MAX.
Reviewed by: bde
Approved by: re (dwhite)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
and RAND_MAX != LONG_MAX on 64-bit platforms.
PR: amd64/81279
Submitted by: Vivek Khera vivek at khera dot org
Submitted by: Adriaan de Groot groot at kde dot org
MFC after: 1 week
|
| |
|
|
|
|
|
| |
Const-qualify 'filename' to avoid a strdup() call due to -Wwrite-strings
silliness.
|
|
|
|
| |
and protect copyright[] from Gcc 3.3's whining.
|
|
|
|
|
|
|
|
|
| |
few bugs for a few corner cases and correctly handle the case where
read(2) is read()'ing from a non-file descriptor and could get fewer
bytes back than the buffer, but it isn't EOF[2]. random(6) extensively
tested and believed to be bug free (save performance for large files).
Submitted by: mkm [1], tjr[2]
|
|
|
|
|
|
|
| |
off of lines or words. See the man page for details.
Reviewed by: markm
MFC after: 3 days
|
|
|
|
|
|
| |
Remove __STDC__ (which means we now use stdarg rather than vararg)
Remove register
Remove main prototype
|
| |
|
| |
|
|
|
|
|
|
|
| |
EOF? The getopt(3) manpage clearly states that the return value is *-1*,
not EOF! Besides, getopt(3) isn't reading from a file. :)
Noticed-while: merging to 2.2 (where this is correct).
|
| |
|
|
|
|
|
| |
Reviewed by: maybe@yes.no
Obtained from: OpenBSD (mostly deraadt@openbsd.org)
|
| |
|
|
|
|
| |
Add range checking for invalid denominator values
|
|
|
|
| |
Use ^ getpid() instead of + getpid()
|
| |
|
|
|
|
| |
in <time.h>.
|
|
of the x11 based games. I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way. Bleah.
Submitted by: jkh
|