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_FILENAME (3)

NAME

explain_filename_from_fildes - obtain filename from file descriptor

CONTENTS

Synopsis
Description
Copyright
Author

SYNOPSIS

#include <libexplain/filename.h>

int explain_filename_from_fildes(int fildes, char *data, size_t data_size);

int explain_filename_from_stream(FILE *stream, char *data, size_t data_size);

DESCRIPTION

The I]explain_filename_from_fildes function may be used to obtain the name of the file associated with the file descriptor.

The I]explain_filename_from_stream function may be used to obtain the name of the file associated with a file stream.

The filename is returned in the array pointed to by I]data. The filename will always be NUL terminated. If the returned filename is longer than I]data_size, it will be silently truncated; a size of at least (PATH_MAX + 1) is suggested.

On success, returns zero. If the file name cannot be determined, returns -1 (but does B]not set I]errno.)

COPYRIGHT

libexplain version 1.3
Copyright © 2012 Peter Miller

AUTHOR

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


EXPLAIN_FILENAME_FROM_FILDES (3) -->

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