GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EXPLAIN_OPEN_OR_DIE (3)

NAME

explain_open_or_die - open file and report errors

CONTENTS

Synopsis
Description
Return Value
Copyright
Author

SYNOPSIS

#include <fcntl.h>
#include <libexplain/open.h>

int explain_open_or_die(const char *pathname, int flags, int mode);

DESCRIPTION

Given a pathname for a file, open() returns a file descriptor, a small, non[hy]negative integer for use in subsequent system calls (read(2), write(2), lseek(2), fcntl(2), etc.). The file descriptor returned by a successful call will be the lowest[hy]numbered file descriptor not currently open for the process. See I]open(2) for more information.

RETURN VALUE

On success, the new file descriptor is returned.

On error, a description of the error is obtained via I]explain_open(3), and printed on I]stderr. The process is the terminated via a call to the CW]exit(EXIT_FAILURE) function.

COPYRIGHT

libexplain version 1.3
Copyright © 2008 Peter Miller

AUTHOR

Written by Peter Miller <pmiller@opensource.org.au>
Search for    or go to Top of page |  Section 3 |  Main Index


EXPLAIN_OPEN_OR_DIE (3) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.