| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > Visual C++/MFC/WTL > _sopen_s define: O_NONBLOCK |
| Автор: vdm 2.5.2010, 16:30 |
| UNIX GCC <FCNTL.H> есть: макрос: int O_NONBLOCK This prevents open from blocking for a "long time" to open the file. This is only meaningful for some kinds of files, usually devices such as serial ports; when it is not meaningful, it is harmless and ignored. Often opening a port to a modem blocks until the modem reports carrier detection; if O_NONBLOCK is specified, open will return immediately without a carrier. В Win32 <FCNTL.H> подобного макроса не хранит. Не в курсе, может он называется иначе? |