mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix comments in random_r.c.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2009-11-24 Ulrich Drepper <drepper@redhat.com>
|
2009-11-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #3662]
|
||||||
|
* stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
|
||||||
|
Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
|
||||||
|
|
||||||
* sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
|
* sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
|
||||||
pass it on to __ptsname_internal.
|
pass it on to __ptsname_internal.
|
||||||
(grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
|
(grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
|
||||||
|
@ -228,7 +228,7 @@ weak_alias (__srandom_r, srandom_r)
|
|||||||
lose this information and will be able to restart with setstate.
|
lose this information and will be able to restart with setstate.
|
||||||
Note: The first thing we do is save the current state, if any, just like
|
Note: The first thing we do is save the current state, if any, just like
|
||||||
setstate so that it doesn't matter when initstate is called.
|
setstate so that it doesn't matter when initstate is called.
|
||||||
Returns a pointer to the old state. */
|
Returns 0 on success, non-zero on failure. */
|
||||||
int
|
int
|
||||||
__initstate_r (seed, arg_state, n, buf)
|
__initstate_r (seed, arg_state, n, buf)
|
||||||
unsigned int seed;
|
unsigned int seed;
|
||||||
@ -296,7 +296,7 @@ weak_alias (__initstate_r, initstate_r)
|
|||||||
location into the zeroth word of the state information. Note that due
|
location into the zeroth word of the state information. Note that due
|
||||||
to the order in which things are done, it is OK to call setstate with the
|
to the order in which things are done, it is OK to call setstate with the
|
||||||
same state as the current state
|
same state as the current state
|
||||||
Returns a pointer to the old state information. */
|
Returns 0 on success, non-zero on failure. */
|
||||||
int
|
int
|
||||||
__setstate_r (arg_state, buf)
|
__setstate_r (arg_state, buf)
|
||||||
char *arg_state;
|
char *arg_state;
|
||||||
|
Reference in New Issue
Block a user