| #
0b8224d1
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
| #
bdcbfde3
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a pe
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
1a7ac2bd
|
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
show more ...
|
| #
b33a8b38
|
| 16-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357966 through r357999.
|
| #
06257a71
|
| 15-Feb-2020 |
Conrad Meyer <cem@FreeBSD.org> |
random(6): Re-add undocumented support for floating point denominators
And document it in the manual page.
PR: 244139 Submitted by: Keith White <kwhite AT site.uottawa.ca> (earlier version)
|
| #
c7b8411c
|
| 13-Dec-2019 |
Conrad Meyer <cem@FreeBSD.org> |
random(6): produce random results
This program is trash and there's no reason to keep it in base. But as long as we're shipping a silly program named 'random', let's actually make it random.
|
| #
0b8224d1
|
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
| #
bdcbfde3
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a pe
usr.bin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
1d386b48
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| #
1a7ac2bd
|
| 07-Jul-2023 |
Alfonso Gregory <gfunni234@gmail.com> |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dea
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
show more ...
|
| #
b33a8b38
|
| 16-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r357966 through r357999.
|
| #
06257a71
|
| 15-Feb-2020 |
Conrad Meyer <cem@FreeBSD.org> |
random(6): Re-add undocumented support for floating point denominators
And document it in the manual page.
PR: 244139 Submitted by: Keith White <kwhite AT site.uottawa.ca> (earlier version)
|
| #
c7b8411c
|
| 13-Dec-2019 |
Conrad Meyer <cem@FreeBSD.org> |
random(6): produce random results
This program is trash and there's no reason to keep it in base. But as long as we're shipping a silly program named 'random', let's actually make it random.
|
| #
6ae1554a
|
| 02-Oct-2015 |
Colin Percival <cperciva@FreeBSD.org> |
Final step of eliminating the "games" distribution: Merge src/games (or what's left of it, at least) into src/usr.bin.
This change will not be MFCed.
Discussed at: EuroBSDCon 2014 Committed from:
Final step of eliminating the "games" distribution: Merge src/games (or what's left of it, at least) into src/usr.bin.
This change will not be MFCed.
Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015
show more ...
|
| #
a1183253
|
| 14-Jun-2010 |
Ulrich Spörlein <uqs@FreeBSD.org> |
random(6): avoid dead assignments
Found by: clang static analyzer
|
| #
f5144a27
|
| 15-Feb-2010 |
Warner Losh <imp@FreeBSD.org> |
Remove the third clause for the Berkeley parts of games, per the letter in /COPYRIGHT.
|
| #
d77b3310
|
| 11-Aug-2008 |
Andrey A. Chernov <ache@FreeBSD.org> |
Suggections from bde@ 1) Split too long source lines 2) Portable code should not assume that null pointer == all-bits-0, so back out prev. calloc() change.
Submitted by: bde
|
| #
2a3fabc4
|
| 10-Aug-2008 |
Andrey A. Chernov <ache@FreeBSD.org> |
All cosmetic. 1) Rename RANDOM_MAX to RANDOM_MAX_PLUS1 to not confuse with random()'s max 2) Use calloc() instead of zeroing fields explicitly 3) "too many lines" -> "too many delimiters" for err()
|
| #
67cc8dbb
|
| 08-Aug-2008 |
Andrey A. Chernov <ache@FreeBSD.org> |
I was confused a bit by the wrong construction with RAND_MAX used in randomize_fd.c. Although the max value is the same currently, RAND_MAX is for rand(), not for random(). So move RANDOM_MAX const t
I was confused a bit by the wrong construction with RAND_MAX used in randomize_fd.c. Although the max value is the same currently, RAND_MAX is for rand(), not for random(). So move RANDOM_MAX const to the common file now, make it UL and use in randomize_fd.c too. (in any case its old value was 1 less then must be, as noted in the prev. commit)
show more ...
|
| #
5b6bf076
|
| 08-Aug-2008 |
Andrey A. Chernov <ache@FreeBSD.org> |
1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be) value with ((double)RAND_MAX + 1) 2) For exit code increase valid denominator upper range from 255 to 256 since returned value i
1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be) value with ((double)RAND_MAX + 1) 2) For exit code increase valid denominator upper range from 255 to 256 since returned value is [0 .. denom - 1]
show more ...
|
| #
1107d0af
|
| 14-Apr-2006 |
Andrey A. Chernov <ache@FreeBSD.org> |
1) Fix hang at the end of line buffer (PR 95715) 2) Localize
PR: 95715 Submitted by: Li-Lun Wang <llwang@infor.org> (slightly edited by me)
|
| #
59c2bcba
|
| 22-Jun-2005 |
John Baldwin <jhb@FreeBSD.org> |
Correct an error in the previous revision. RAND_MAX is the maximum value 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 t
Correct an error in the previous revision. RAND_MAX is the maximum value 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
show more ...
|
| #
b0a7bd8e
|
| 27-May-2005 |
John Baldwin <jhb@FreeBSD.org> |
Fix for 64-bit platforms. random() returns values between 0 and RAND_MAX, and RAND_MAX != LONG_MAX on 64-bit platforms.
PR: amd64/81279 Submitted by: Vivek Khera vivek at khera dot org Submitted b
Fix for 64-bit platforms. random() returns values between 0 and RAND_MAX, 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
show more ...
|
| #
6324f7db
|
| 09-Feb-2005 |
Ruslan Ermilov <ru@FreeBSD.org> |
Sync program's usage() with manpage's SYNOPSIS.
|