OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / dprintf.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 .\" Text fragments inspired by Martin Schulze <joey@infodrom.org>.
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH DPRINTF 3 2010\-09\-15 GNU "Linux Programmer's Manual"
31 .SH 名前
32 dprintf, vdprintf \- ファイルディスクリプターに文字出力する
33 .SH 書式
34 \fB#include <stdio.h>\fP
35 .sp
36 \fBint dprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, ...);\fP
37 .sp
38 \fBint vdprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, va_list \fP\fIap\fP\fB);\fP
39 .sp
40 .in -4n
41 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
42 .in
43 .sp
44 \fBdprintf\fP(), \fBvdprintf\fP():
45 .PD 0
46 .ad l
47 .RS 4
48 .TP  4
49 glibc 2.10 以降:
50 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
51 .TP 
52 glibc 2.10 より前:
53 _GNU_SOURCE
54 .RE
55 .ad
56 .PD
57 .SH 説明
58 (glibc2 ライブラリにおける)  \fBdprintf\fP()  関数と \fBvdprintf\fP()  関数とは、それぞれ \fBfprintf\fP(3)
59 関数と \fBvfprintf\fP(3)  関数とにちょうど対応するが、 これらは \fIstdio\fP ストリームではなくファイルディスクリプター \fIfd\fP
60 に対して出力を行う。
61 .SH 準拠
62 .\" .SH NOTES
63 .\" These functions are GNU extensions, not in C or POSIX.
64 .\" Clearly, the names were badly chosen.
65 .\" Many systems (like MacOS) have incompatible functions called
66 .\" .BR dprintf (),
67 .\" usually some debugging version of
68 .\" .BR printf (3),
69 .\" perhaps with a prototype like
70 .\"
71 .\" .BI "void dprintf(int level, const char *" format ", ...);"
72 .\"
73 .\" where the first argument is a debugging level (and output is to
74 .\" .IR stderr ).
75 .\" Moreover,
76 .\" .BR dprintf ()
77 .\" (or
78 .\" .BR DPRINTF )
79 .\" is also a popular macro name for a debugging printf.
80 .\" So, probably, it is better to avoid this function in programs
81 .\" intended to be portable.
82 .\"
83 .\" A better name would have been
84 .\" .BR fdprintf ().
85 これらの関数は GNU による拡張であり、 現在では POSIX.1\-2008 で規定されている。
86 .SH 関連項目
87 \fBprintf\fP(3)