OSDN Git Service

d933d74d4667957073166a52183dfe1222e7da4f
[linuxjm/LDP_man-pages.git] / draft / man3 / dprintf.3
1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>
2 .\" Text fragments inspired by Martin Schulze <joey@infodrom.org>.
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH DPRINTF 3 2010\-09\-15 GNU "Linux Programmer's Manual"
32 .SH 名前
33 dprintf, vdprintf \- ファイルディスクリプタに文字出力する
34 .SH 書式
35 \fB#include <stdio.h>\fP
36 .sp
37 \fBint dprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, ...);\fP
38 .sp
39 \fBint vdprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, va_list \fP\fIap\fP\fB);\fP
40 .sp
41 .in -4n
42 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
43 .in
44 .sp
45 \fBdprintf\fP(), \fBvdprintf\fP():
46 .PD 0
47 .ad l
48 .RS 4
49 .TP  4
50 glibc 2.10 以降:
51 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
52 .TP 
53 glibc 2.10 より前:
54 _GNU_SOURCE
55 .RE
56 .ad
57 .PD
58 .SH 説明
59 (glibc2 ライブラリにおける)  \fBdprintf\fP()  関数と \fBvdprintf\fP()  関数とは、それぞれ \fBfprintf\fP(3)
60 関数と \fBvfprintf\fP(3)  関数とにちょうど対応するが、 これらは \fIstdio\fP ストリームではなくファイルディスクリプタ \fIfd\fP
61 に対して出力を行う。
62 .SH 準拠
63 .\" .SH NOTES
64 .\" These functions are GNU extensions, not in C or POSIX.
65 .\" Clearly, the names were badly chosen.
66 .\" Many systems (like MacOS) have incompatible functions called
67 .\" .BR dprintf (),
68 .\" usually some debugging version of
69 .\" .BR printf (3),
70 .\" perhaps with a prototype like
71 .\"
72 .\" .BI "void dprintf(int level, const char *" format ", ...);"
73 .\"
74 .\" where the first argument is a debugging level (and output is to
75 .\" .IR stderr ).
76 .\" Moreover,
77 .\" .BR dprintf ()
78 .\" (or
79 .\" .BR DPRINTF )
80 .\" is also a popular macro name for a debugging printf.
81 .\" So, probably, it is better to avoid this function in programs
82 .\" intended to be portable.
83 .\"
84 .\" A better name would have been
85 .\" .BR fdprintf ().
86 これらの関数は GNU による拡張であり、 現在では POSIX.1\-2008 で規定されている。
87 .SH 関連項目
88 \fBprintf\fP(3)
89 .SH この文書について
90 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
91 である。プロジェクトの説明とバグ報告に関する情報は
92 http://www.kernel.org/doc/man\-pages/ に書かれている。