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
eb6130ba
Commit
eb6130ba
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
ourerrno became Curl_ourerrno() and is now available to all libcurl
parent
f69ea2c6
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
+5
-6
5 additions, 6 deletions
lib/connect.c
lib/connect.h
+2
-0
2 additions, 0 deletions
lib/connect.h
with
7 additions
and
6 deletions
lib/connect.c
+
5
−
6
View file @
eb6130ba
...
...
@@ -81,8 +81,7 @@
#include
"memdebug.h"
#endif
static
int
ourerrno
(
void
)
int
Curl_ourerrno
(
void
)
{
#ifdef WIN32
return
(
int
)
GetLastError
();
...
...
@@ -350,7 +349,7 @@ int socketerror(int sockfd)
if
(
-
1
==
getsockopt
(
sockfd
,
SOL_SOCKET
,
SO_ERROR
,
(
void
*
)
&
err
,
&
errSize
))
err
=
ourerrno
();
err
=
Curl_
ourerrno
();
return
err
;
}
...
...
@@ -414,7 +413,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
return
CURLE_COULDNT_CONNECT
;
}
else
if
(
1
!=
rc
)
{
int
error
=
ourerrno
();
int
error
=
Curl_
ourerrno
();
failf
(
data
,
"Failed connect to %s:%d, errno: %d"
,
conn
->
hostname
,
conn
->
port
,
error
);
return
CURLE_COULDNT_CONNECT
;
...
...
@@ -526,7 +525,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
rc
=
connect
(
sockfd
,
ai
->
ai_addr
,
ai
->
ai_addrlen
);
if
(
-
1
==
rc
)
{
int
error
=
ourerrno
();
int
error
=
Curl_
ourerrno
();
switch
(
error
)
{
case
EINPROGRESS
:
...
...
@@ -645,7 +644,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
sizeof
(
serv_addr
));
if
(
-
1
==
rc
)
{
int
error
=
ourerrno
();
int
error
=
Curl_
ourerrno
();
switch
(
error
)
{
case
EINPROGRESS
:
...
...
This diff is collapsed.
Click to expand it.
lib/connect.h
+
2
−
0
View file @
eb6130ba
...
...
@@ -37,4 +37,6 @@ CURLcode Curl_connecthost(struct connectdata *conn,
Curl_ipconnect
**
addr
,
/* the one we used */
bool
*
connected
/* truly connected? */
);
int
Curl_ourerrno
(
void
);
#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