OSDN Git Service

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