OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man2 / rmdir.2
1 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
2 .\"             and Copyright (C) 1993 Michael Haardt, Ian Jackson.
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
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 .\" %%%LICENSE_END
25 .\"
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>
29 .\"
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH RMDIR 2 2008\-05\-08 Linux "Linux Programmer's Manual"
36 .SH 名前
37 rmdir \- ディレクトリを削除する
38 .SH 書式
39 \fB#include <unistd.h>\fP
40 .sp
41 \fBint rmdir(const char *\fP\fIpathname\fP\fB);\fP
42 .SH 説明
43 \fBrmdir\fP()  はディレクトリを削除する。削除するディレクトリは空でなければならない。
44 .SH 返り値
45 成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
46 .SH エラー
47 .TP 
48 \fBEACCES\fP
49 \fIpathname\fP を含んでいるディレクトリへの書き込みアクセスが プロセスの実効 (effective) UID に対して許可されていないか、
50 \fIpathname\fP に含まれているディレクトリのどれかに検索 (実行) 許可がないか、 \fIpathname\fP
51 に至るまでのディレクトリのいずれかに対する検索許可がなかった。 (\fBpath_resolution\fP(7)  も参照のこと)
52 .TP 
53 \fBEBUSY\fP
54 \fIpathname\fP がシステムや別のプロセスにより使用中で削除することができない。 Linux では、 \fIpathname\fP
55 がマウントポイントとして使用されているか、 呼び出したプロセスのルートディレクトリであることを意味する。
56 .TP 
57 \fBEFAULT\fP
58 \fIpathname\fP がアクセス可能なアドレス空間の外を指している。
59 .TP 
60 \fBEINVAL\fP
61 \fIpathname\fP の最後のディレクトリ部分が \fI.\fP である。
62 .TP 
63 \fBELOOP\fP
64 \fIpathname\fP を解決する際に遭遇したシンボリックリンクが多過ぎる。
65 .TP 
66 \fBENAMETOOLONG\fP
67 \fIpathname\fP が長過ぎる。
68 .TP 
69 \fBENOENT\fP
70 \fIpathname\fP の中のディレクトリ部分が存在しないか、壊れた (dangling)  シンボリックリンク (symbolic link)
71 である。
72 .TP 
73 \fBENOMEM\fP
74 十分なカーネルメモリーがない。
75 .TP 
76 \fBENOTDIR\fP
77 \fIpathname\fP か \fIpathname\fP に含まれているディレクトリ部分が、実際には、ディレクトリでない。
78 .TP 
79 \fBENOTEMPTY\fP
80 ディレクトリ \fIpathname\fP に \fI.\fP と \fI..\fP 以外のエントリがある。または、 \fIpathname\fP を構成する最後の要素が
81 \&\fI..\fP である。 POSIX.1\-2001 は、この状況で \fBEEXIST\fP を返すことを認めている。
82 .TP 
83 \fBEPERM\fP
84 \fIpathname\fP を含んでいるディレクトリにスティッキービット(sticky\-bit)  (\fBS_ISVTX\fP)
85 が設定されていて、プロセスの実効ユーザーID が削除しようとするファイルの ユーザID とそのファイルを含むディレクトリのユーザーID
86 のどちらとも異なり、 プロセスも権限 (Linux では \fBCAP_FOWNER\fP ケーパビリティ) がない。
87 .TP 
88 \fBEPERM\fP
89 \fIpathname\fP を含んでいるファイルシステムがディレクトリの 削除をサポートしていない。
90 .TP 
91 \fBEROFS\fP
92 \fIpathname\fP が読み込み専用のファイルシステム上のディレクトリを参照している。
93 .SH 準拠
94 SVr4, 4.3BSD, POSIX.1\-2001.
95 .SH バグ
96 NFS プロトコルに潜在している欠陥によって、まだ使用中のディレクトリが 突然消滅する現象が引き起こされることがある。
97 .SH 関連項目
98 \fBrm\fP(1), \fBrmdir\fP(1), \fBchdir\fP(2), \fBchmod\fP(2), \fBmkdir\fP(2), \fBrename\fP(2),
99 \fBunlink\fP(2), \fBunlinkat\fP(2)
100 .SH この文書について
101 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
102 である。プロジェクトの説明とバグ報告に関する情報は
103 http://www.kernel.org/doc/man\-pages/ に書かれている。