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
5eee801d
Commit
5eee801d
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
don't shadow 'socket'
parent
80a06403
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/connect.c
+8
-8
8 additions, 8 deletions
lib/connect.c
with
8 additions
and
8 deletions
lib/connect.c
+
8
−
8
View file @
5eee801d
...
...
@@ -98,7 +98,7 @@ int Curl_ourerrno(void)
* Set the socket to either blocking or non-blocking mode.
*/
int
Curl_nonblock
(
int
sock
et
,
/* operate on this */
int
Curl_nonblock
(
int
sock
fd
,
/* operate on this */
int
nonblock
/* TRUE or FALSE */
)
{
#undef SETBLOCK
...
...
@@ -106,11 +106,11 @@ int Curl_nonblock(int socket, /* operate on this */
/* most recent unix versions */
int
flags
;
flags
=
fcntl
(
sock
et
,
F_GETFL
,
0
);
flags
=
fcntl
(
sock
fd
,
F_GETFL
,
0
);
if
(
TRUE
==
nonblock
)
return
fcntl
(
sock
et
,
F_SETFL
,
flags
|
O_NONBLOCK
);
return
fcntl
(
sock
fd
,
F_SETFL
,
flags
|
O_NONBLOCK
);
else
return
fcntl
(
sock
et
,
F_SETFL
,
flags
&
(
~
O_NONBLOCK
));
return
fcntl
(
sock
fd
,
F_SETFL
,
flags
&
(
~
O_NONBLOCK
));
#define SETBLOCK 1
#endif
...
...
@@ -119,7 +119,7 @@ int Curl_nonblock(int socket, /* operate on this */
int
flags
;
flags
=
nonblock
;
return
ioctl
(
sock
et
,
FIONBIO
,
&
flags
);
return
ioctl
(
sock
fd
,
FIONBIO
,
&
flags
);
#define SETBLOCK 2
#endif
...
...
@@ -127,20 +127,20 @@ int Curl_nonblock(int socket, /* operate on this */
/* Windows? */
int
flags
;
flags
=
nonblock
;
return
ioctlsocket
(
sock
et
,
FIONBIO
,
&
flags
);
return
ioctlsocket
(
sock
fd
,
FIONBIO
,
&
flags
);
#define SETBLOCK 3
#endif
#ifdef HAVE_IOCTLSOCKET_CASE
/* presumably for Amiga */
return
IoctlSocket
(
sock
et
,
FIONBIO
,
(
long
)
nonblock
);
return
IoctlSocket
(
sock
fd
,
FIONBIO
,
(
long
)
nonblock
);
#define SETBLOCK 4
#endif
#ifdef HAVE_SO_NONBLOCK
/* BeOS */
long
b
=
nonblock
?
1
:
0
;
return
setsockopt
(
sock
et
,
SOL_SOCKET
,
SO_NONBLOCK
,
&
b
,
sizeof
(
b
));
return
setsockopt
(
sock
fd
,
SOL_SOCKET
,
SO_NONBLOCK
,
&
b
,
sizeof
(
b
));
#define SETBLOCK 5
#endif
...
...
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