1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
4 .\" 1993 Michael Haardt, Ian Jackson.
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date. The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein. The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
26 .\" Modified 1993-07-24 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
28 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
30 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
31 .\" all rights reserved.
32 .\" Translated 1997-12-12, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\" Updated 2003-10-11, Kentaro Shirakata <argrath@ub32.org>
34 .\" Updated 2005-02-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\" Updated 2006-07-23, Akihiro MOTOKI, LDP v2.36
36 .\" Updated 2008-08-06, Akihiro MOTOKI, LDP v3.05
38 .\"WORD: directory ディレクトリ
39 .\"WORD: file system ファイル・システム
40 .\"WORD: sticky bit スティッキー・ビット
41 .\"WORD: dangling symbolic link 壊れたシンボリック・リンク
42 .\"WORD: working directory ワーキング・ディレクトリ
43 .\"WORD: root directory ルート・ディレクトリ
44 .\"WORD: effective uid 実効ユーザーID
45 .\"WORD: sticky bit スティッキー・ビット
46 .\"WORD: read-only 読み込み専用
51 .TH RMDIR 2 2008-05-08 "Linux" "Linux Programmer's Manual"
54 .\"O rmdir \- delete a directory
58 .B #include <unistd.h>
60 .BI "int rmdir(const char *" pathname );
64 .\"O deletes a directory, which must be empty.
66 はディレクトリを削除する。削除するディレクトリは空でなければならない。
67 .\"O .SH "RETURN VALUE"
69 .\"O On success, zero is returned.
70 .\"O On error, \-1 is returned, and
72 .\"O is set appropriately.
73 成功した場合はゼロが返される。エラーの場合は \-1 が返され、
80 .\"O Write access to the directory containing
82 .\"O was not allowed, or one of the directories in the path prefix of
84 .\"O did not allow search permission.
86 .\"O .BR path_resolution (7).
88 を含んでいるディレクトリへの書き込みアクセスが
89 プロセスの実効 (effective) UID に対して許可されていないか、
91 に含まれているディレクトリのどれかに検索 (実行) 許可がないか、
93 に至るまでのディレクトリのいずれかに対する検索許可がなかった。
94 .RB ( path_resolution (7)
99 .\"O is currently in use by the system or some process that prevents its
101 .\"O On Linux this means
103 .\"O is currently used as a mount point
104 .\"O or is the root directory of the calling process.
106 がシステムや別のプロセスにより使用中で削除することができない。
109 がマウントポイントとして使用されているか、
110 呼び出したプロセスのルートディレクトリであることを意味する。
113 .\"O .IR pathname " points outside your accessible address space."
115 がアクセス可能なアドレス空間の外を指している。
121 .\"O as last component.
128 .\"O Too many symbolic links were encountered in resolving
131 を解決する際に遭遇したシンボリック・リンクが多過ぎる。
134 .\"O .IR pathname " was too long."
139 .\"O A directory component in
141 .\"O does not exist or is a dangling symbolic link.
143 の中のディレクトリ部分が存在しないか、壊れた (dangling)
144 シンボリック・リンク (symbolic link) である。
147 .\"O Insufficient kernel memory was available.
152 .\"O or a component used as a directory in
154 .\"O is not, in fact, a directory.
158 に含まれているディレクトリ部分が、実際には、ディレクトリでない。
162 .\"O contains entries other than
163 .\"O .IR . " and " .. " ;"
168 .\"O as its final component.
169 .\"O POSIX.1-2001 also allows
171 .\"O for this condition.
186 .\"O The directory containing
188 .\"O has the sticky-bit
190 .\"O set and the process's effective user ID is neither the user ID
191 .\"O of the file to be deleted nor that of the directory containing it,
192 .\"O and the process is not privileged (Linux: does not have the
196 を含んでいるディレクトリにスティッキー・ビット(sticky-bit)
198 が設定されていて、プロセスの実効ユーザーID が削除しようとするファイルの
199 ユーザID とそのファイルを含むディレクトリのユーザーID のどちらとも異なり、
205 .\"O The file system containing
207 .\"O does not support the removal of directories.
209 を含んでいるファイル・システムがディレクトリの
214 .\"O refers to a directory on a read-only file system.
216 が読み込み専用のファイル・システム上のディレクトリを参照している。
217 .\"O .SH "CONFORMING TO"
219 SVr4, 4.3BSD, POSIX.1-2001.
222 .\"O Infelicities in the protocol underlying NFS can cause the unexpected
223 .\"O disappearance of directories which are still being used.
224 NFS プロトコルに潜在している欠陥によって、まだ使用中のディレクトリが
225 突然消滅する現象が引き起こされることがある。