Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
5d5ab518
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
大约 1 年 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5d5ab518
编写于
12月 19, 2012
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
差异文件
merge a few fixes by sh4rm4
上级
3c4214db
3159e2fc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
34 addition
and
1 deletion
+34
-1
arch/x86_64/bits/signal.h
arch/x86_64/bits/signal.h
+1
-1
include/arpa/inet.h
include/arpa/inet.h
+1
-0
include/link.h
include/link.h
+19
-0
include/sys/socket.h
include/sys/socket.h
+2
-0
src/network/inet_network.c
src/network/inet_network.c
+11
-0
未找到文件。
arch/x86_64/bits/signal.h
浏览文件 @
5d5ab518
...
...
@@ -20,7 +20,7 @@
#define REG_RSP 15
#define REG_RIP 16
#define REG_EFL 17
#define REG_CSG
FS
18
#define REG_CSG
SFS
18
#define REG_ERR 19
#define REG_TRAPNO 20
#define REG_OLDMASK 21
...
...
include/arpa/inet.h
浏览文件 @
5d5ab518
...
...
@@ -24,6 +24,7 @@ uint32_t ntohl(uint32_t);
uint16_t
ntohs
(
uint16_t
);
in_addr_t
inet_addr
(
const
char
*
);
in_addr_t
inet_network
(
const
char
*
);
char
*
inet_ntoa
(
struct
in_addr
);
int
inet_pton
(
int
,
const
char
*
__restrict
,
void
*
__restrict
);
const
char
*
inet_ntop
(
int
,
const
void
*
__restrict
,
char
*
__restrict
,
socklen_t
);
...
...
include/link.h
浏览文件 @
5d5ab518
...
...
@@ -3,6 +3,7 @@
#include <elf.h>
#define __NEED_size_t
#define __NEED_uint32_t
#include <bits/alltypes.h>
#if UINTPTR_MAX > 0xffffffff
...
...
@@ -11,6 +12,9 @@
#define ElfW(type) Elf32_ ## type
#endif
/* this is the same everywhere except alpha and s390 */
typedef
uint32_t
Elf_Symndx
;
struct
dl_phdr_info
{
ElfW
(
Addr
)
dlpi_addr
;
const
char
*
dlpi_name
;
...
...
@@ -22,6 +26,21 @@ struct dl_phdr_info {
void
*
dlpi_tls_data
;
};
struct
link_map
{
ElfW
(
Addr
)
l_addr
;
char
*
l_name
;
ElfW
(
Dyn
)
*
l_ld
;
struct
link_map
*
l_next
,
*
l_prev
;
};
struct
r_debug
{
int
r_version
;
struct
link_map
*
r_map
;
ElfW
(
Addr
)
r_brk
;
enum
{
RT_CONSISTENT
,
RT_ADD
,
RT_DELETE
}
r_state
;
ElfW
(
Addr
)
r_ldbase
;
};
int
dl_iterate_phdr
(
int
(
*
)(
struct
dl_phdr_info
*
,
size_t
,
void
*
),
void
*
);
#endif
include/sys/socket.h
浏览文件 @
5d5ab518
...
...
@@ -150,6 +150,8 @@ struct linger
#define SO_SNDLOWAT 19
#define SO_RCVTIMEO 20
#define SO_SNDTIMEO 21
#define SO_SNDBUFFORCE 32
#define SO_RCVBUFFORCE 33
#endif
...
...
src/network/inet_network.c
0 → 100644
浏览文件 @
5d5ab518
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "__dns.h"
in_addr_t
inet_network
(
const
char
*
p
)
{
struct
sockaddr_in
sin
;
if
(
__ipparse
(
&
sin
,
AF_INET
,
p
))
return
-
1
;
return
ntohl
(
sin
.
sin_addr
.
s_addr
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录