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
8147c365
Commit
8147c365
authored
17 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Minix doesn't support getsockopt on UDP sockets or send/recv on TCP
sockets.
parent
73e91ce2
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/connect.c
+7
-0
7 additions, 0 deletions
lib/connect.c
lib/setup_once.h
+15
-2
15 additions, 2 deletions
lib/setup_once.h
with
22 additions
and
2 deletions
lib/connect.c
+
7
−
0
View file @
8147c365
...
...
@@ -440,6 +440,13 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
SET_SOCKERRNO
(
0
);
err
=
0
;
}
#endif
#ifdef __minix
/* Minix 3.1.x doesn't support getsockopt on UDP sockets */
if
(
EBADIOCTL
==
err
)
{
SET_SOCKERRNO
(
0
);
err
=
0
;
}
#endif
if
((
0
==
err
)
||
(
EISCONN
==
err
))
/* we are connected, awesome! */
...
...
This diff is collapsed.
Click to expand it.
lib/setup_once.h
+
15
−
2
View file @
8147c365
...
...
@@ -98,6 +98,13 @@ struct timeval {
#endif
#if defined(__minix)
/* Minix doesn't support recv on TCP sockets */
#define sread(x,y,z) (ssize_t)read((RECV_TYPE_ARG1)(x), \
(RECV_TYPE_ARG2)(y), \
(RECV_TYPE_ARG3)(z))
#elif defined(HAVE_RECV)
/*
* The definitions for the return type and arguments types
* of functions recv() and send() belong and come from the
...
...
@@ -120,7 +127,6 @@ struct timeval {
* SEND_TYPE_RETV must also be defined.
*/
#ifdef HAVE_RECV
#if !defined(RECV_TYPE_ARG1) || \
!defined(RECV_TYPE_ARG2) || \
!defined(RECV_TYPE_ARG3) || \
...
...
@@ -143,7 +149,14 @@ struct timeval {
#endif
#endif
/* HAVE_RECV */
#ifdef HAVE_SEND
#if defined(__minix)
/* Minix doesn't support send on TCP sockets */
#define swrite(x,y,z) (ssize_t)write((SEND_TYPE_ARG1)(x), \
(SEND_TYPE_ARG2)(y), \
(SEND_TYPE_ARG3)(z))
#elif defined(HAVE_SEND)
#if !defined(SEND_TYPE_ARG1) || \
!defined(SEND_QUAL_ARG2) || \
!defined(SEND_TYPE_ARG2) || \
...
...
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