fileno(3S)fileno(3S)NAMEfileno() - map stream pointer to file descriptor
SYNOPSIS
Obsolescent Interfaces
DESCRIPTION
returns the integer file descriptor associated with the named stream;
see open(2).
The following symbolic values in define the file descriptors associated
with and when a program is started :
Value of zero for standard input,
Value of 1 for standard output,
Value of 2 for standard error,
Obsolescent Interfaces
map stream pointer to file descriptor
APPLICATION USAGE
is an obsolescent interface supported only for compatibility with
existing DCE applications. New multithreaded applications should use
RETURN VALUE
Upon error, return -1.
SEE ALSOopen(2), flockfile(3S), fopen(3S), thread_safety(5).
STANDARDS CONFORMANCEfileno(3S)