Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
8fe9376d
Commit
8fe9376d
authored
18 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
parent
a1f72943
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ares/setup_once.h
+6
-0
6 additions, 0 deletions
ares/setup_once.h
lib/inet_pton.c
+0
-4
0 additions, 4 deletions
lib/inet_pton.c
lib/select.c
+0
-11
0 additions, 11 deletions
lib/select.c
lib/setup_once.h
+6
-0
6 additions, 0 deletions
lib/setup_once.h
with
12 additions
and
15 deletions
ares/setup_once.h
+
6
−
0
View file @
8fe9376d
...
...
@@ -276,6 +276,12 @@ typedef int sig_atomic_t;
*/
#ifdef USE_WINSOCK
#undef EBADF
/* override definition in errno.h */
#define EBADF WSAEBADF
#undef EINTR
/* override definition in errno.h */
#define EINTR WSAEINTR
#undef EINVAL
/* override definition in errno.h */
#define EINVAL WSAEINVAL
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define EALREADY WSAEALREADY
...
...
This diff is collapsed.
Click to expand it.
lib/inet_pton.c
+
0
−
4
View file @
8fe9376d
...
...
@@ -41,10 +41,6 @@
#define INADDRSZ 4
#define INT16SZ 2
#ifdef USE_WINSOCK
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif
/*
* WARNING: Don't even consider trying to compile this on a system where
* sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.
...
...
This diff is collapsed.
Click to expand it.
lib/select.c
+
0
−
11
View file @
8fe9376d
...
...
@@ -23,8 +23,6 @@
#include
"setup.h"
#include
<errno.h>
#ifdef HAVE_SYS_SELECT_H
#include
<sys/select.h>
#endif
...
...
@@ -51,15 +49,6 @@
#include
"connect.h"
#include
"select.h"
#ifdef USE_WINSOCK
# undef EBADF
# define EBADF WSAEBADF
# undef EINTR
# define EINTR WSAEINTR
# undef EINVAL
# define EINVAL WSAEINVAL
#endif
/* Winsock and TPF sockets are not in range [0..FD_SETSIZE-1] */
#if defined(USE_WINSOCK) || defined(TPF)
...
...
This diff is collapsed.
Click to expand it.
lib/setup_once.h
+
6
−
0
View file @
8fe9376d
...
...
@@ -283,6 +283,12 @@ typedef int sig_atomic_t;
*/
#ifdef USE_WINSOCK
#undef EBADF
/* override definition in errno.h */
#define EBADF WSAEBADF
#undef EINTR
/* override definition in errno.h */
#define EINTR WSAEINTR
#undef EINVAL
/* override definition in errno.h */
#define EINVAL WSAEINVAL
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define EALREADY WSAEALREADY
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment