.\" Copyright (C) 2001 Andries Brouwer .\" Text fragments inspired by Martin Schulze . .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2002 NAKANO Takeo all rights reserved. .\" Translated Sat 12 Jan 2002 by NAKANO Takeo .\" .TH DPRINTF 3 2010\-09\-15 GNU "Linux Programmer's Manual" .SH 名前 dprintf, vdprintf \- ファイルディスクリプターに文字出力する .SH 書式 \fB#include \fP .sp \fBint dprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, ...);\fP .sp \fBint vdprintf(int \fP\fIfd\fP\fB, const char *\fP\fIformat\fP\fB, va_list \fP\fIap\fP\fB);\fP .sp .in -4n glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照): .in .sp \fBdprintf\fP(), \fBvdprintf\fP(): .PD 0 .ad l .RS 4 .TP 4 glibc 2.10 以降: _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L .TP glibc 2.10 より前: _GNU_SOURCE .RE .ad .PD .SH 説明 (glibc2 ライブラリにおける) \fBdprintf\fP() 関数と \fBvdprintf\fP() 関数とは、それぞれ \fBfprintf\fP(3) 関数と \fBvfprintf\fP(3) 関数とにちょうど対応するが、 これらは \fIstdio\fP ストリームではなくファイルディスクリプター \fIfd\fP に対して出力を行う。 .SH 準拠 .\" .SH NOTES .\" These functions are GNU extensions, not in C or POSIX. .\" Clearly, the names were badly chosen. .\" Many systems (like MacOS) have incompatible functions called .\" .BR dprintf (), .\" usually some debugging version of .\" .BR printf (3), .\" perhaps with a prototype like .\" .\" .BI "void dprintf(int level, const char *" format ", ...);" .\" .\" where the first argument is a debugging level (and output is to .\" .IR stderr ). .\" Moreover, .\" .BR dprintf () .\" (or .\" .BR DPRINTF ) .\" is also a popular macro name for a debugging printf. .\" So, probably, it is better to avoid this function in programs .\" intended to be portable. .\" .\" A better name would have been .\" .BR fdprintf (). これらの関数は GNU による拡張であり、 現在では POSIX.1\-2008 で規定されている。 .SH 関連項目 \fBprintf\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。