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
76568340
Commit
76568340
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Curl_select() now uses curl_socket_t on socket arguments
parent
cca9fca8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/select.c
+2
-2
2 additions, 2 deletions
lib/select.c
lib/select.h
+1
-3
1 addition, 3 deletions
lib/select.h
with
3 additions
and
5 deletions
lib/select.c
+
2
−
2
View file @
76568340
...
...
@@ -36,7 +36,7 @@
#ifdef WIN32
#define VALID_SOCK(s) (1)
/* Win-sockets are not in range [0..FD_SETSIZE> */
#else
#define VALID_SOCK(s) ((s) >= 0) && ((s) < FD_SETSIZE))
#define VALID_SOCK(s) ((
(
s) >= 0) && ((s) < FD_SETSIZE))
#endif
/*
...
...
@@ -49,7 +49,7 @@
* 0 = timeout
* CSELECT_IN | CSELECT_OUT | CSELECT_ERR
*/
int
Curl_select
(
int
readfd
,
in
t
writefd
,
int
timeout_ms
)
int
Curl_select
(
curl_socket_t
readfd
,
curl_socket_
t
writefd
,
int
timeout_ms
)
{
#ifdef HAVE_POLL_FINE
struct
pollfd
pfd
[
2
];
...
...
This diff is collapsed.
Click to expand it.
lib/select.h
+
1
−
3
View file @
76568340
...
...
@@ -23,7 +23,6 @@
* $Id$
***************************************************************************/
#ifdef HAVE_SYS_POLL_H
#include
<sys/poll.h>
#else
...
...
@@ -44,12 +43,11 @@ struct pollfd
#endif
#define CSELECT_IN 0x01
#define CSELECT_OUT 0x02
#define CSELECT_ERR 0x04
int
Curl_select
(
int
readfd
,
in
t
writefd
,
int
timeout_ms
);
int
Curl_select
(
curl_socket_t
readfd
,
curl_socket_
t
writefd
,
int
timeout_ms
);
int
Curl_poll
(
struct
pollfd
ufds
[],
unsigned
int
nfds
,
int
timeout_ms
);
...
...
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