Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_rmdir_or_die(3) [debian man page]

explain_rmdir_or_die(3) 				     Library Functions Manual					   explain_rmdir_or_die(3)

NAME
explain_rmdir_or_die - delete a directory and report errors SYNOPSIS
#include <libexplain/rmdir.h> void explain_rmdir_or_die(const char *pathname); DESCRIPTION
The explain_rmdir_or_die function is used to call the rmdir(2) system call. On failure an explanation will be printed to stderr, obtained from explain_rmdir(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_rmdir_or_die(pathname); pathname The pathname, exactly as to be passed to the rmdir(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
rmdir(2) delete a directory explain_rmdir(3) explain rmdir(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_rmdir_or_die(3)

Check Out this Related Man Page

explain_remove_or_die(3)				     Library Functions Manual					  explain_remove_or_die(3)

NAME
explain_remove_or_die - delete a file and report errors SYNOPSIS
#include <libexplain/remove.h> void explain_remove_or_die(const char *pathname); DESCRIPTION
The explain_remove_or_die function is used to call the remove(2) system call. On failure an explanation will be printed to stderr, obtained from explain_remove(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_remove_or_die(pathname); pathname The pathname, exactly as to be passed to the remove(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
remove(2) delete a name and possibly the file it refers to explain_remove(3) explain remove(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_remove_or_die(3)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Can't delete a direcotry

Hi, I don't see my new post, so I am post it again: I am having hard time to delete a directory: $ rmdir testdxdwdw $ rm -r testdoxdwdw rm: testoxdwdw non-existent $ rm vtestoxdwdw No such file or directory $ rm -rf vtestoxdwdw ### still don't work Thanks! (0 Replies)
Discussion started by: oradbus
0 Replies

2. HP-UX

Can't delete a directory on HP-UX

Hi, I am having hard time to delete a directory: $ rm -r testoxdwdw rm: testoxdwdw non-existent $ rmdir testoxdwdw rmdir: testoxdwdw: No such file or directory $ rm -rf testoxdwdw Thanks! (2 Replies)
Discussion started by: oradbus
2 Replies

3. Solaris

Remove non empty dirctory

Hi, Any command or means to delete a director which is not empty rmdir or similar iam using Sun Solaries 2.6 :confused: I have many full directories with subdirectories and I can not go on emptying them all (5 Replies)
Discussion started by: adol3
5 Replies

4. UNIX for Dummies Questions & Answers

How do you delete files that are seemingly missing inodes?

I have some files that appear to have no inode numbers. To complicate the matter, the filenames have UTF8 (I think) characters. I am trying to delete them. In fact, and this might make things easier, I'm trying to delete their parent directory. I don't know what to try next, please help. ... (5 Replies)
Discussion started by: jaffachamp
5 Replies

5. Shell Programming and Scripting

redirection entree sortie

Bonjour, J'ai un répertoire /travail qui est vide. je lance dans une console cd /travail puis rmdir aa 2>&1 > /dev/null et s'affiche alors " rmdir : aa :Aucun fichier ou répertoire de ce type." J'essaie de comprendre : rmdir aa 2>&1 redirige 2 vers 1 donc le message d'erreur vers... (4 Replies)
Discussion started by: quisuisje
4 Replies

6. Windows & DOS: Issues & Discussions

PSFTP/PSCP: remotely deleting directory recursively

Hello, I'm looking for a way to use PSFTP or PSCP, executed from a batch file in Windows, to delete an entire folder and its contents. I can run a script using PSFTP which can use rm or rmdir, but the -rf command doesn't work. Any suggestions on another client to use in the same context, or a... (2 Replies)
Discussion started by: ocdcollector
2 Replies

7. Solaris

Directory cannot be deleted!!!

Friends, I have accidently, as root, created a directory gabsf under /home. Now I cannot delete this thing, I have tried rm and rmdir, as well as explicit path name, but it is really undeleteable. Here is what ls -l says. # ls -l /home total 6 drwxr-xr-x 2 dawood dawood 2 Sep 5... (3 Replies)
Discussion started by: gabam
3 Replies

8. UNIX for Dummies Questions & Answers

Disk_err9

I am a ton of SC_DISK_ERR9 errors. What exactly is this error? errpt doesn't really explain.. (1 Reply)
Discussion started by: Daniel Gate
1 Replies

9. UNIX for Dummies Questions & Answers

What option will use for deleting directory with all its contents?

Hi How to completely delete directory with all it contents I try to use rmdir -r but it give error Thanks ---------- Post updated at 03:10 AM ---------- Previous update was at 02:52 AM ---------- Hi all I got the solution for my thread i use mkdir with the option -p Thanks (1 Reply)
Discussion started by: Tauatioti
1 Replies