OSDN Git Service

(split) LDP: Update releases based on LDP 3.52 release
[linuxjm/LDP_man-pages.git] / release / man3 / tmpfile.3
index 55bfd93..9d76126 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
 .\"
 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
 .\"
+.\" %%%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 make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -19,6 +20,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"     Linux libc source code
 .\"
 .\" References consulted:
 .\"     Linux libc source code
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 17:46:57 1993 by Rik Faith (faith@cs.unc.edu)
 .\" Modified 2001-11-17, aeb
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 17:46:57 1993 by Rik Faith (faith@cs.unc.edu)
 .\" Modified 2001-11-17, aeb
+.\"*******************************************************************
 .\"
 .\"
-.\" Japanese Version Copyright (c) 1997 Tenkou N. Hattori
-.\"       all rights reserved.
-.\" Translated Sat Jan 18 16:51:59 JST 1997
-.\"     by Tenkou N. Hattori <tnh@alpsmap.co.jp>
-.\" Updated & Modified Sun Dec  9 15:25:20 JST 2001
-.\"     by Yuichi SATO <ysato@h4.dion.ne.jp>
+.\" This file was generated with po4a. Translate the source file.
 .\"
 .\"
-.TH TMPFILE 3  2008-07-14 "" "Linux Programmer's Manual"
-.SH Ì¾Á°
-tmpfile \- ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH TMPFILE 3 2008\-07\-14 "" "Linux Programmer's Manual"
+.SH 名前
+tmpfile \- テンポラリファイルを作成する
+.SH 書式
 .nf
 .nf
-.B #include <stdio.h>
+\fB#include <stdio.h>\fP
 .sp
 .sp
-.B FILE *tmpfile(void);
+\fBFILE *tmpfile(void);\fP
 .fi
 .fi
-.SH ÀâÌÀ
-.BR tmpfile ()
-´Ø¿ô¤Ï¥æ¥Ë¡¼¥¯¤Ê¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ò
-¥Ð¥¤¥Ê¥ê¥ê¡¼¥É¥é¥¤¥È¥â¡¼¥É (w+b) ¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
-¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¥¯¥í¡¼¥º»þ¤Þ¤¿¤Ï¥×¥í¥°¥é¥à¤Î½ªÎ»»þ¤Ë¼«Æ°Åª¤Ëºï½ü¤µ¤ì¤ë¡£
-.SH ÊÖ¤êÃÍ
-.BR tmpfile ()
-´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¤«¡¢
-¥æ¥Ë¡¼¥¯¤Ê¥Õ¥¡¥¤¥ë¤¬ºî¤ì¤Ê¤«¤Ã¤¿¤«¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï NULL ¤òÊÖ¤¹¡£
-¸å¼Ô¤Î¾ì¹ç¡¢¥¨¥é¡¼¤òɽ¤¹ \fIerrno\fP ¤òÀßÄꤹ¤ë¡£
-.SH ¥¨¥é¡¼
-.TP
-.B EACCES
-¥Õ¥¡¥¤¥ë¤Î¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥µ¡¼¥Á¤Î¥¢¥¯¥»¥¹¸¢ (search permission) ¤¬¤Ê¤¤¡£
-.TP
-.B EEXIST
-¥æ¥Ë¡¼¥¯¤Ê¥Õ¥¡¥¤¥ë̾¤¬ºîÀ®¤Ç¤­¤Ê¤«¤Ã¤¿¡£
-.TP
-.B EINTR
-¸Æ¤Ó½Ð¤·¤¬¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤ÆÃæÃǤµ¤ì¤¿¡£
-.TP
-.B EMFILE
-1 ¤Ä¤Î¥×¥í¥»¥¹¤Ç»ÈÍѲÄǽ¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¿ô¤òĶ²á¤·¤¿¡£
-.TP
-.B ENFILE
-¥·¥¹¥Æ¥àÁ´ÂΤǥª¡¼¥×¥ó²Äǽ¤Ê¥Õ¥¡¥¤¥ë¿ô¤òĶ²á¤·¤¿¡£
-.TP
-.B ENOSPC
-¥Ç¥£¥ì¥¯¥È¥ê¤Ë¿·¤·¤¤¥Õ¥¡¥¤¥ë¤òÄɲ乤뤿¤á¤Î¶õ¤­Îΰ褬¤Ê¤¤¡£
-.TP
-.B EROFS
-ÆɤߤÀ¤·ÀìÍÑ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤¢¤ë¡£
-.SH ½àµò
-SVr4, 4.3BSD, C89, C99, SUSv2, POSIX.1-2001.
-.SH Ãí°Õ
-POSIX.1-2001 ¤Ç¤Ï¡¢
-¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç¡¢
-\fIstdout\fP ¤Ë¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½ñ¤­½Ð¤µ¤ì¤ë¡¢¤Èµ¬Äꤵ¤ì¤Æ¤¤¤ë¡£
+.SH 説明
+\fBtmpfile\fP()  関数はユニークなテンポラリファイルを バイナリリードライトモード (w+b) でオープンする。
+このファイルはクローズ時またはプログラムの終了時に自動的に削除される。
+.SH 返り値
+\fBtmpfile\fP()  関数はファイルポインタを返すか、 ユニークなファイルが作れなかったかオープンできなかった場合は NULL を返す。
+後者の場合、エラーを表す \fIerrno\fP を設定する。
+.SH エラー
+.TP 
+\fBEACCES\fP
+ファイルのあるディレクトリにサーチのアクセス権 (search permission) がない。
+.TP 
+\fBEEXIST\fP
+ユニークなファイル名が作成できなかった。
+.TP 
+\fBEINTR\fP
+呼び出しがシグナルによって中断された。
+.TP 
+\fBEMFILE\fP
+1 つのプロセスで使用可能なファイルディスクリプタ数を超過した。
+.TP 
+\fBENFILE\fP
+システム全体でオープン可能なファイル数を超過した。
+.TP 
+\fBENOSPC\fP
+ディレクトリに新しいファイルを追加するための空き領域がない。
+.TP 
+\fBEROFS\fP
+読みだし専用ファイルシステムである。
+.SH 準拠
+SVr4, 4.3BSD, C89, C99, SUSv2, POSIX.1\-2001.
+.SH 注意
+POSIX.1\-2001 では、 ストリームをオープンできなかった場合、 \fIstdout\fP にエラーメッセージが書き出される、と規定されている。
 .LP
 .LP
-µ¬³Ê¤Ç¤Ï
-.BR tmpfile ()
-¤¬»È¤¦¥Ç¥£¥ì¥¯¥È¥ê¤Ï»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
-glibc ¤Ç¤Ï \fI<stdio.h>\fP ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë
-\fIP_tmpdir\fP ¤ò¥Ñ¥¹¤ÎÀèƬ¤Ë»È¤ª¤¦¤È¤¹¤ë¡£
-¤³¤ì¤¬¼ºÇÔ¤·¤¿¾ì¹ç¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê \fI/tmp\fP ¤ò»È¤¦¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR exit (3),
-.BR mkstemp (3),
-.BR mktemp (3),
-.BR tempnam (3),
-.BR tmpnam (3)
+規格では \fBtmpfile\fP()  が使うディレクトリは指定されていない。 glibc では \fI<stdio.h>\fP
+で定義されている \fIP_tmpdir\fP をパスの先頭に使おうとする。 これが失敗した場合は、ディレクトリ \fI/tmp\fP を使う。
+.SH 関連項目
+\fBexit\fP(3), \fBmkstemp\fP(3), \fBmktemp\fP(3), \fBtempnam\fP(3), \fBtmpnam\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。