Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
3ed8c9f2
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看板
提交
3ed8c9f2
编写于
11月 10, 2011
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix all missing instances of __cplusplus checks/extern "C" in headers
patch by Arvid Picciani (aep)
上级
26120950
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
166 addition
and
1 deletion
+166
-1
include/alloca.h
include/alloca.h
+8
-0
include/arpa/inet.h
include/arpa/inet.h
+8
-0
include/ctype.h
include/ctype.h
+8
-0
include/ftw.h
include/ftw.h
+8
-0
include/math.h
include/math.h
+8
-0
include/net/ethernet.h
include/net/ethernet.h
+8
-0
include/net/if.h
include/net/if.h
+7
-1
include/net/route.h
include/net/route.h
+8
-0
include/netinet/in.h
include/netinet/in.h
+8
-0
include/sys/mount.h
include/sys/mount.h
+8
-0
include/sys/msg.h
include/sys/msg.h
+8
-0
include/sys/resource.h
include/sys/resource.h
+8
-0
include/sys/shm.h
include/sys/shm.h
+8
-0
include/sys/statfs.h
include/sys/statfs.h
+8
-0
include/sys/statvfs.h
include/sys/statvfs.h
+6
-0
include/sys/swap.h
include/sys/swap.h
+9
-0
include/sys/sysctl.h
include/sys/sysctl.h
+8
-0
include/sys/sysinfo.h
include/sys/sysinfo.h
+8
-0
include/sys/times.h
include/sys/times.h
+9
-0
include/sys/uio.h
include/sys/uio.h
+8
-0
include/sys/utsname.h
include/sys/utsname.h
+7
-0
未找到文件。
include/alloca.h
浏览文件 @
3ed8c9f2
#ifndef _ALLOCA_H
#define _ALLOCA_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_size_t
#include <bits/alltypes.h>
void
*
alloca
(
size_t
);
#ifdef __cplusplus
}
#endif
#endif
include/arpa/inet.h
浏览文件 @
3ed8c9f2
#ifndef _ARPA_INET_H
#define _ARPA_INET_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include <netinet/in.h>
#include <inttypes.h>
...
...
@@ -30,4 +34,8 @@ int inet_aton (const char *, struct in_addr *); /* nonstandard but widely used *
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
#ifdef __cplusplus
}
#endif
#endif
include/ctype.h
浏览文件 @
3ed8c9f2
#ifndef _CTYPE_H
#define _CTYPE_H
#ifdef __cplusplus
extern
"C"
{
#endif
int
isalnum
(
int
);
int
isalpha
(
int
);
int
isblank
(
int
);
...
...
@@ -53,4 +57,8 @@ int toascii(int);
#endif
#ifdef __cplusplus
}
#endif
#endif
include/ftw.h
浏览文件 @
3ed8c9f2
#ifndef _FTW_H
#define _FTW_H
#ifdef __cplusplus
extern
"C"
{
#endif
/* Normally we do not nest header includes. However useless bloat
* like ftw may be treated as a special case. Otherwise we would
* have to deal with duplicating all the stat.h mess. */
...
...
@@ -28,4 +32,8 @@ struct FTW
int
ftw
(
const
char
*
,
int
(
*
)(
const
char
*
,
const
struct
stat
*
,
int
),
int
);
int
nftw
(
const
char
*
,
int
(
*
)(
const
char
*
,
const
struct
stat
*
,
int
,
struct
FTW
*
),
int
,
int
);
#ifdef __cplusplus
}
#endif
#endif
include/math.h
浏览文件 @
3ed8c9f2
#ifndef _MATH_H
#define _MATH_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED___uint16_t
#define __NEED___uint32_t
#define __NEED___uint64_t
...
...
@@ -317,4 +321,8 @@ extern int signgam;
double
scalb
(
double
,
double
);
#endif
#ifdef __cplusplus
}
#endif
#endif
include/net/ethernet.h
浏览文件 @
3ed8c9f2
#ifndef __NET_ETHERNET_H
#define __NET_ETHERNET_H 1
#ifdef __cplusplus
extern
"C"
{
#endif
#include <stdint.h>
#include <sys/types.h>
#include <netinet/if_ether.h>
...
...
@@ -44,4 +48,8 @@ struct ether_header {
#define ETHERMTU ETH_DATA_LEN
#define ETHERMIN (ETHER_MIN_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
#ifdef __cplusplus
}
#endif
#endif
include/net/if.h
浏览文件 @
3ed8c9f2
#ifndef _NET_IF_H
#define _NET_IF_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define IF_NAMESIZE 16
struct
if_nameindex
...
...
@@ -117,6 +121,8 @@ struct ifconf {
#endif
#ifdef __cplusplus
}
#endif
#endif
include/net/route.h
浏览文件 @
3ed8c9f2
#ifndef _NET_ROUTE_H
#define _NET_ROUTE_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include <stdint.h>
#include <sys/socket.h>
#include <sys/types.h>
...
...
@@ -113,4 +117,8 @@ struct in6_rtmsg {
#define RTMSG_AR_FAILED 0x51
#ifdef __cplusplus
}
#endif
#endif
include/netinet/in.h
浏览文件 @
3ed8c9f2
#ifndef _NETINET_IN_H
#define _NETINET_IN_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_in_addr_t
#define __NEED_in_port_t
#define __NEED_sa_family_t
...
...
@@ -300,4 +304,8 @@ struct ip6_mtuinfo
#define IPV6_RTHDR_TYPE_0 0
#ifdef __cplusplus
}
#endif
#endif
include/sys/mount.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_MOUNT_H
#define _SYS_MOUNT_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include <sys/ioctl.h>
#define BLKROSET _IO(0x12, 93)
...
...
@@ -43,4 +47,8 @@ int mount(const char *, const char *, const char *, unsigned long, const void *)
int
umount
(
const
char
*
);
int
umount2
(
const
char
*
,
int
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/msg.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_MSG_H
#define _SYS_MSG_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include <sys/ipc.h>
#define __NEED_pid_t
...
...
@@ -33,4 +37,8 @@ int msgget (key_t, int);
ssize_t
msgrcv
(
int
,
void
*
,
size_t
,
long
,
int
);
int
msgsnd
(
int
,
const
void
*
,
size_t
,
int
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/resource.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_RESOURCE_H
#define _SYS_RESOURCE_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_id_t
#define __NEED_time_t
#define __NEED_struct_timeval
...
...
@@ -76,4 +80,8 @@ int setpriority (int, id_t, int);
#define RLIM_NLIMITS RLIMIT_NLIMITS
#ifdef __cplusplus
}
#endif
#endif
include/sys/shm.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_SHM_H
#define _SYS_SHM_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_time_t
#define __NEED_size_t
#define __NEED_pid_t
...
...
@@ -43,4 +47,8 @@ int shmctl(int, int, struct shmid_ds *);
int
shmdt
(
const
void
*
);
int
shmget
(
key_t
,
size_t
,
int
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/statfs.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_STATFS_H
#define _SYS_STATFS_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include <sys/statvfs.h>
typedef
struct
{
...
...
@@ -12,4 +16,8 @@ typedef struct {
int
statfs
(
const
char
*
,
struct
statfs
*
);
int
fstatfs
(
int
,
struct
statfs
*
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/statvfs.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_STATVFS_H
#define _SYS_STATVFS_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_fsblkcnt_t
#define __NEED_fsfilcnt_t
...
...
@@ -38,5 +41,8 @@ int fstatvfs (int, struct statvfs *);
#define ST_NOATIME 1024
#define ST_NODIRATIME 2048
#ifdef __cplusplus
}
#endif
#endif
include/sys/swap.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_SWAP_H
#define _SYS_SWAP_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define SWAP_FLAG_PREFER 0x8000
#define SWAP_FLAG_PRIO_MASK 0x7fff
#define SWAP_FLAG_PRIO_SHIFT 0
...
...
@@ -8,4 +13,8 @@
int
swapon
(
const
char
*
,
int
);
int
swapoff
(
const
char
*
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/sysctl.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_SYSCTL_H
#define _SYS_SYSCTL_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_size_t
#include <bits/alltypes.h>
int
sysctl
(
int
*
,
int
,
void
*
,
size_t
*
,
void
*
,
size_t
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/sysinfo.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_SYSINFO_H
#define _SYS_SYSINFO_H
#ifdef __cplusplus
extern
"C"
{
#endif
/* ?? */
#define SI_LOAD_SHIFT 16
...
...
@@ -26,4 +30,8 @@ int get_nprocs (void);
long
long
get_phys_pages
(
void
);
long
long
get_avphys_pages
(
void
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/times.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_TIMES_H
#define _SYS_TIMES_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_clock_t
#include <bits/alltypes.h>
...
...
@@ -14,4 +18,9 @@ struct tms
clock_t
times
(
struct
tms
*
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/uio.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_UIO_H
#define _SYS_UIO_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define __NEED_size_t
#define __NEED_ssize_t
#define __NEED_struct_iovec
...
...
@@ -10,4 +14,8 @@
ssize_t
readv
(
int
,
const
struct
iovec
*
,
int
);
ssize_t
writev
(
int
,
const
struct
iovec
*
,
int
);
#ifdef __cplusplus
}
#endif
#endif
include/sys/utsname.h
浏览文件 @
3ed8c9f2
#ifndef _SYS_UTSNAME_H
#define _SYS_UTSNAME_H
#ifdef __cplusplus
extern
"C"
{
#endif
struct
utsname
{
char
sysname
[
65
];
...
...
@@ -17,5 +21,8 @@ struct utsname
int
uname
(
struct
utsname
*
);
#ifdef __cplusplus
}
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录