OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[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 .\"
32 .\" Japanese Version Copyright (c) 2002 NAKANO Takeo all rights reserved.
33 .\" Translated Sat 12 Jan 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
34 .\"
35 .TH DPRINTF 3 2010\-09\-15 GNU "Linux Programmer's Manual"
36 .SH 名前
37 dprintf, vdprintf \- ファイルディスクリプタに文字出力する
38 .SH 書式
39 \fB#include <stdio.h>\fP
40 .sp
41 \fBint dprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, ...);\fP
42 .sp
43 \fBint vdprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, va_list \fP\fIap\fP\fB);\fP
44 .sp
45 .in -4n
46 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
47 .in
48 .sp
49 \fBdprintf\fP(), \fBvdprintf\fP():
50 .PD 0
51 .ad l
52 .RS 4
53 .TP  4
54 glibc 2.10 以降:
55 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
56 .TP 
57 glibc 2.10 より前:
58 _GNU_SOURCE
59 .RE
60 .ad
61 .PD
62 .SH 説明
63 (glibc2 ライブラリにおける)  \fBdprintf\fP()  関数と \fBvdprintf\fP()  関数とは、それぞれ \fBfprintf\fP(3)
64 関数と \fBvfprintf\fP(3)  関数とにちょうど対応するが、 これらは \fIstdio\fP ストリームではなくファイルディスクリプタ \fIfd\fP
65 に対して出力を行う。
66 .SH 準拠
67 .\" .SH NOTES
68 .\" These functions are GNU extensions, not in C or POSIX.
69 .\" Clearly, the names were badly chosen.
70 .\" Many systems (like MacOS) have incompatible functions called
71 .\" .BR dprintf (),
72 .\" usually some debugging version of
73 .\" .BR printf (3),
74 .\" perhaps with a prototype like
75 .\"
76 .\" .BI "void dprintf(int level, const char *" format ", ...);"
77 .\"
78 .\" where the first argument is a debugging level (and output is to
79 .\" .IR stderr ).
80 .\" Moreover,
81 .\" .BR dprintf ()
82 .\" (or
83 .\" .BR DPRINTF )
84 .\" is also a popular macro name for a debugging printf.
85 .\" So, probably, it is better to avoid this function in programs
86 .\" intended to be portable.
87 .\"
88 .\" A better name would have been
89 .\" .BR fdprintf ().
90 これらの関数は GNU による拡張であり、 現在では POSIX.1\-2008 で規定されている。
91 .SH 関連項目
92 \fBprintf\fP(3)
93 .SH この文書について
94 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
95 である。プロジェクトの説明とバグ報告に関する情報は
96 http://www.kernel.org/doc/man\-pages/ に書かれている。