RMDIR

Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Þ´º¾ó (2)
Updated: 1993³â 7¿ù 24ÀÏ
Index
Return to Main Contents
 

À̸§

rmdir - µð·ºÅ丮 »èÁ¦.  

»ç¿ë¹ý

#include <unistd.h>

int rmdir(const char *pathname);  

¼³¸í

rmdir ´Â µð·ºÅ丮(²À ºñ¾î ÀÖ¾î¾ß¸¸ÇÑ´Ù.)¸¦ »èÁ¦ÇÑ´Ù.  

¹Ýȯ°ª

¼º°ø½Ã, 0À» ¹ÝȯÇÏ°í, ½ÇÆнÃ, -1À» ¹ÝȯÇÏ°í, errno¸¦ ÀûÀýÈ÷ ¼³Á¤ÇÑ´Ù.  

¿¡·¯

EPERM
pathnameÀ» Æ÷ÇÔÇÑ ÆÄÀÏ ½Ã½ºÅÛÀÌ µð·ºÅ丮 »èÁ¦¸¦ Áö¿øÇÏÁö ¾Ê´Â´Ù.
EFAULT
pathname Á¢±Ù ÇÒ¼ö ÀÖ´Â ÁÖ¼Ò°ø°£ÀÌ ¾Æ´Ï´Ù.
EACCES
pathnameÀ» Æ÷ÇÔÇÑ µð·ºÅ丮ÀÇ ¾²±â Á¢±ÙÀÌ ÇÁ·Î¼¼½º À¯È¿ uid¶§¹®¿¡ Çã¶ôµÇÁö ¾Ê°Å³ª, pathnameÀÇ µð·ºÅ丮Áß Çϳª°¡ ½ÇÇà ±ÇÇÑÀÌ ¾ø´Ù.
EPERM
pathnameÀ» Æ÷ÇÔÇÏ´Â µð·ºÅ丮°¡ ( S_ISVTX ) ½ºÆ¼Å° ºñÆ®¸¦ °¡Áö°í ÀÖ°í, ÇÁ·Î¼¼½ºÀÇ À¯È¿ uid°¡ »èÁ¦ÇÒ ¼ö ÀÖ´Â ÆÄÀÏÀÇ uid°¡ ¾Æ´Ï°Å³ª ±×·± ÆÄÀÏÀ» Æ÷ÇÔÇÏ´Â µð·ºÅ丮ÀÌ´Ù.
ENAMETOOLONG
pathname ÀÌ ³Ê¹« ±æ´Ù.
ENOENT
pathnameÀÇ µð·ºÅ丮°¡ ¾ø°Å³ª ¸µÅ©°¡ ±úÁ³´Ù.
ENOTDIR
pathname, À̳ª pathname ÀÇ µð·ºÅ丮°¡ »ç½Ç µð·ºÅ丮°¡ ¾Æ´Ï´Ù.
ENOTEMPTY
pathname ÀÌ . and .. . À» Æ÷ÇÔÇÏÁö ¾Ê´Â´Ù.
EBUSY
pathname ÀÌ ÇöÀç ÀÛ¾÷ÁßÀÎ µð·ºÅ丮À̰ųª ¸î¸î ÇÁ·Î¼¼½ºÀÇ rootµð·ºÅ丮ÀÌ´Ù.
ENOMEM
Ä¿³Î¸Þ¸ð¸®°¡ ºÎÁ·ÇÏ´Ù.
EROFS
pathname ÀÌ read-only filesystem»óÀÇ ÆÄÀÏÀÌ´Ù.
ELOOP
pathname ÀÇ ¸µÅ©°¡ ³Ê¹« ¸¹´Ù.
 

ȣȯ

SVr4, SVID, POSIX, BSD 4.3  

¹ö±×

NFSÇÁ·ÎÅäÄÝÀÇ ºÎÀûÀûÇÑ Ç¥ÇöÀº ÇöÀç ¾²°í ÀÖ´Â µð·ºÅ丮ÀÇ ±â´ëÇÏÁö ¾ÊÀº ¼Ò½ÇÀ» ¾ß±â ÇÒ ¼ö ÀÖ´Ù.  

°ü·Ã Ç׸ñ

rename(2), mkdir(2), chdir(2), unlink(2), rmdir(1), rm(1)  

¿ªÀÚ

ASPLINUX<man@asp-linux.co.kr>, 2000³â 7¿ù 29


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¹Ýȯ°ª
¿¡·¯
ȣȯ
¹ö±×
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:06:59 GMT, March 25, 2004