HP 3000 Manuals

_mpe_fileno [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

_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.
[REV BEG]


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>.
[REV END] See Also open(), dup()


MPE/iX 5.0 Documentation