OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / unlocked_stdio.3
1 .\" Copyright (C) 2001 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 .\"*******************************************************************
24 .\"
25 .\" This file was generated with po4a. Translate the source file.
26 .\"
27 .\"*******************************************************************
28 .TH UNLOCKED_STDIO 3 2008\-08\-29 "" "Linux Programmer's Manual"
29 .SH 名前
30 getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked \-
31 ロックを行わずに標準入出力を行う関数群
32 .SH 書式
33 .nf
34 \fB#include <stdio.h>\fP
35 .sp
36 \fBint getc_unlocked(FILE *\fP\fIstream\fP\fB);\fP
37 \fBint getchar_unlocked(void);\fP
38 \fBint putc_unlocked(int \fP\fIc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
39 \fBint putchar_unlocked(int \fP\fIc\fP\fB);\fP
40 .sp
41 \fBvoid clearerr_unlocked(FILE *\fP\fIstream\fP\fB);\fP
42 \fBint feof_unlocked(FILE *\fP\fIstream\fP\fB);\fP
43 \fBint ferror_unlocked(FILE *\fP\fIstream\fP\fB);\fP
44 \fBint fileno_unlocked(FILE *\fP\fIstream\fP\fB);\fP
45 \fBint fflush_unlocked(FILE *\fP\fIstream\fP\fB);\fP
46 \fBint fgetc_unlocked(FILE *\fP\fIstream\fP\fB);\fP
47 \fBint fputc_unlocked(int \fP\fIc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
48 \fBsize_t fread_unlocked(void *\fP\fIptr\fP\fB, size_t \fP\fIsize\fP\fB, size_t \fP\fIn\fP\fB,\fP
49 \fB                      FILE *\fP\fIstream\fP\fB);\fP
50 \fBsize_t fwrite_unlocked(const void *\fP\fIptr\fP\fB, size_t \fP\fIsize\fP\fB, size_t \fP\fIn\fP\fB,\fP
51 \fB                      FILE *\fP\fIstream\fP\fB);\fP
52 .sp
53 \fBchar *fgets_unlocked(char *\fP\fIs\fP\fB, int \fP\fIn\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
54 \fBint fputs_unlocked(const char *\fP\fIs\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
55 .sp
56 \fB#include <wchar.h>\fP
57 .sp
58 \fBwint_t getwc_unlocked(FILE *\fP\fIstream\fP\fB);\fP
59 \fBwint_t getwchar_unlocked(void);\fP
60 \fBwint_t fgetwc_unlocked(FILE *\fP\fIstream\fP\fB);\fP
61 \fBwint_t fputwc_unlocked(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
62 \fBwint_t putwc_unlocked(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
63 \fBwint_t putwchar_unlocked(wchar_t \fP\fIwc\fP\fB);\fP
64 \fBwchar_t *fgetws_unlocked(wchar_t *\fP\fIws\fP\fB, int \fP\fIn\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
65 \fBint fputws_unlocked(const wchar_t *\fP\fIws\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
66 .fi
67 .sp
68 .in -4n
69 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
70 .ad l
71 .in
72 .sp
73 \fBgetc_unlocked\fP(), \fBgetchar_unlocked\fP(), \fBputc_unlocked\fP(),
74 \fBputchar_unlocked\fP():
75 .RS 4
76 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE || _BSD_SOURCE
77 || _SVID_SOURCE
78 .RE
79 .sp
80 \fBclearerr_unlocked\fP(), \fBfeof_unlocked\fP(), \fBferror_unlocked\fP(),
81 \fBfileno_unlocked\fP(), \fBfflush_unlocked\fP(), \fBfgetc_unlocked\fP(),
82 \fBfputc_unlocked\fP(), \fBfread_unlocked\fP(), \fBfwrite_unlocked\fP():
83 .RS 4
84 _BSD_SOURCE || _SVID_SOURCE
85 .RE
86 .sp
87 \fBfgets_unlocked\fP(), \fBfputs_unlocked\fP(), \fBgetwc_unlocked\fP(),
88 \fBgetwchar_unlocked\fP(), \fBfgetwc_unlocked\fP(), \fBfputwc_unlocked\fP(),
89 \fBputwchar_unlocked\fP(), \fBfgetws_unlocked\fP(), \fBfputws_unlocked\fP():
90 .RS 4
91 _GNU_SOURCE
92 .RE
93 .ad b
94 .SH 説明
95 これらの関数は、末尾に "_unlocked" がついていない関数と同じ動作をするが、
96 ファイルのロックを使用しない点が異なる。(これらの関数自身はファイルのロック をセットせず、他の関数によってロックがセットされているかどうかのチェックも
97 行わない) それゆえ、スレッド(thread)で安全に使用することができない。 \fBflockfile\fP(3)  を参照のこと。
98 .SH 準拠
99 \fBgetc_unlocked\fP(), \fBgetchar_unlocked\fP(), \fBputc_unlocked\fP(),
100 \fBputchar_unlocked\fP()  の 4 つの関数は POSIX.1\-2001 に規定されている。
101
102 .\" E.g., in HP-UX 10.0. In HP-UX 10.30 they are called obsolescent, and
103 .\" moved to a compatibility library.
104 .\" Available in HP-UX 10.0: clearerr_unlocked, fclose_unlocked,
105 .\" feof_unlocked, ferror_unlocked, fflush_unlocked, fgets_unlocked,
106 .\" fgetwc_unlocked, fgetws_unlocked, fileno_unlocked, fputs_unlocked,
107 .\" fputwc_unlocked, fputws_unlocked, fread_unlocked, fseek_unlocked,
108 .\" ftell_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
109 .\" getw_unlocked, getwc_unlocked, getwchar_unlocked, putc_unlocked,
110 .\" putchar_unlocked, puts_unlocked, putws_unlocked, putw_unlocked,
111 .\" putwc_unlocked, putwchar_unlocked, rewind_unlocked, setvbuf_unlocked,
112 .\" ungetc_unlocked, ungetwc_unlocked.
113 非標準の \fB*_unlocked\fP()  の仲間は 2、3 の UNIX システムで定義されており、 最近の glibc では使用可能であるが、
114 これらの関数は使わない方がよいだろう。
115 .SH 関連項目
116 \fBflockfile\fP(3), \fBstdio\fP(3)