New rmdir(2) by Michael Arndt
authorJoey Schulze <joey@infodrom.org>
Sat, 29 Dec 2001 14:42:43 +0000 (14:42 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 29 Dec 2001 14:42:43 +0000 (14:42 +0000)
man2/rmdir.2 [new file with mode: 0644]

diff --git a/man2/rmdir.2 b/man2/rmdir.2
new file mode 100644 (file)
index 0000000..4803063
--- /dev/null
@@ -0,0 +1,113 @@
+.\" Hey Emacs! This file is -*- nroff -*- source.
+.\"
+.\" This manpage is Copyright (C) 1992 Drew Eckhardt;
+.\"                               1993 Michael Haardt, Ian Jackson.
+.\"
+.\" Permission is granted to make and distribute verbatim copies of this
+.\" manual provided the copyright notice and this permission notice are
+.\" preserved on all copies.
+.\"
+.\" Permission is granted to copy and distribute modified versions of this
+.\" manual under the conditions for verbatim copying, provided that the
+.\" entire resulting derived work is distributed under the terms of a
+.\" permission notice identical to this one
+.\" 
+.\" Since the Linux kernel and libraries are constantly changing, this
+.\" manual page may be incorrect or out-of-date.  The author(s) assume no
+.\" responsibility for errors or omissions, or for damages resulting from
+.\" the use of the information contained herein.  The author(s) may not
+.\" have taken the same level of care in the production of this manual,
+.\" which is licensed free of charge, as they might when working
+.\" professionally.
+.\" 
+.\" Formatted or processed versions of this manual, if unaccompanied by
+.\" the source, must acknowledge the copyright and authors of this work.
+.\"
+.\" Modified Sat Jul 24 00:39:47 1993 by Rik Faith <faith@cs.unc.edu>
+.\" Modified Fri Jan 31 16:49:53 1997 by Eric S. Raymond <esr@thyrsus.com>
+.\" Translated into german by Michael Arndt <michael@scriptkiller.de>
+.\"
+.TH RMDIR 2 "10 Oktober 2001" "Linux 0.99.7" "Systemaufrufe"
+.SH NAME
+rmdir \- entferne ein Verzeichnis
+.SH "ÜBERSICHT"
+.B #include <unistd.h>
+.sp
+.BI "int rmdir(const char *" pathname );
+.SH BESCHREIBUNG
+.B rmdir
+entfernt ein leeres Verzeichnis
+.SH "RÜCKGABEWERT"
+Bei Erfolg wird 0 zurückgegeben, bei einem Fehler \-1.
+.I errno
+wird entsprechend gesetzt.
+.SH FEHLER
+.TP 0.8i
+.B EPERM
+Das Dateisystem, was
+.IR pathname
+enthällt, unterstützt das Entfernen von Verzeichnissen
+nicht.
+.TP
+.B EFAULT
+.IR pathname " zeigt außerhalb des erreichbaren Adressraumes"
+.TP
+.B EACCES
+Schreibzugriff auf das Verzeichnis, welches
+.I pathname
+enthällt, ist für die effektive uid des Prozesses nicht erlaubt,
+oder eines der Verzeichnisse in
+.IR pathname
+gibt kein durchsuch (execute) Recht.
+.TP
+.B EPERM
+Das Verzeichnis, welches
+.I pathname
+enthällt, hat das sticky-bit
+.RB ( S_ISVTX )
+gesetzt und die effektive uid des Prozesses ist weder die uid der Datei,
+die gelöscht werden soll, noch die des Verzeichnisses, das sie enthällt.
+.TP
+.B ENAMETOOLONG
+.IR pathname " ist zu lang."
+.TP
+.B ENOENT
+Ein Teil des Verzeichnisses in
+.I pathname
+existiert nicht, oder ist ein kaputter symbolischer Link.
+.TP
+.B ENOTDIR
+.IR pathname ,
+oder ein als Verzeichnis benutzter Teil von
+.IR pathname ,
+ist kein Verzeichnis.
+.TP
+.B ENOTEMPTY
+.I pathname
+enthällt andere Einträge als
+.BR . " und " ..
+(das Verzeichnis ist nicht leer).
+.TP
+.B EBUSY
+.I pathname
+ist das aktuelle Verzeichnis oder das Stammverzeichnis eines Prozesses.
+.TP
+.B ENOMEM
+Nicht genug Kernelspeicher vorhanden.
+.TP
+.B EROFS
+.I pathname
+verweist auf eine Datei auf einem nur-lesbaren Dateisystem.
+.TP
+.B ELOOP
+Zu viele symbolische Links beim Auflösen von
+.IR pathname .
+.SH "KONFORM ZU"
+SVr4, SVID, POSIX, BSD 4.3
+.SH BUGS
+Bestimmte Zustände in dem Protokoll, welchem NFS unterliegt, können dazu
+führen, dass Verzeichnisse, die noch benutzt werden, unerwartet
+verschwinden.
+.SH "SIEHE AUCH"
+.BR rename "(2), " mkdir "(2), " chdir "(2), " unlink (2),
+.BR rmdir "(1), " rm (1)