Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
13cd9695
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看板
提交
13cd9695
编写于
9月 13, 2011
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix various errors in function signatures/prototypes found by nsz
上级
5e9deea0
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
16 deletion
+19
-16
include/aio.h
include/aio.h
+2
-2
include/spawn.h
include/spawn.h
+2
-2
include/time.h
include/time.h
+1
-1
include/unistd.h
include/unistd.h
+3
-3
src/aio/aio_suspend.c
src/aio/aio_suspend.c
+1
-1
src/process/posix_spawn.c
src/process/posix_spawn.c
+5
-3
src/process/posix_spawnp.c
src/process/posix_spawnp.c
+3
-2
src/unistd/readlink.c
src/unistd/readlink.c
+1
-1
src/unistd/readlinkat.c
src/unistd/readlinkat.c
+1
-1
未找到文件。
include/aio.h
浏览文件 @
13cd9695
...
...
@@ -43,10 +43,10 @@ struct aiocb {
ssize_t
aio_read
(
struct
aiocb
*
);
ssize_t
aio_write
(
struct
aiocb
*
);
int
aio_error
(
struct
aiocb
*
);
int
aio_error
(
const
struct
aiocb
*
);
ssize_t
aio_return
(
struct
aiocb
*
);
int
aio_cancel
(
int
,
struct
aiocb
*
);
int
aio_suspend
(
struct
aiocb
*
const
[],
int
,
const
struct
timespec
*
);
int
aio_suspend
(
const
struct
aiocb
*
const
[],
int
,
const
struct
timespec
*
);
int
aio_fsync
(
int
,
struct
aiocb
*
);
int
lio_listio
(
int
,
struct
aiocb
*
const
[],
int
,
struct
sigevent
*
);
...
...
include/spawn.h
浏览文件 @
13cd9695
...
...
@@ -34,9 +34,9 @@ typedef struct {
}
posix_spawn_file_actions_t
;
int
posix_spawn
(
pid_t
*
,
const
char
*
,
const
posix_spawn_file_actions_t
*
,
const
posix_spawnattr_t
*
,
char
*
*
,
char
**
);
const
posix_spawnattr_t
*
,
char
*
const
[],
char
*
const
[]
);
int
posix_spawnp
(
pid_t
*
,
const
char
*
,
const
posix_spawn_file_actions_t
*
,
const
posix_spawnattr_t
*
,
char
*
*
,
char
**
);
const
posix_spawnattr_t
*
,
char
*
const
[],
char
*
const
[]
);
int
posix_spawnattr_init
(
posix_spawnattr_t
*
);
int
posix_spawnattr_destroy
(
posix_spawnattr_t
*
);
...
...
include/time.h
浏览文件 @
13cd9695
...
...
@@ -102,7 +102,7 @@ extern int daylight;
extern
long
timezone
;
extern
char
*
tzname
[
2
];
extern
int
getdate_err
;
extern
struct
tm
*
getdate
(
const
char
*
);
struct
tm
*
getdate
(
const
char
*
);
#endif
...
...
include/unistd.h
浏览文件 @
13cd9695
...
...
@@ -55,8 +55,8 @@ int link(const char *, const char *);
int
linkat
(
int
,
const
char
*
,
int
,
const
char
*
,
int
);
int
symlink
(
const
char
*
,
const
char
*
);
int
symlinkat
(
const
char
*
,
int
,
const
char
*
);
in
t
readlink
(
const
char
*
,
char
*
,
size_t
);
in
t
readlinkat
(
int
,
const
char
*
,
char
*
,
size_t
);
ssize_
t
readlink
(
const
char
*
,
char
*
,
size_t
);
ssize_
t
readlinkat
(
int
,
const
char
*
,
char
*
,
size_t
);
int
unlink
(
const
char
*
);
int
unlinkat
(
int
,
const
char
*
,
int
);
int
rmdir
(
const
char
*
);
...
...
@@ -134,7 +134,7 @@ size_t confstr(int, char *, size_t);
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
int
lockf
(
int
,
int
,
off_t
);
in
t
setpgrp
(
void
);
pid_
t
setpgrp
(
void
);
char
*
crypt
(
const
char
*
,
const
char
*
);
void
encrypt
(
char
*
,
int
);
void
swab
(
const
void
*
,
void
*
,
ssize_t
);
...
...
src/aio/aio_suspend.c
浏览文件 @
13cd9695
...
...
@@ -16,7 +16,7 @@ void __aio_wake(void)
__wake
(
&
seq
,
-
1
,
1
);
}
int
aio_suspend
(
struct
aiocb
*
const
cbs
[],
int
cnt
,
const
struct
timespec
*
ts
)
int
aio_suspend
(
const
struct
aiocb
*
const
cbs
[],
int
cnt
,
const
struct
timespec
*
ts
)
{
int
i
,
last
,
first
=
1
,
ret
=
0
;
struct
timespec
at
;
...
...
src/process/posix_spawn.c
浏览文件 @
13cd9695
...
...
@@ -11,7 +11,8 @@ extern char **environ;
int
__posix_spawnx
(
pid_t
*
res
,
const
char
*
path
,
int
(
*
exec
)(
const
char
*
,
char
*
const
*
),
const
posix_spawn_file_actions_t
*
fa
,
const
posix_spawnattr_t
*
attr
,
char
**
argv
,
char
**
envp
)
const
posix_spawnattr_t
*
attr
,
char
*
const
argv
[],
char
*
const
envp
[])
{
pid_t
pid
;
sigset_t
oldmask
;
...
...
@@ -81,7 +82,7 @@ int __posix_spawnx(pid_t *res, const char *path,
sigprocmask
(
SIG_SETMASK
,
(
attr
->
__flags
&
POSIX_SPAWN_SETSIGMASK
)
?
&
attr
->
__mask
:
&
oldmask
,
0
);
if
(
envp
)
environ
=
envp
;
if
(
envp
)
environ
=
(
char
**
)
envp
;
exec
(
path
,
argv
);
_exit
(
127
);
...
...
@@ -90,7 +91,8 @@ int __posix_spawnx(pid_t *res, const char *path,
int
posix_spawn
(
pid_t
*
res
,
const
char
*
path
,
const
posix_spawn_file_actions_t
*
fa
,
const
posix_spawnattr_t
*
attr
,
char
**
argv
,
char
**
envp
)
const
posix_spawnattr_t
*
attr
,
char
*
const
argv
[],
char
*
const
envp
[])
{
return
__posix_spawnx
(
res
,
path
,
execv
,
fa
,
attr
,
argv
,
envp
);
}
src/process/posix_spawnp.c
浏览文件 @
13cd9695
...
...
@@ -4,11 +4,12 @@
int
__posix_spawnx
(
pid_t
*
,
const
char
*
,
int
(
*
)(
const
char
*
,
char
*
const
*
),
const
posix_spawn_file_actions_t
*
,
const
posix_spawnattr_t
*
,
char
*
*
,
char
**
);
const
posix_spawnattr_t
*
,
char
*
const
[],
char
*
const
[]
);
int
posix_spawnp
(
pid_t
*
res
,
const
char
*
file
,
const
posix_spawn_file_actions_t
*
fa
,
const
posix_spawnattr_t
*
attr
,
char
**
argv
,
char
**
envp
)
const
posix_spawnattr_t
*
attr
,
char
*
const
argv
[],
char
*
const
envp
[])
{
return
__posix_spawnx
(
res
,
file
,
execvp
,
fa
,
attr
,
argv
,
envp
);
}
src/unistd/readlink.c
浏览文件 @
13cd9695
#include <unistd.h>
#include "syscall.h"
in
t
readlink
(
const
char
*
path
,
char
*
buf
,
size_t
bufsize
)
ssize_
t
readlink
(
const
char
*
path
,
char
*
buf
,
size_t
bufsize
)
{
return
syscall
(
SYS_readlink
,
path
,
buf
,
bufsize
);
}
src/unistd/readlinkat.c
浏览文件 @
13cd9695
#include <unistd.h>
#include "syscall.h"
in
t
readlinkat
(
int
fd
,
const
char
*
path
,
char
*
buf
,
size_t
bufsize
)
ssize_
t
readlinkat
(
int
fd
,
const
char
*
path
,
char
*
buf
,
size_t
bufsize
)
{
return
syscall
(
SYS_readlinkat
,
fd
,
path
,
buf
,
bufsize
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录