explain_close_or_die(3) Library Functions Manual explain_close_or_die(3)NAME
explain_close_or_die - close a file descriptor and report errors
SYNOPSIS
#include <libexplain/close.h>
void explain_close_or_die(int fildes);
DESCRIPTION
The explain_close_or_die function is used to call the close(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_close(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_close_or_die(fildes);
fildes The fildes, exactly as to be passed to the close(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO close(2)
close a file descriptor
explain_close(3)
explain close(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_close_or_die(3)
Check Out this Related Man Page
explain_read_or_die(3) Library Functions Manual explain_read_or_die(3)NAME
explain_read_or_die - read from a file descriptor and report errors
SYNOPSIS
#include <libexplain/read.h>
long explain_read_or_die(int fildes, const void *data, long data_size);
DESCRIPTION
The explain_read_or_die function is used to call the read(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_read(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_read_or_die(fildes, data, data_size);
fildes The fildes, exactly as to be passed to the read(2) system call.
data The data, exactly as to be passed to the read(2) system call.
data_size
The data_size, exactly as to be passed to the read(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO read(2) read from a file descriptor
explain_read(3)
explain read(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_read_or_die(3)
All,
I am having three function
1.open
2.process
3.close.
Open will open a file and process will process a file and close will close the file ..
I can able to close the file by its filehandler.Is there is anyway that i can get the file name by filehandle and remove it after... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies
2. Forum Support Area for Unregistered Users & Account Problems
...you should be able to close it.
How (in Terminal), can you close a directory or (close) dismount a share? I'm wrecking my unimachead! This is so simple, I've forgotten.
Opening a directory:
$Open /
:confused: (2 Replies)
Discussion started by: unimachead
2 Replies
4. Post Here to Contact Site Administrators and Moderators
Hello,
Why close my ask "How to implement a semaphore with pedestrian pushbutton" i'm autodidact, so i don't understand why you dedice close it.
I put the ask about Java (the language what i'm learning in spanish forum becouse my english is not good) but some body told me that this is the... (1 Reply)
Hi Everyone,
It's a little difficult to explain what exactly I am looking for.
When I open a file in vi, and then close it, I get back the prompt, but I can still see the file on top. I don't want that. I want to be able to see all the previous commands which I have typed.
For example: I... (4 Replies)