1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" This manpage is Copyright (C) 2006, Michael Kerrisk
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.
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.
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
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Japanese Version Copyright (c) 2006 Yuichi SATO
26 .\" all rights reserved.
27 .\" Translated 2006-09-30 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
29 .TH MKDIRAT 2 2009-12-13 "Linux" "Linux Programmer's Manual"
32 .\"O mkdirat \- create a directory relative to a directory file descriptor
33 mkdirat \- ディレクトリファイルディスクリプタから相対的な位置にディレクトリを作成する
37 .\"O .B #include <fcntl.h> /* Definition of AT_* constants */
38 .B #include <fcntl.h> /* AT_* 定数の定義 */
39 .B #include <sys/stat.h>
41 .BI "int mkdirat(int " dirfd ", const char *" pathname ", mode_t " mode );
45 .\"O Feature Test Macro Requirements for glibc (see
46 .\"O .BR feature_test_macros (7)):
48 .RB ( feature_test_macros (7)
57 .\"O Since glibc 2.10:
59 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
61 .\"O Before glibc 2.10:
71 .\"O system call operates in exactly the same way as
73 .\"O except for the differences described in this manual page.
75 システムコールは、この man ページで説明している違いがある以外は、
79 .\"O If the pathname given in
81 .\"O is relative, then it is interpreted relative to the directory
82 .\"O referred to by the file descriptor
84 .\"O (rather than relative to the current working directory of
85 .\"O the calling process, as is done by
87 .\"O for a relative pathname).
92 で参照されるディレクトリからの相対パス名として解釈される
95 カレントワーキングディレクトリからの相対パスとなる)。
101 .\"O is the special value
105 .\"O is interpreted relative to the current working
106 .\"O directory of the calling process (like
118 カレントワーキングディレクトリからの相対パス名として解釈される。
122 .\"O is absolute, then
129 .\"O .SH "RETURN VALUE"
137 .\"O On error, \-1 is returned and
139 .\"O is set to indicate the error.
145 .\"O The same errors that occur for
147 .\"O can also occur for
153 .\"O The following additional errors can occur for
160 .\"O is not a valid file descriptor.
168 .\"O is a file descriptor referring to a file other than a directory.
172 がディレクトリ以外のファイルを参照するファイルディスクリプタである。
176 .\"O was added to Linux in kernel 2.6.16.
178 は Linux カーネル 2.6.16 で追加された。
179 .\"O .SH "CONFORMING TO"
186 .\"O for an explanation of the need for
197 .BR path_resolution (7)