SYNOPSIS
#include <winnutc.h>
int _NutHandleToFd(HANDLE handle, int flags, const char *path);
DESCRIPTION
The
The specified handle should not be closed with
Be careful when sharing file descriptors between NuTCRACKER Platform and Win32 code.
If the Win32 code change settings on the underlying object
(for example, calls
PARAMETERS
- handle
-
Is the Win32 file handle for which a new file descriptor is to be created.
- flags
-
Contains the flags describing the state of the file descriptor, as specified for
open() . - path
-
Is the path to the file corresponding to handle. If the path is unknown, an empty string should be passed.
RETURN VALUES
If successful,
- EINTR
-
A signal interrupted the call.
- EMFILE
-
This process is currently using too many open file descriptors.
CONFORMANCE
PTC MKS Toolkit UNIX APIs extension.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
_NutFdToHandle() ,open()
PTC MKS Toolkit 10.5 Documentation Build 40.