Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
3fe595de
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
接近 2 年 前同步成功
通知
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看板
提交
3fe595de
编写于
9月 11, 2018
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove or make static various unused __-prefixed symbols
上级
49722a8e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
17 deletion
+10
-17
src/legacy/utmpx.c
src/legacy/utmpx.c
+1
-1
src/misc/setrlimit.c
src/misc/setrlimit.c
+1
-1
src/misc/syslog.c
src/misc/syslog.c
+1
-1
src/network/dn_comp.c
src/network/dn_comp.c
+1
-4
src/network/res_query.c
src/network/res_query.c
+2
-3
src/stat/statvfs.c
src/stat/statvfs.c
+2
-2
src/string/strdup.c
src/string/strdup.c
+1
-4
src/time/__tz.c
src/time/__tz.c
+1
-1
未找到文件。
src/legacy/utmpx.c
浏览文件 @
3fe595de
...
...
@@ -36,7 +36,7 @@ void updwtmpx(const char *f, const struct utmpx *u)
{
}
int
__utmpxname
(
const
char
*
f
)
static
int
__utmpxname
(
const
char
*
f
)
{
errno
=
ENOTSUP
;
return
-
1
;
...
...
src/misc/setrlimit.c
浏览文件 @
3fe595de
...
...
@@ -6,7 +6,7 @@
#define MIN(a, b) ((a)<(b) ? (a) : (b))
#define FIX(x) do{ if ((x)>=SYSCALL_RLIM_INFINITY) (x)=RLIM_INFINITY; }while(0)
int
__setrlimit
(
int
resource
,
const
struct
rlimit
*
rlim
)
static
int
__setrlimit
(
int
resource
,
const
struct
rlimit
*
rlim
)
{
unsigned
long
k_rlim
[
2
];
struct
rlimit
tmp
;
...
...
src/misc/syslog.c
浏览文件 @
3fe595de
...
...
@@ -122,7 +122,7 @@ static void _vsyslog(int priority, const char *message, va_list ap)
}
}
void
__vsyslog
(
int
priority
,
const
char
*
message
,
va_list
ap
)
static
void
__vsyslog
(
int
priority
,
const
char
*
message
,
va_list
ap
)
{
int
cs
;
if
(
!
(
log_mask
&
LOG_MASK
(
priority
&
7
))
||
(
priority
&~
0x3ff
))
return
;
...
...
src/network/dn_comp.c
浏览文件 @
3fe595de
#include <string.h>
#include <resolv.h>
#include "libc.h"
/* RFC 1035 message compression */
...
...
@@ -55,7 +54,7 @@ static int match(int *offset, const unsigned char *base, const unsigned char *dn
}
}
int
__
dn_comp
(
const
char
*
src
,
unsigned
char
*
dst
,
int
space
,
unsigned
char
**
dnptrs
,
unsigned
char
**
lastdnptr
)
int
dn_comp
(
const
char
*
src
,
unsigned
char
*
dst
,
int
space
,
unsigned
char
**
dnptrs
,
unsigned
char
**
lastdnptr
)
{
int
i
,
j
,
n
,
m
=
0
,
offset
,
bestlen
=
0
,
bestoff
;
unsigned
char
lens
[
127
];
...
...
@@ -106,5 +105,3 @@ int __dn_comp(const char *src, unsigned char *dst, int space, unsigned char **dn
}
return
i
;
}
weak_alias
(
__dn_comp
,
dn_comp
);
src/network/res_query.c
浏览文件 @
3fe595de
...
...
@@ -2,7 +2,7 @@
#include <netdb.h>
#include "libc.h"
int
__
res_query
(
const
char
*
name
,
int
class
,
int
type
,
unsigned
char
*
dest
,
int
len
)
int
res_query
(
const
char
*
name
,
int
class
,
int
type
,
unsigned
char
*
dest
,
int
len
)
{
unsigned
char
q
[
280
];
int
ql
=
__res_mkquery
(
0
,
name
,
class
,
type
,
0
,
0
,
0
,
q
,
sizeof
q
);
...
...
@@ -10,5 +10,4 @@ int __res_query(const char *name, int class, int type, unsigned char *dest, int
return
__res_send
(
q
,
ql
,
dest
,
len
);
}
weak_alias
(
__res_query
,
res_query
);
weak_alias
(
__res_query
,
res_search
);
weak_alias
(
res_query
,
res_search
);
src/stat/statvfs.c
浏览文件 @
3fe595de
...
...
@@ -3,7 +3,7 @@
#include "syscall.h"
#include "libc.h"
int
__statfs
(
const
char
*
path
,
struct
statfs
*
buf
)
static
int
__statfs
(
const
char
*
path
,
struct
statfs
*
buf
)
{
*
buf
=
(
struct
statfs
){
0
};
#ifdef SYS_statfs64
...
...
@@ -13,7 +13,7 @@ int __statfs(const char *path, struct statfs *buf)
#endif
}
int
__fstatfs
(
int
fd
,
struct
statfs
*
buf
)
static
int
__fstatfs
(
int
fd
,
struct
statfs
*
buf
)
{
*
buf
=
(
struct
statfs
){
0
};
#ifdef SYS_fstatfs64
...
...
src/string/strdup.c
浏览文件 @
3fe595de
#include <stdlib.h>
#include <string.h>
#include "libc.h"
char
*
__
strdup
(
const
char
*
s
)
char
*
strdup
(
const
char
*
s
)
{
size_t
l
=
strlen
(
s
);
char
*
d
=
malloc
(
l
+
1
);
if
(
!
d
)
return
NULL
;
return
memcpy
(
d
,
s
,
l
+
1
);
}
weak_alias
(
__strdup
,
strdup
);
src/time/__tz.c
浏览文件 @
3fe595de
...
...
@@ -398,7 +398,7 @@ dst:
UNLOCK
(
lock
);
}
void
__tzset
()
static
void
__tzset
()
{
LOCK
(
lock
);
do_tzset
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录