| www.delorie.com/djgpp/doc/libc-2.01/libc_299.html | search |
#include <sys/fsext.h> int __FSEXT_alloc_fd(__FSEXT_Function *_function);
This function is part of the section File System Extensions. It is used by extensions that fully emulate the I/O functions, and thus don't have a corresponding DOS file handle. This function opens DOS's `NUL' device, so as to allocate a handle that DOS won't then reuse. It also assigns the handler function for that descriptor.
The module is responsible for calling _close on the descriptor
after setting the handler function to zero in the extended close
handler.
int socket()
{
int fd = __FSEXT_alloc_fd(socket_handler);
init_socket(fd);
return fd;
}
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |