OSDN Git Service

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