OSDN Git Service

eb62d743318c7cc0e9bbd0f208e8feb1dff54f43
[linuxjm/LDP_man-pages.git] / release / man3 / drand48_r.3
1 .\" Copyright 2003 Walter Harms, 2004 Andries Brouwer <aeb@cwi.nl>.
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Created 2004-10-31. Text taken from a page by Walter Harms, 2003-09-08
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH DRAND48_R 3 2007\-07\-26 GNU "Linux Programmer's Manual"
33 .SH 名前
34 drand48_r, erand48_r, lrand48_r, nrand48_r, mrand48_r, jrand48_r, srand48_r,
35 seed48_r, lcong48_r \- 一様分布する疑似乱数をリエントラント (reentrant) に生成する
36 .SH 書式
37 .nf
38 \fB#include <stdlib.h>\fP
39 .sp
40 \fBint drand48_r(struct drand48_data *\fP\fIbuffer\fP\fB, double *\fP\fIresult\fP\fB);\fP
41 .sp
42 \fBint erand48_r(unsigned short \fP\fIxsubi\fP\fB[3]\fP\fI,\fP
43 .br
44 \fB              struct drand48_data *\fP\fIbuffer\fP\fB, double *\fP\fIresult\fP\fB);\fP
45 .sp
46 \fBint lrand48_r(struct drand48_data *\fP\fIbuffer\fP\fB, long int *\fP\fIresult\fP\fB);\fP
47 .sp
48 \fBint nrand48_r(unsigned short int \fP\fIxsubi[3]\fP\fB,\fP
49 .br
50 \fB              struct drand48_data *\fP\fIbuffer\fP\fB, long int *\fP\fIresult\fP\fB);\fP
51 .sp
52 \fBint mrand48_r(struct drand48_data *\fP\fIbuffer\fP\fB,long int *\fP\fIresult\fP\fB);\fP
53 .sp
54 \fBint jrand48_r(unsigned short int \fP\fIxsubi[3]\fP\fB,\fP
55 .br
56 \fB              struct drand48_data *\fP\fIbuffer\fP\fB, long int *\fP\fIresult\fP\fB);\fP
57 .sp
58 \fBint srand48_r(long int \fP\fIseedval\fP\fB, struct drand48_data *\fP\fIbuffer\fP\fB);\fP
59 .sp
60 \fBint seed48_r(unsigned short int \fP\fIseed16v[3]\fP\fB,\fP
61 .br
62 \fB             struct drand48_data *\fP\fIbuffer\fP\fB);\fP
63 .sp
64 \fBint lcong48_r(unsigned short int \fP\fIparam[7]\fP\fB,\fP
65 .br
66 \fB              struct drand48_data *\fP\fIbuffer\fP\fB);\fP
67 .fi
68 .sp
69 .in -4n
70 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
71 .in
72 .sp
73 .ad l
74 .\" .BR drand48_r (),
75 .\" .BR erand48_r (),
76 .\" .BR lrand48_r (),
77 .\" .BR nrand48_r (),
78 .\" .BR mrand48_r (),
79 .\" .BR jrand48_r (),
80 .\" .BR srand48_r (),
81 .\" .BR seed48_r (),
82 .\" .BR lcong48_r ():
83 上記の全ての関数: _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
84 .ad b
85 .SH 説明
86 これらの関数は \fBdrand48\fP(3)  で説明されている関数に類似するリエントラントな関数である。 大域的な乱数生成の状態を変更する代わりに、
87 これらの関数は指定されたデータ \fIbuffer\fP を使う。
88
89 最初に使う前に、この構造体は初期化されていなければならない。 初期化は、たとえば 0 で埋めたり、関数 \fBsrand48_r\fP(),
90 \fBseed48_r\fP(), \fBlcong48_r\fP()  のいずれかを呼び出すことによって行われる。
91 .SH 返り値
92 返り値は 0 である。
93 .SH 準拠
94 これらの関数は GNU による拡張であり、移植性はない。
95 .SH 関連項目
96 \fBdrand48\fP(3), \fBrand\fP(3), \fBrandom\fP(3)
97 .SH この文書について
98 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
99 である。プロジェクトの説明とバグ報告に関する情報は
100 http://www.kernel.org/doc/man\-pages/ に書かれている。