OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / rmdir.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
4 .\"                               1993 Michael Haardt, Ian Jackson.
5 .\"
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.
9 .\"
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.
14 .\"
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
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
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 .\" 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
37 .\"
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               Æɤ߹þ¤ßÀìÍÑ
47 .\"WORD:        uid                     ¥æ¡¼¥¶¡¼ID
48 .\"WORD:        entry                   ¥¨¥ó¥È¥ê
49 .\"WORD:        memory                  ¥á¥â¥ê
50 .\"
51 .TH RMDIR 2 2008-05-08 "Linux" "Linux Programmer's Manual"
52 .SH Ì¾Á°
53 rmdir \- ¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë
54 .SH ½ñ¼°
55 .B #include <unistd.h>
56 .sp
57 .BI "int rmdir(const char *" pathname );
58 .SH ÀâÌÀ
59 .BR rmdir ()
60 ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë¡£ºï½ü¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ï¶õ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
61 .SH ÊÖ¤êÃÍ
62 À®¸ù¤·¤¿¾ì¹ç¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
63 .I errno
64 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
65 .SH ¥¨¥é¡¼
66 .TP
67 .B EACCES
68 .I pathname
69 ¤ò´Þ¤ó¤Ç¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î½ñ¤­¹þ¤ß¥¢¥¯¥»¥¹¤¬
70 ¥×¥í¥»¥¹¤Î¼Â¸ú (effective) UID ¤ËÂФ·¤Æµö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¡¢
71 .I pathname
72 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¤É¤ì¤«¤Ë¸¡º÷ (¼Â¹Ô) µö²Ä¤¬¤Ê¤¤¤«¡¢
73 .I pathname
74 ¤Ë»ê¤ë¤Þ¤Ç¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¤¤º¤ì¤«¤ËÂФ¹¤ë¸¡º÷µö²Ä¤¬¤Ê¤«¤Ã¤¿¡£
75 .RB ( path_resolution (7)
76 ¤â»²¾È¤Î¤³¤È)
77 .TP
78 .B EBUSY
79 .I pathname
80 ¤¬¥·¥¹¥Æ¥à¤äÊÌ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê»ÈÍÑÃæ¤Çºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¡£
81 Linux ¤Ç¤Ï¡¢
82 .I pathname
83 ¤¬¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ¤¤¤ë¤«¡¢
84 ¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
85 .TP
86 .B EFAULT
87 .I pathname
88 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤Æ¤¤¤ë¡£
89 .TP
90 .B EINVAL
91 .I pathname
92 ¤ÎºÇ¸å¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬
93 .I .
94 ¤Ç¤¢¤ë¡£
95 .TP
96 .B ELOOP
97 .I pathname
98 ¤ò²ò·è¤¹¤ëºÝ¤ËÁø¶ø¤·¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤¬Â¿²á¤®¤ë¡£
99 .TP
100 .B ENAMETOOLONG
101 .I pathname
102 ¤¬Ä¹²á¤®¤ë¡£
103 .TP
104 .B ENOENT
105 .I pathname
106 ¤ÎÃæ¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢²õ¤ì¤¿ (dangling)
107 ¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯ (symbolic link) ¤Ç¤¢¤ë¡£
108 .TP
109 .B ENOMEM
110 ½½Ê¬¤Ê¥«¡¼¥Í¥ë¤Î¥á¥â¥ê¤¬¤Ê¤¤¡£
111 .TP
112 .B ENOTDIR
113 .I pathname
114 ¤«
115 .I pathname
116 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬¡¢¼ÂºÝ¤Ë¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¡£
117 .TP
118 .B ENOTEMPTY
119 ¥Ç¥£¥ì¥¯¥È¥ê
120 .I pathname
121 ¤Ë
122 .IR . " ¤È " ..
123 °Ê³°¤Î¥¨¥ó¥È¥ê¤¬¤¢¤ë¡£¤Þ¤¿¤Ï¡¢
124 .I pathname
125 ¤ò¹½À®¤¹¤ëºÇ¸å¤ÎÍ×ÁǤ¬
126 .I ..
127 ¤Ç¤¢¤ë¡£
128 POSIX.1-2001 ¤Ï¡¢¤³¤Î¾õ¶·¤Ç
129 .B EEXIST
130 ¤òÊÖ¤¹¤³¤È¤òǧ¤á¤Æ¤¤¤ë¡£
131 .TP
132 .B EPERM
133 .I pathname
134 ¤ò´Þ¤ó¤Ç¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¹¥Æ¥£¥Ã¥­¡¼¡¦¥Ó¥Ã¥È(sticky-bit)
135 .RB ( S_ISVTX )
136 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Æ¡¢¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶¡¼ID ¤¬ºï½ü¤·¤è¤¦¤È¤¹¤ë¥Õ¥¡¥¤¥ë¤Î
137 ¥æ¡¼¥¶ID ¤È¤½¤Î¥Õ¥¡¥¤¥ë¤ò´Þ¤à¥Ç¥£¥ì¥¯¥È¥ê¤Î¥æ¡¼¥¶¡¼ID ¤Î¤É¤Á¤é¤È¤â°Û¤Ê¤ê¡¢
138 ¥×¥í¥»¥¹¤â¸¢¸Â (Linux ¤Ç¤Ï
139 .B CAP_FOWNER
140 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£) ¤¬¤Ê¤¤¡£
141 .TP
142 .B EPERM
143 .I pathname
144 ¤ò´Þ¤ó¤Ç¤¤¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Î
145 ºï½ü¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
146 .TP
147 .B EROFS
148 .I pathname
149 ¤¬Æɤ߹þ¤ßÀìÍѤΥե¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¾å¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤·¤Æ¤¤¤ë¡£
150 .SH ½àµò
151 SVr4, 4.3BSD, POSIX.1-2001.
152 .SH ¥Ð¥°
153 NFS ¥×¥í¥È¥³¥ë¤ËÀøºß¤·¤Æ¤¤¤ë·ç´Ù¤Ë¤è¤Ã¤Æ¡¢¤Þ¤À»ÈÍÑÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬
154 ÆÍÁ³¾ÃÌǤ¹¤ë¸½¾Ý¤¬°ú¤­µ¯¤³¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£
155 .SH ´ØÏ¢¹àÌÜ
156 .BR rm (1),
157 .BR rmdir (1),
158 .BR chdir (2),
159 .BR chmod (2),
160 .BR mkdir (2),
161 .BR rename (2),
162 .BR unlink (2),
163 .BR unlinkat (2)