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
9ebe4ab6
Commit
9ebe4ab6
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Dominick Meglio's fix to make our private gettimeofday() use the ares_
namespace
parent
a0edfb90
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
ares/nameser.h
+12
-11
12 additions, 11 deletions
ares/nameser.h
ares/windows_port.c
+1
-1
1 addition, 1 deletion
ares/windows_port.c
with
13 additions
and
12 deletions
ares/nameser.h
+
12
−
11
View file @
9ebe4ab6
...
...
@@ -18,7 +18,8 @@ struct iovec
#define getpid() _getpid()
int
strcasecmp
(
const
char
*
a
,
const
char
*
b
);
int
gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
);
int
ares_gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
);
#define gettimeofday(tv,tz) ares_gettimeofday(tv,tz)
#define NS_CMPRSFLGS 0xc0
...
...
@@ -35,7 +36,7 @@ typedef enum __ns_class {
/* Query class values which do not appear in resource records */
ns_c_none
=
254
,
/* for prereq. sections in update requests */
ns_c_any
=
255
,
/* Wildcard match. */
ns_c_max
=
65536
ns_c_max
=
65536
}
ns_class
;
#define C_IN ns_c_in
...
...
@@ -113,7 +114,7 @@ typedef enum __ns_opcode {
/* Opcode 3 is undefined/reserved. */
ns_o_notify
=
4
,
/* Zone change notification. */
ns_o_update
=
5
,
/* Zone update message. */
ns_o_max
=
6
ns_o_max
=
6
}
ns_opcode
;
#define QUERY ns_o_query
...
...
@@ -147,17 +148,17 @@ typedef enum __ns_rcode {
/* The following are TSIG extended errors */
ns_r_badsig
=
16
,
ns_r_badkey
=
17
,
ns_r_badtime
=
18
ns_r_badtime
=
18
}
ns_rcode
;
#define SERVFAIL ns_r_servfail
#define NOTIMP ns_r_notimpl
#define REFUSED ns_r_refused
#define NOERROR
ns_r_noerror
#define FORMERR
ns_r_formerr
#define NXDOMAIN ns_r_nxdomain
#define SERVFAIL
ns_r_servfail
#define NOTIMP
ns_r_notimpl
#define REFUSED
ns_r_refused
#define NOERROR ns_r_noerror
#define FORMERR ns_r_formerr
#define NXDOMAIN
ns_r_nxdomain
#define C_CHAOS
ns_c_chaos
#define C_CHAOS ns_c_chaos
#define C_HS ns_c_hs
#define C_NONE ns_c_none
#define C_ANY ns_c_any
...
...
This diff is collapsed.
Click to expand it.
ares/windows_port.c
+
1
−
1
View file @
9ebe4ab6
...
...
@@ -25,7 +25,7 @@ strcasecmp(const char *a, const char *b)
}
int
gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
)
ares_
gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
)
{
FILETIME
ft
;
LARGE_INTEGER
li
;
...
...
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