OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / mkdtemp.3
1 .\" Copyright 2001 John Levon <moz@compsoc.man.ac.uk>
2 .\" Based on mkstemp(3), Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" and GNU libc documentation
4 .\"
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 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH MKDTEMP 3 2010\-09\-26 GNU "Linux Programmer's Manual"
30 .SH 名前
31 mkdtemp \- 他と重ならない一時的なディレクトリを作成する
32 .SH 書式
33 .nf
34 \fB#include <stdlib.h>\fP
35 .sp
36 \fBchar *mkdtemp(char *\fP\fItemplate\fP\fB);\fP
37 .fi
38 .sp
39 .in -4n
40 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
41 .in
42 .sp
43 \fBmkdtemp\fP():
44 .br
45 .ad l
46 .RS 4
47 .PD 0
48 _BSD_SOURCE
49 .br
50 || /* Since glibc 2.10: */
51 .RS 4
52 (_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700)
53 .ad
54 .PD
55 .RE
56 .RE
57 .SH 説明
58 \fBmkdtemp\fP()  関数は、他と重ならない名前の一時的なディレクトリを \fItemplate\fP から作成する。 \fItemplate\fP の後から
59 6 文字は XXXXXX でなければならない。 この部分はディレクトリ名を他と重ならなくするための 文字列で置き換えられる。 ディレクトリは許可属性を
60 0700 として作成される。 \fItemplate\fP は変更されるので、文字列定数にしてはならず、文字配列にすべきである。
61 .SH 返り値
62 成功した場合、 \fBmkdtemp\fP()  関数は 変更された template 文字列へのポインタを返す。 失敗した場合は、NULL を返して、
63 \fIerrno\fP を適切に設定する。
64 .SH エラー
65 .TP 
66 \fBEINVAL\fP
67 \fItemplate\fP の最後の 6 文字が XXXXXX でない。この場合、\fItemplate\fP は変更されない。
68 .PP
69 \fIerrno\fP に設定される他の値については、 \fBmkdir\fP(2)  を参照すること。
70 .SH バージョン
71 OpenBSD 2.2 で導入された。
72 .SH 準拠
73 .\" As at 2006, this function is being considered for a revision of POSIX.1
74 .\" Also in NetBSD 1.4.
75 POSIX.1\-2008.  この関数は BSD に存在する。
76 .SH 関連項目
77 \fBmkdir\fP(2), \fBmkstemp\fP(3), \fBmktemp\fP(3), \fBtempnam\fP(3), \fBtmpfile\fP(3),
78 \fBtmpnam\fP(3)