1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 01:49:03 +00:00

Remove ENOENT from the list of WSAE* defines we override.

ENOENT wasn't being used by other code in a networking context. I need
to be able to detect a real ENOENT from a file deletion.
This commit is contained in:
david
2011-12-19 05:16:30 +00:00
parent 63cd5edfb7
commit 6c64ba9851

View File

@@ -187,8 +187,6 @@
#undef EINTR
#define EINTR WSAEINTR /* Interrupted system call */
#define ENOBUFS WSAENOBUFS /* No buffer space available */
#undef ENOENT
#define ENOENT WSAENOENT /* No such file or directory */
#define EMSGSIZE WSAEMSGSIZE /* Message too long */
#undef ENOMEM
#define ENOMEM WSAENOBUFS
@@ -197,6 +195,13 @@
#undef EIO
#define EIO WSASYSCALLFAILURE
/*
This is not used by our network code, and causes problems in programs using
Nbase that legitimately use ENOENT for file operations.
#undef ENOENT
#define ENOENT WSAENOENT
*/
#define close(x) closesocket(x)
typedef unsigned short u_short_t;