ErrnoException in case of error.
Parameters
fd | File descriptor to associate with this File. |
stdioOpenmode | Mode to associate with this File. The mode has the same semantics as in the POSIX library function fdopen and must be compatible with fd. |
void fdopen(int fd, scope const(char)[] stdioOpenmode = "rb") @safeFirst calls detach (throwing on failure), then attempts to associate the given file descriptor with the File, and sets the file's name to null.
The mode must be compatible with the mode of the file descriptor.
ErrnoException in case of error.
fd | File descriptor to associate with this File. |
stdioOpenmode | Mode to associate with this File. The mode has the same semantics as in the POSIX library function fdopen and must be compatible with fd. |
void fdopen(int fd, scope const(char)[] stdioOpenmode, string name) @trusted