Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_close_or_die(3) [debian man page]

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_dup_or_die(3)					     Library Functions Manual					     explain_dup_or_die(3)

NAME
explain_dup_or_die - duplicate a file descriptor and report errors SYNOPSIS
#include <libexplain/dup.h> void explain_dup_or_die(int fildes); DESCRIPTION
The explain_dup_or_die function is used to call the dup(2) system call. On failure an explanation will be printed to stderr, obtained from explain_dup(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_dup_or_die(fildes); fildes The fildes, exactly as to be passed to the dup(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
dup(2) duplicate a file descriptor explain_dup(3) explain dup(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_dup_or_die(3)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

deleting a file name by its handle

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

How to close a post

Hi, Pls let me know how i can close a thread if i already find answer to my question. Thanks, Am (1 Reply)
Discussion started by: am_yadav
1 Replies

3. OS X (Apple)

If you can open it...

...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

Why close my ask?

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)
Discussion started by: NewBe
1 Replies

5. UNIX for Dummies Questions & Answers

Bash/vi: Make file go away once I close it.

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)
Discussion started by: the_learner
4 Replies