Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_unlink_or_die(3) [debian man page]

explain_unlink_or_die(3)				     Library Functions Manual					  explain_unlink_or_die(3)

NAME
explain_unlink_or_die - delete a file and report errors SYNOPSIS
#include <libexplain/unlink.h> void explain_unlink_or_die(const char *pathname); DESCRIPTION
The explain_unlink_or_die function is used to call the unlink(2) system call. On failure an explanation will be printed to stderr, obtained from explain_unlink(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_unlink_or_die(pathname); pathname The pathname, exactly as to be passed to the unlink(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
unlink(2) delete a name and possibly the file it refers to explain_unlink(3) explain unlink(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_unlink_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

3 More Discussions You Might Find Interesting

1. Programming

What does unlink"tmep.log" do?

Hi, I saw this C program on Unix with unlink("tmp.log"); unlink("time.log"); at the end of the file. What's the purpose of doing this? Thanks a lot! (1 Reply)
Discussion started by: whatisthis
1 Replies

2. Shell Programming and Scripting

perl unlink question

Hi, I have a two lines of code both intend to perform the same task. unlink $CtrFile; system ("rm $CtrFile"); Both of which try to delete a certain file. However when I use the unlink command the file does not get deleted. When I use the "rm" system... (2 Replies)
Discussion started by: jerardfjay
2 Replies

3. Shell Programming and Scripting

Unlink multiple files

I wish to unlink multiple links, but man pages shows unlink - call the unlink function to remove the specified file let's linked are in number sequence and I'm doing unlink `echo {1..500}` This fails.. Is their any other command to execute it or I need to call the unlink function that... (1 Reply)
Discussion started by: posix
1 Replies