Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
e0eb284e
提交
e0eb284e
authored
3月 25, 2011
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ldns initial round for windows compatibility
上级
710fc7a7
隐藏空白字符变更
内嵌
并排
正在显示
31 个修改的文件
包含
161 行增加
和
1 行删除
+161
-1
b32_ntop.c
libs/ldns/compat/b32_ntop.c
+2
-0
b32_pton.c
libs/ldns/compat/b32_pton.c
+2
-0
b64_ntop.c
libs/ldns/compat/b64_ntop.c
+2
-0
b64_pton.c
libs/ldns/compat/b64_pton.c
+2
-0
fake-rfc2553.c
libs/ldns/compat/fake-rfc2553.c
+2
-0
fake-rfc2553.h
libs/ldns/compat/fake-rfc2553.h
+4
-0
gettimeofday.c
libs/ldns/compat/gettimeofday.c
+50
-0
gettimeofday.h
libs/ldns/compat/gettimeofday.h
+11
-0
inet_aton.c
libs/ldns/compat/inet_aton.c
+2
-0
inet_ntop.c
libs/ldns/compat/inet_ntop.c
+2
-0
malloc.c
libs/ldns/compat/malloc.c
+2
-0
memmove.c
libs/ldns/compat/memmove.c
+2
-0
realloc.c
libs/ldns/compat/realloc.c
+2
-0
dnssec.c
libs/ldns/dnssec.c
+4
-0
dnssec_sign.c
libs/ldns/dnssec_sign.c
+4
-0
dnssec_verify.c
libs/ldns/dnssec_verify.c
+4
-0
host2str.c
libs/ldns/host2str.c
+2
-0
packet.h
libs/ldns/ldns/packet.h
+4
-0
resolver.h
libs/ldns/ldns/resolver.h
+4
-0
net.c
libs/ldns/net.c
+6
-1
packet.c
libs/ldns/packet.c
+4
-0
parse.c
libs/ldns/parse.c
+4
-0
resolver.c
libs/ldns/resolver.c
+4
-0
rr.c
libs/ldns/rr.c
+4
-0
rr_functions.c
libs/ldns/rr_functions.c
+4
-0
sha1.c
libs/ldns/sha1.c
+4
-0
tsig.c
libs/ldns/tsig.c
+4
-0
update.c
libs/ldns/update.c
+4
-0
util.c
libs/ldns/util.c
+8
-0
wire2host.c
libs/ldns/wire2host.c
+4
-0
zone.c
libs/ldns/zone.c
+4
-0
没有找到文件。
libs/ldns/compat/b32_ntop.c
浏览文件 @
e0eb284e
...
...
@@ -42,7 +42,9 @@
#include <ldns/config.h>
#include <sys/types.h>
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
...
...
libs/ldns/compat/b32_pton.c
浏览文件 @
e0eb284e
...
...
@@ -42,7 +42,9 @@
#include <ldns/config.h>
#include <sys/types.h>
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
...
...
libs/ldns/compat/b64_ntop.c
浏览文件 @
e0eb284e
...
...
@@ -42,7 +42,9 @@
#include <ldns/config.h>
#include <sys/types.h>
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
...
...
libs/ldns/compat/b64_pton.c
浏览文件 @
e0eb284e
...
...
@@ -42,7 +42,9 @@
#include <ldns/config.h>
#include <sys/types.h>
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
...
...
libs/ldns/compat/fake-rfc2553.c
浏览文件 @
e0eb284e
...
...
@@ -38,7 +38,9 @@
#include <ldns/config.h>
#include <ldns/common.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
...
...
libs/ldns/compat/fake-rfc2553.h
浏览文件 @
e0eb284e
...
...
@@ -40,8 +40,12 @@
#define _FAKE_RFC2553_H
#include <sys/types.h>
#ifdef _MSC_VER
#include <winsock2.h>
#else
#include <sys/socket.h>
#include <netdb.h>
#endif
#include <limits.h>
#ifdef __cplusplus
...
...
libs/ldns/compat/gettimeofday.c
0 → 100644
浏览文件 @
e0eb284e
#include <ldns/config.h>
#ifndef HAVE_GETTIMEOFDAY
#include < time.h >
#include < windows.h>
#include <compat/gettimeofday.h>
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
int
gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
)
{
FILETIME
ft
;
unsigned
__int64
tmpres
=
0
;
static
int
tzflag
;
if
(
NULL
!=
tv
)
{
GetSystemTimeAsFileTime
(
&
ft
);
tmpres
|=
ft
.
dwHighDateTime
;
tmpres
<<=
32
;
tmpres
|=
ft
.
dwLowDateTime
;
/*converting file time to unix epoch*/
tmpres
/=
10
;
/*convert into microseconds*/
tmpres
-=
DELTA_EPOCH_IN_MICROSECS
;
tv
->
tv_sec
=
(
long
)(
tmpres
/
1000000UL
);
tv
->
tv_usec
=
(
long
)(
tmpres
%
1000000UL
);
}
if
(
NULL
!=
tz
)
{
if
(
!
tzflag
)
{
_tzset
();
tzflag
++
;
}
tz
->
tz_minuteswest
=
_timezone
/
60
;
tz
->
tz_dsttime
=
_daylight
;
}
return
0
;
}
#endif
\ No newline at end of file
libs/ldns/compat/gettimeofday.h
0 → 100644
浏览文件 @
e0eb284e
#ifndef HAVE_GETTIMEOFDAY
struct
timezone
{
int
tz_minuteswest
;
/* minutes W of Greenwich */
int
tz_dsttime
;
/* type of dst correction */
};
int
gettimeofday
(
struct
timeval
*
tv
,
struct
timezone
*
tz
);
#endif
\ No newline at end of file
libs/ldns/compat/inet_aton.c
浏览文件 @
e0eb284e
...
...
@@ -55,7 +55,9 @@
#if !defined(HAVE_INET_ATON)
#include <sys/types.h>
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
...
...
libs/ldns/compat/inet_ntop.c
浏览文件 @
e0eb284e
...
...
@@ -21,7 +21,9 @@
#ifndef HAVE_INET_NTOP
#ifndef _MSC_VER
#include <sys/param.h>
#endif
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
...
...
libs/ldns/compat/malloc.c
浏览文件 @
e0eb284e
...
...
@@ -8,7 +8,9 @@
#include <sys/types.h>
#ifndef _MSC_VER
void
*
malloc
();
#endif
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
...
...
libs/ldns/compat/memmove.c
浏览文件 @
e0eb284e
...
...
@@ -9,6 +9,7 @@
#include <ldns/config.h>
#include <stdlib.h>
#ifndef _MSC_VER
void
*
memmove
(
void
*
dest
,
const
void
*
src
,
size_t
n
);
void
*
memmove
(
void
*
dest
,
const
void
*
src
,
size_t
n
)
...
...
@@ -41,3 +42,4 @@ void *memmove(void *dest, const void *src, size_t n)
memcpy
(
dest
,
src
,
n
);
return
dest
;
}
#endif
libs/ldns/compat/realloc.c
浏览文件 @
e0eb284e
...
...
@@ -8,8 +8,10 @@
#include <sys/types.h>
#ifndef _MSC_VER
void
*
realloc
(
void
*
,
size_t
);
void
*
malloc
(
size_t
);
#endif
/* Changes allocation to new sizes, copies over old data.
* if oldptr is NULL, does a malloc.
...
...
libs/ldns/dnssec.c
浏览文件 @
e0eb284e
...
...
@@ -14,7 +14,11 @@
#include <ldns/ldns.h>
#include <ldns/dnssec.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <time.h>
#ifdef HAVE_SSL
...
...
libs/ldns/dnssec_sign.c
浏览文件 @
e0eb284e
...
...
@@ -5,7 +5,11 @@
#include <ldns/dnssec.h>
#include <ldns/dnssec_sign.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <time.h>
#ifdef HAVE_SSL
...
...
libs/ldns/dnssec_verify.c
浏览文件 @
e0eb284e
...
...
@@ -2,7 +2,11 @@
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <time.h>
#ifdef HAVE_SSL
...
...
libs/ldns/host2str.c
浏览文件 @
e0eb284e
...
...
@@ -26,7 +26,9 @@
#include <netdb.h>
#endif
#include <time.h>
#ifndef _MSC_VER
#include <sys/time.h>
#endif
#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
...
...
libs/ldns/ldns/packet.h
浏览文件 @
e0eb284e
...
...
@@ -35,7 +35,11 @@
#include <ldns/error.h>
#include <ldns/common.h>
#include <ldns/rr.h>
#ifdef _MSC_VER
#include <time.h>
#else
#include <sys/time.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
libs/ldns/ldns/resolver.h
浏览文件 @
e0eb284e
...
...
@@ -26,7 +26,11 @@
#include <ldns/tsig.h>
#include <ldns/rdata.h>
#include <ldns/packet.h>
#ifdef _MSC_VER
#include <time.h>
#else
#include <sys/time.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
libs/ldns/net.c
浏览文件 @
e0eb284e
...
...
@@ -27,7 +27,12 @@
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef _MSC_VER
#include <compat/gettimeofday.h>
#include <time.h>
#else
#include <sys/time.h>
#endif
#include <errno.h>
#include <fcntl.h>
...
...
@@ -275,7 +280,7 @@ ldns_sock_wait(int sockfd, struct timeval timeout, int write)
fd_set
fds
;
#ifndef S_SPLINT_S
FD_ZERO
(
&
fds
);
FD_SET
(
FD_SET_T
sockfd
,
&
fds
);
FD_SET
(
sockfd
,
&
fds
);
#endif
if
(
write
)
ret
=
select
(
sockfd
+
1
,
NULL
,
&
fds
,
NULL
,
&
timeout
);
...
...
libs/ldns/packet.c
浏览文件 @
e0eb284e
...
...
@@ -14,7 +14,11 @@
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <limits.h>
#ifdef HAVE_SSL
...
...
libs/ldns/parse.c
浏览文件 @
e0eb284e
...
...
@@ -11,7 +11,11 @@
#include <ldns/ldns.h>
#include <limits.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
ldns_lookup_table
ldns_directive_types
[]
=
{
{
LDNS_DIR_TTL
,
"$TTL"
},
...
...
libs/ldns/resolver.c
浏览文件 @
e0eb284e
...
...
@@ -13,7 +13,11 @@
#include <ldns/config.h>
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
/* Access function for reading
* and setting the different Resolver
...
...
libs/ldns/rr.c
浏览文件 @
e0eb284e
...
...
@@ -11,7 +11,11 @@
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <limits.h>
#include <errno.h>
...
...
libs/ldns/rr_functions.c
浏览文件 @
e0eb284e
...
...
@@ -18,7 +18,11 @@
#include <ldns/ldns.h>
#include <limits.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
/**
* return a specific rdf
...
...
libs/ldns/sha1.c
浏览文件 @
e0eb284e
...
...
@@ -19,7 +19,11 @@
#include <ldns/config.h>
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
...
...
libs/ldns/tsig.c
浏览文件 @
e0eb284e
...
...
@@ -11,7 +11,11 @@
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#ifdef HAVE_SSL
#include <openssl/hmac.h>
...
...
libs/ldns/update.c
浏览文件 @
e0eb284e
...
...
@@ -11,7 +11,11 @@
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <stdlib.h>
#include <limits.h>
...
...
libs/ldns/util.c
浏览文件 @
e0eb284e
...
...
@@ -15,10 +15,18 @@
#include <ldns/rdata.h>
#include <ldns/rr.h>
#include <ldns/util.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#ifndef _MSC_VER
#include <sys/time.h>
#else
#include <compat/gettimeofday.h>
#endif
#include <time.h>
#ifdef HAVE_SSL
...
...
libs/ldns/wire2host.c
浏览文件 @
e0eb284e
...
...
@@ -19,7 +19,11 @@
#include <ldns/ldns.h>
/*#include <ldns/wire2host.h>*/
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <limits.h>
...
...
libs/ldns/zone.c
浏览文件 @
e0eb284e
...
...
@@ -10,7 +10,11 @@
#include <ldns/ldns.h>
#ifdef _MSC_VER
#include <string.h>
#else
#include <strings.h>
#endif
#include <limits.h>
ldns_rr
*
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论