HP C/iX Library Reference Manual (30026-90004)

Chapter 5 263
HP C/iX Library Function Descriptions
_mpe_fileno
_mpe_fileno
Maps a file descriptor to an MPE file number.
Syntax
int _mpe_fileno(int
fildes
)
Parameters
fildes
A file descriptor.
Return Values
x The MPE file number of the
fildes
.
Description
The _mpe_fileno function returns the MPE file number associated with
fildes
. This file
number may be passed to MPE file system intrinsics to access files.
Caution should be used when accessing the same file using both MPE file system intrinsics
and C library routines as the calling program is responsible for any coordination required
between the two function libraries.
NOTE
The _mpe_fileno function is not supported in the POSIX/iX library. For
equivalent functionality, use the _MPE_FILENO macro and include the header
file <fcntl.h>.
See Also
open(), dup()