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 Æɤ߹þ¤ßÀìÍÑ
47 .\"WORD: uid ¥æ¡¼¥¶¡¼ID
48 .\"WORD: entry ¥¨¥ó¥È¥ê
49 .\"WORD: memory ¥á¥â¥ê
51 .TH RMDIR 2 2008-05-08 "Linux" "Linux Programmer's Manual"
53 rmdir \- ¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë
55 .B #include <unistd.h>
57 .BI "int rmdir(const char *" pathname );
60 ¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤òºï½ü¤¹¤ë¡£ºï½ü¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ï¶õ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
62 À®¸ù¤·¤¿¾ì¹ç¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
69 ¤ò´Þ¤ó¤Ç¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î½ñ¤¹þ¤ß¥¢¥¯¥»¥¹¤¬
70 ¥×¥í¥»¥¹¤Î¼Â¸ú (effective) UID ¤ËÂФ·¤Æµö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¡¢
72 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¤É¤ì¤«¤Ë¸¡º÷ (¼Â¹Ô) µö²Ä¤¬¤Ê¤¤¤«¡¢
74 ¤Ë»ê¤ë¤Þ¤Ç¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¤¤º¤ì¤«¤ËÂФ¹¤ë¸¡º÷µö²Ä¤¬¤Ê¤«¤Ã¤¿¡£
75 .RB ( path_resolution (7)
80 ¤¬¥·¥¹¥Æ¥à¤äÊÌ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê»ÈÍÑÃæ¤Çºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¡£
83 ¤¬¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ¤¤¤ë¤«¡¢
84 ¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
88 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤Æ¤¤¤ë¡£
92 ¤ÎºÇ¸å¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬
98 ¤ò²ò·è¤¹¤ëºÝ¤ËÁø¶ø¤·¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯¤¬Â¿²á¤®¤ë¡£
106 ¤ÎÃæ¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢²õ¤ì¤¿ (dangling)
107 ¥·¥ó¥Ü¥ê¥Ã¥¯¡¦¥ê¥ó¥¯ (symbolic link) ¤Ç¤¢¤ë¡£
110 ½½Ê¬¤Ê¥«¡¼¥Í¥ë¤Î¥á¥â¥ê¤¬¤Ê¤¤¡£
116 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬¡¢¼ÂºÝ¤Ë¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¡£
123 °Ê³°¤Î¥¨¥ó¥È¥ê¤¬¤¢¤ë¡£¤Þ¤¿¤Ï¡¢
125 ¤ò¹½À®¤¹¤ëºÇ¸å¤ÎÍ×ÁǤ¬
128 POSIX.1-2001 ¤Ï¡¢¤³¤Î¾õ¶·¤Ç
130 ¤òÊÖ¤¹¤³¤È¤òǧ¤á¤Æ¤¤¤ë¡£
134 ¤ò´Þ¤ó¤Ç¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥¹¥Æ¥£¥Ã¥¡¼¡¦¥Ó¥Ã¥È(sticky-bit)
136 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Æ¡¢¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶¡¼ID ¤¬ºï½ü¤·¤è¤¦¤È¤¹¤ë¥Õ¥¡¥¤¥ë¤Î
137 ¥æ¡¼¥¶ID ¤È¤½¤Î¥Õ¥¡¥¤¥ë¤ò´Þ¤à¥Ç¥£¥ì¥¯¥È¥ê¤Î¥æ¡¼¥¶¡¼ID ¤Î¤É¤Á¤é¤È¤â°Û¤Ê¤ê¡¢
138 ¥×¥í¥»¥¹¤â¸¢¸Â (Linux ¤Ç¤Ï
140 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£) ¤¬¤Ê¤¤¡£
144 ¤ò´Þ¤ó¤Ç¤¤¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Î
145 ºï½ü¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
149 ¤¬Æɤ߹þ¤ßÀìÍѤΥե¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¾å¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»²¾È¤·¤Æ¤¤¤ë¡£
151 SVr4, 4.3BSD, POSIX.1-2001.
153 NFS ¥×¥í¥È¥³¥ë¤ËÀøºß¤·¤Æ¤¤¤ë·ç´Ù¤Ë¤è¤Ã¤Æ¡¢¤Þ¤À»ÈÍÑÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬
154 ÆÍÁ³¾ÃÌǤ¹¤ë¸½¾Ý¤¬°ú¤µ¯¤³¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë¡£