rmdir(2) System Calls Manual rmdir(2) NOMBRE rmdir - borra un directorio BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include int rmdir(const char *pathname); DESCRIPCION rmdir() borra un directorio, el cual debe estar vacio. VALOR DEVUELTO En caso de exito se devuelve cero. En caso de error se devuelve -1, y errno se configura para indicar el error. ERRORES EACCES Write access to the directory containing pathname was not allowed, or one of the directories in the path prefix of pathname did not allow search permission. (See also path_resolution(7).) EBUSY pathname is currently in use by the system or some process that prevents its removal. On Linux, this means pathname is currently used as a mount point or is the root directory of the calling process. EFAULT pathname apunta fuera del espacio de direcciones accesible. EINVAL pathname has . as last component. ELOOP Se encontraron demasiados enlaces simbolicos al resolver pathname. ENAMETOOLONG pathname es demasiado largo. ENOENT Un componente directorio en ruta no existe o es un enlace simbolico colgante. ENOMEM No hay disponible suficiente memoria del nucleo. ENOTDIR pathname, o un componente usado como un directorio en pathname no es en realidad un directorio. ENOTEMPTY pathname contains entries other than . and .. ; or, pathname has .. as its final component. POSIX.1 also allows EEXIST for this condition. EPERM The directory containing pathname has the sticky bit (S_ISVTX) set and the process's effective user ID is neither the user ID of the file to be deleted nor that of the directory containing it, and the process is not privileged (Linux: does not have the CAP_FOWNER capability). EPERM El sistema de ficheros que contiene pathname no soporta el borrado de directorios. EROFS pathname refers to a directory on a read-only filesystem. ESTANDARES POSIX.1-2008. HISTORIAL POSIX.1-2001, SVr4, 4.3BSD. ERRORES Algunos hechos desafortunados del protocolo NFS subyacente pueden provocar la desaparicion inesperada de directorios que todavia se estan usando. VEASE TAMBIEN rm(1), rmdir(1), chdir(2), chmod(2), mkdir(2), rename(2), unlink(2), unlinkat(2) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Juan Piernas y Miguel Perez Ibars Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 rmdir(2)