Bug 201489 - random_harvest(9) man page has an incorrect function definition
Summary: random_harvest(9) man page has an incorrect function definition
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2015-07-12 06:19 UTC by kenji.rikitake
Modified: 2018-04-10 18:26 UTC (History)
1 user (show)

See Also:

unified diff for /usr/share/man/man9/random_harvest.9 (1.05 KB, patch)
2015-07-12 06:19 UTC, kenji.rikitake
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kenji.rikitake 2015-07-12 06:19:27 UTC
Created attachment 158639 [details]
unified diff for /usr/share/man/man9/random_harvest.9

I am using FreeBSD 10.2-PRERELEASE amd64 r285345.

I've found a manual bug at /usr/share/man/man9/random_harvest.9.

The function description

void random_harvest(void *entropy, u_int size, u_int bits, u_int frac,
     enum esource source);

is different from the current definition in <sys/random.h> as

void random_harvest(void *, u_int, u_int, enum esource);

and in /usr/src/sys/dev/random/harvest.c as:

random_harvest(void *entropy, u_int count, u_int bits, enum esource origin)

The attached patch is to fix the random_harvest.9 file.