X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=draft%2Fman3%2Frandom.3;h=e22a858f84f9d2085379ae199bc164965281053f;hp=23e6d5b4c0fb73b8ac3744e914388c2e4c3508db;hb=7e089fcc022461849bbc09437103cc337a88dd9c;hpb=c03a7a882c608ebf399d1b044ce7a6daa922351a diff --git a/draft/man3/random.3 b/draft/man3/random.3 index 23e6d5b4..e22a858f 100644 --- a/draft/man3/random.3 +++ b/draft/man3/random.3 @@ -36,7 +36,7 @@ .\" WORD: nonlinear additive feedback ÈóÀþ·Á²ÃË¡¥Õ¥£¡¼¥É¥Ð¥Ã¥¯ .\" WORD: state array ¾õÂÖÇÛÎó .\" -.TH RANDOM 3 2009-02-03 "GNU" "Linux Programmer's Manual" +.TH RANDOM 3 2010-09-20 "GNU" "Linux Programmer's Manual" .\"O .SH NAME .SH ̾Á° .\"O random, srandom, initstate, setstate \- random number generator @@ -68,8 +68,11 @@ glibc .BR srandom (), .BR initstate (), .BR setstate (): -_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 -.ad b +.RS 4 +_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || +_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED +.RE +.ad .\"O .SH DESCRIPTION .SH ÀâÌÀ .\"O The @@ -187,10 +190,10 @@ _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .\"O function returns no value. .\"O The .\"O .BR initstate () -.\"O and +.\"O function returns a pointer to the previous state array. +.\"O The .\"O .BR setstate () -.\"O functions return a pointer to the previous state -.\"O array, or NULL on error. +.\"O function returns a pointer to the previous state array, or NULL on error. .BR random () ´Ø¿ô¤Ï 0 ¤È .B RAND_MAX @@ -198,10 +201,10 @@ _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .BR srandom () ´Ø¿ô¤ÏÃͤòÊÖ¤µ¤Ê¤¤¡£ .BR initstate () -´Ø¿ô¤È +´Ø¿ô¤ÏľÁ°¤Î¾õÂÖÇÛÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£ .BR setstate () -´Ø¿ô¤Ï -ľÁ°¤Î¾õÂÖÇÛÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤Þ¤¿¤Ï NULL ¤òÊÖ¤¹¡£ +´Ø¿ô¤ÏľÁ°¤Î¾õÂÖÇÛÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¡¢ +¥¨¥é¡¼¤Î¾ì¹ç¤Ï NULL ¤òÊÖ¤¹¡£ .\"O .SH ERRORS .SH ¥¨¥é¡¼ .TP