Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
562879c8
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看板
未验证
提交
562879c8
编写于
3月 04, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 04, 2023
浏览文件
操作
浏览文件
下载
差异文件
!833 M核musl适配升级
Merge pull request !833 from wangchen/0228
上级
b3a5caa9
c280bb79
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
121 addition
and
11 deletion
+121
-11
porting/liteos_m/kernel/include/complex.h
porting/liteos_m/kernel/include/complex.h
+0
-1
porting/liteos_m/kernel/include/fenv.h
porting/liteos_m/kernel/include/fenv.h
+0
-1
porting/liteos_m/kernel/include/pthread.h
porting/liteos_m/kernel/include/pthread.h
+5
-1
porting/liteos_m/kernel/include/sched.h
porting/liteos_m/kernel/include/sched.h
+1
-0
porting/liteos_m/kernel/include/signal.h
porting/liteos_m/kernel/include/signal.h
+9
-0
porting/liteos_m/kernel/include/stdlib.h
porting/liteos_m/kernel/include/stdlib.h
+2
-0
porting/liteos_m/kernel/include/stdnoreturn.h
porting/liteos_m/kernel/include/stdnoreturn.h
+0
-2
porting/liteos_m/kernel/include/sys/prctl.h
porting/liteos_m/kernel/include/sys/prctl.h
+19
-0
porting/liteos_m/kernel/include/time.h
porting/liteos_m/kernel/include/time.h
+1
-0
porting/liteos_m/kernel/include/unistd.h
porting/liteos_m/kernel/include/unistd.h
+4
-0
porting/liteos_m_iccarm/kernel/include/arpa/tftp.h
porting/liteos_m_iccarm/kernel/include/arpa/tftp.h
+1
-0
porting/liteos_m_iccarm/kernel/include/pthread.h
porting/liteos_m_iccarm/kernel/include/pthread.h
+5
-1
porting/liteos_m_iccarm/kernel/include/sched.h
porting/liteos_m_iccarm/kernel/include/sched.h
+1
-0
porting/liteos_m_iccarm/kernel/include/signal.h
porting/liteos_m_iccarm/kernel/include/signal.h
+9
-0
porting/liteos_m_iccarm/kernel/include/sys/prctl.h
porting/liteos_m_iccarm/kernel/include/sys/prctl.h
+19
-0
porting/liteos_m_iccarm/kernel/include/unistd.h
porting/liteos_m_iccarm/kernel/include/unistd.h
+4
-0
porting/uniproton/kernel/include/complex.h
porting/uniproton/kernel/include/complex.h
+0
-1
porting/uniproton/kernel/include/fenv.h
porting/uniproton/kernel/include/fenv.h
+0
-1
porting/uniproton/kernel/include/pthread.h
porting/uniproton/kernel/include/pthread.h
+5
-1
porting/uniproton/kernel/include/sched.h
porting/uniproton/kernel/include/sched.h
+1
-0
porting/uniproton/kernel/include/signal.h
porting/uniproton/kernel/include/signal.h
+9
-0
porting/uniproton/kernel/include/stdlib.h
porting/uniproton/kernel/include/stdlib.h
+2
-0
porting/uniproton/kernel/include/stdnoreturn.h
porting/uniproton/kernel/include/stdnoreturn.h
+0
-2
porting/uniproton/kernel/include/sys/prctl.h
porting/uniproton/kernel/include/sys/prctl.h
+19
-0
porting/uniproton/kernel/include/time.h
porting/uniproton/kernel/include/time.h
+1
-0
porting/uniproton/kernel/include/unistd.h
porting/uniproton/kernel/include/unistd.h
+4
-0
未找到文件。
porting/liteos_m/kernel/include/complex.h
浏览文件 @
562879c8
...
...
@@ -130,5 +130,4 @@ long double creall(long double complex);
#ifdef __cplusplus
}
#endif
#endif
porting/liteos_m/kernel/include/fenv.h
浏览文件 @
562879c8
...
...
@@ -24,6 +24,5 @@ int feupdateenv(const fenv_t *);
#ifdef __cplusplus
}
#endif
#endif
porting/liteos_m/kernel/include/pthread.h
浏览文件 @
562879c8
...
...
@@ -26,6 +26,7 @@ extern "C" {
#define __NEED_size_t
#include <bits/alltypes.h>
#include <sched.h>
#include <time.h>
...
...
@@ -80,6 +81,9 @@ extern "C" {
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
#define PTHREAD_NULL ((pthread_t)0)
int
pthread_create
(
pthread_t
*
__restrict
,
const
pthread_attr_t
*
__restrict
,
void
*
(
*
)(
void
*
),
void
*
__restrict
);
int
pthread_detach
(
pthread_t
);
void
pthread_exit
(
void
*
);
...
...
@@ -220,8 +224,8 @@ struct cpu_set_t;
int
pthread_getaffinity_np
(
pthread_t
,
size_t
,
struct
cpu_set_t
*
);
int
pthread_setaffinity_np
(
pthread_t
,
size_t
,
const
struct
cpu_set_t
*
);
int
pthread_getattr_np
(
pthread_t
,
pthread_attr_t
*
);
int
pthread_getname_np
(
pthread_t
,
char
*
,
size_t
);
int
pthread_setname_np
(
pthread_t
,
const
char
*
);
int
pthread_getname_np
(
pthread_t
,
char
*
,
size_t
);
int
pthread_getattr_default_np
(
pthread_attr_t
*
);
int
pthread_setattr_default_np
(
const
pthread_attr_t
*
);
int
pthread_tryjoin_np
(
pthread_t
,
void
**
);
...
...
porting/liteos_m/kernel/include/sched.h
浏览文件 @
562879c8
...
...
@@ -36,6 +36,7 @@ int sched_yield(void);
#ifdef _GNU_SOURCE
#define CSIGNAL 0x000000ff
#define CLONE_NEWTIME 0x00000080
#define CLONE_VM 0x00000100
#define CLONE_FS 0x00000200
#define CLONE_FILES 0x00000400
...
...
porting/liteos_m/kernel/include/signal.h
浏览文件 @
562879c8
...
...
@@ -75,6 +75,8 @@ typedef struct sigaltstack stack_t;
#define SEGV_ACCERR 2
#define SEGV_BNDERR 3
#define SEGV_PKUERR 4
#define SEGV_MTEAERR 8
#define SEGV_MTESERR 9
#define BUS_ADRALN 1
#define BUS_ADRERR 2
...
...
@@ -176,6 +178,9 @@ struct sigaction {
#define sa_handler __sa_handler.sa_handler
#define sa_sigaction __sa_handler.sa_sigaction
#define SA_UNSUPPORTED 0x00000400
#define SA_EXPOSE_TAGBITS 0x00000800
struct
sigevent
{
union
sigval
sigev_value
;
int
sigev_signo
;
...
...
@@ -188,6 +193,7 @@ struct sigevent {
#define SIGEV_SIGNAL 0
#define SIGEV_NONE 1
#define SIGEV_THREAD 2
#define SIGEV_THREAD_ID 4
int
__libc_current_sigrtmin
(
void
);
int
__libc_current_sigrtmax
(
void
);
...
...
@@ -249,6 +255,9 @@ void (*sigset(int, void (*)(int)))(int);
#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
#define NSIG _NSIG
typedef
void
(
*
sig_t
)(
int
);
#define SYS_SECCOMP 1
#define SYS_USER_DISPATCH 2
#endif
#ifdef _GNU_SOURCE
...
...
porting/liteos_m/kernel/include/stdlib.h
浏览文件 @
562879c8
...
...
@@ -146,6 +146,8 @@ int getloadavg(double *, int);
int
clearenv
(
void
);
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFCONTINUED(s) ((s) == 0xffff)
void
*
reallocarray
(
void
*
,
size_t
,
size_t
);
void
qsort_r
(
void
*
,
size_t
,
size_t
,
int
(
*
)(
const
void
*
,
const
void
*
,
void
*
),
void
*
);
#endif
#ifdef _GNU_SOURCE
...
...
porting/liteos_m/kernel/include/stdnoreturn.h
浏览文件 @
562879c8
#ifndef _STDNORETURN_H
#define _STDNORETURN_H
#ifndef __cplusplus
#include <features.h>
#define noreturn _Noreturn
#endif
#endif
porting/liteos_m/kernel/include/sys/prctl.h
浏览文件 @
562879c8
...
...
@@ -157,6 +157,25 @@ struct prctl_mm_map {
#define PR_SET_TAGGED_ADDR_CTRL 55
#define PR_GET_TAGGED_ADDR_CTRL 56
#define PR_TAGGED_ADDR_ENABLE (1UL << 0)
#define PR_MTE_TCF_SHIFT 1
#define PR_MTE_TCF_NONE (0UL << 1)
#define PR_MTE_TCF_SYNC (1UL << 1)
#define PR_MTE_TCF_ASYNC (2UL << 1)
#define PR_MTE_TCF_MASK (3UL << 1)
#define PR_MTE_TAG_SHIFT 3
#define PR_MTE_TAG_MASK (0xffffUL << 3)
#define PR_SET_IO_FLUSHER 57
#define PR_GET_IO_FLUSHER 58
#define PR_SET_SYSCALL_USER_DISPATCH 59
#define PR_SYS_DISPATCH_OFF 0
#define PR_SYS_DISPATCH_ON 1
#define SYSCALL_DISPATCH_FILTER_ALLOW 0
#define SYSCALL_DISPATCH_FILTER_BLOCK 1
#define PR_PAC_SET_ENABLED_KEYS 60
#define PR_PAC_GET_ENABLED_KEYS 61
int
prctl
(
int
,
...);
...
...
porting/liteos_m/kernel/include/time.h
浏览文件 @
562879c8
...
...
@@ -163,4 +163,5 @@ __REDIR(timegm, __timegm_time64);
}
#endif
#endif
porting/liteos_m/kernel/include/unistd.h
浏览文件 @
562879c8
...
...
@@ -16,6 +16,8 @@ extern "C" {
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_DATA 3
#define SEEK_HOLE 4
#define __NEED_size_t
#define __NEED_ssize_t
...
...
@@ -78,6 +80,7 @@ unsigned sleep(unsigned);
int
pause
(
void
);
pid_t
fork
(
void
);
pid_t
_Fork
(
void
);
int
execve
(
const
char
*
,
char
*
const
[],
char
*
const
[]);
int
execv
(
const
char
*
,
char
*
const
[]);
int
execle
(
const
char
*
,
const
char
*
,
...);
...
...
@@ -186,6 +189,7 @@ int syncfs(int);
int
euidaccess
(
const
char
*
,
int
);
int
eaccess
(
const
char
*
,
int
);
ssize_t
copy_file_range
(
int
,
off_t
*
,
int
,
off_t
*
,
size_t
,
unsigned
);
pid_t
gettid
(
void
);
#endif
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
...
...
porting/liteos_m_iccarm/kernel/include/arpa/tftp.h
浏览文件 @
562879c8
...
...
@@ -28,3 +28,4 @@ struct tftphdr {
#define EEXISTS 6
#define ENOUSER 7
#endif
porting/liteos_m_iccarm/kernel/include/pthread.h
浏览文件 @
562879c8
...
...
@@ -26,6 +26,7 @@ extern "C" {
#define __NEED_size_t
#include <bits/alltypes.h>
#include <sched.h>
#include <time.h>
...
...
@@ -80,6 +81,9 @@ extern "C" {
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
#define PTHREAD_NULL ((pthread_t)0)
int
pthread_create
(
pthread_t
*
__restrict
,
const
pthread_attr_t
*
__restrict
,
void
*
(
*
)(
void
*
),
void
*
__restrict
);
int
pthread_detach
(
pthread_t
);
void
pthread_exit
(
void
*
);
...
...
@@ -220,8 +224,8 @@ struct cpu_set_t;
int
pthread_getaffinity_np
(
pthread_t
,
size_t
,
struct
cpu_set_t
*
);
int
pthread_setaffinity_np
(
pthread_t
,
size_t
,
const
struct
cpu_set_t
*
);
int
pthread_getattr_np
(
pthread_t
,
pthread_attr_t
*
);
int
pthread_getname_np
(
pthread_t
,
char
*
,
size_t
);
int
pthread_setname_np
(
pthread_t
,
const
char
*
);
int
pthread_getname_np
(
pthread_t
,
char
*
,
size_t
);
int
pthread_getattr_default_np
(
pthread_attr_t
*
);
int
pthread_setattr_default_np
(
const
pthread_attr_t
*
);
int
pthread_tryjoin_np
(
pthread_t
,
void
**
);
...
...
porting/liteos_m_iccarm/kernel/include/sched.h
浏览文件 @
562879c8
...
...
@@ -36,6 +36,7 @@ int sched_yield(void);
#ifdef _GNU_SOURCE
#define CSIGNAL 0x000000ff
#define CLONE_NEWTIME 0x00000080
#define CLONE_VM 0x00000100
#define CLONE_FS 0x00000200
#define CLONE_FILES 0x00000400
...
...
porting/liteos_m_iccarm/kernel/include/signal.h
浏览文件 @
562879c8
...
...
@@ -75,6 +75,8 @@ typedef struct sigaltstack stack_t;
#define SEGV_ACCERR 2
#define SEGV_BNDERR 3
#define SEGV_PKUERR 4
#define SEGV_MTEAERR 8
#define SEGV_MTESERR 9
#define BUS_ADRALN 1
#define BUS_ADRERR 2
...
...
@@ -176,6 +178,9 @@ struct sigaction {
#define sa_handler __sa_handler.sa_handler
#define sa_sigaction __sa_handler.sa_sigaction
#define SA_UNSUPPORTED 0x00000400
#define SA_EXPOSE_TAGBITS 0x00000800
struct
sigevent
{
union
sigval
sigev_value
;
int
sigev_signo
;
...
...
@@ -188,6 +193,7 @@ struct sigevent {
#define SIGEV_SIGNAL 0
#define SIGEV_NONE 1
#define SIGEV_THREAD 2
#define SIGEV_THREAD_ID 4
int
__libc_current_sigrtmin
(
void
);
int
__libc_current_sigrtmax
(
void
);
...
...
@@ -249,6 +255,9 @@ void (*sigset(int, void (*)(int)))(int);
#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
#define NSIG _NSIG
typedef
void
(
*
sig_t
)(
int
);
#define SYS_SECCOMP 1
#define SYS_USER_DISPATCH 2
#endif
#ifdef _GNU_SOURCE
...
...
porting/liteos_m_iccarm/kernel/include/sys/prctl.h
浏览文件 @
562879c8
...
...
@@ -157,6 +157,25 @@ struct prctl_mm_map {
#define PR_SET_TAGGED_ADDR_CTRL 55
#define PR_GET_TAGGED_ADDR_CTRL 56
#define PR_TAGGED_ADDR_ENABLE (1UL << 0)
#define PR_MTE_TCF_SHIFT 1
#define PR_MTE_TCF_NONE (0UL << 1)
#define PR_MTE_TCF_SYNC (1UL << 1)
#define PR_MTE_TCF_ASYNC (2UL << 1)
#define PR_MTE_TCF_MASK (3UL << 1)
#define PR_MTE_TAG_SHIFT 3
#define PR_MTE_TAG_MASK (0xffffUL << 3)
#define PR_SET_IO_FLUSHER 57
#define PR_GET_IO_FLUSHER 58
#define PR_SET_SYSCALL_USER_DISPATCH 59
#define PR_SYS_DISPATCH_OFF 0
#define PR_SYS_DISPATCH_ON 1
#define SYSCALL_DISPATCH_FILTER_ALLOW 0
#define SYSCALL_DISPATCH_FILTER_BLOCK 1
#define PR_PAC_SET_ENABLED_KEYS 60
#define PR_PAC_GET_ENABLED_KEYS 61
int
prctl
(
int
,
...);
...
...
porting/liteos_m_iccarm/kernel/include/unistd.h
浏览文件 @
562879c8
...
...
@@ -16,6 +16,8 @@ extern "C" {
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_DATA 3
#define SEEK_HOLE 4
#define __NEED_size_t
#define __NEED_ssize_t
...
...
@@ -78,6 +80,7 @@ unsigned sleep(unsigned);
int
pause
(
void
);
pid_t
fork
(
void
);
pid_t
_Fork
(
void
);
int
execve
(
const
char
*
,
char
*
const
[],
char
*
const
[]);
int
execv
(
const
char
*
,
char
*
const
[]);
int
execle
(
const
char
*
,
const
char
*
,
...);
...
...
@@ -186,6 +189,7 @@ int syncfs(int);
int
euidaccess
(
const
char
*
,
int
);
int
eaccess
(
const
char
*
,
int
);
ssize_t
copy_file_range
(
int
,
off_t
*
,
int
,
off_t
*
,
size_t
,
unsigned
);
pid_t
gettid
(
void
);
#endif
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
...
...
porting/uniproton/kernel/include/complex.h
浏览文件 @
562879c8
...
...
@@ -130,5 +130,4 @@ long double creall(long double complex);
#ifdef __cplusplus
}
#endif
#endif
porting/uniproton/kernel/include/fenv.h
浏览文件 @
562879c8
...
...
@@ -24,6 +24,5 @@ int feupdateenv(const fenv_t *);
#ifdef __cplusplus
}
#endif
#endif
porting/uniproton/kernel/include/pthread.h
浏览文件 @
562879c8
...
...
@@ -26,6 +26,7 @@ extern "C" {
#define __NEED_size_t
#include <bits/alltypes.h>
#include <sched.h>
#include <time.h>
...
...
@@ -80,6 +81,9 @@ extern "C" {
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
#define PTHREAD_NULL ((pthread_t)0)
int
pthread_create
(
pthread_t
*
__restrict
,
const
pthread_attr_t
*
__restrict
,
void
*
(
*
)(
void
*
),
void
*
__restrict
);
int
pthread_detach
(
pthread_t
);
void
pthread_exit
(
void
*
);
...
...
@@ -220,8 +224,8 @@ struct cpu_set_t;
int
pthread_getaffinity_np
(
pthread_t
,
size_t
,
struct
cpu_set_t
*
);
int
pthread_setaffinity_np
(
pthread_t
,
size_t
,
const
struct
cpu_set_t
*
);
int
pthread_getattr_np
(
pthread_t
,
pthread_attr_t
*
);
int
pthread_getname_np
(
pthread_t
,
char
*
,
size_t
);
int
pthread_setname_np
(
pthread_t
,
const
char
*
);
int
pthread_getname_np
(
pthread_t
,
char
*
,
size_t
);
int
pthread_getattr_default_np
(
pthread_attr_t
*
);
int
pthread_setattr_default_np
(
const
pthread_attr_t
*
);
int
pthread_tryjoin_np
(
pthread_t
,
void
**
);
...
...
porting/uniproton/kernel/include/sched.h
浏览文件 @
562879c8
...
...
@@ -36,6 +36,7 @@ int sched_yield(void);
#ifdef _GNU_SOURCE
#define CSIGNAL 0x000000ff
#define CLONE_NEWTIME 0x00000080
#define CLONE_VM 0x00000100
#define CLONE_FS 0x00000200
#define CLONE_FILES 0x00000400
...
...
porting/uniproton/kernel/include/signal.h
浏览文件 @
562879c8
...
...
@@ -75,6 +75,8 @@ typedef struct sigaltstack stack_t;
#define SEGV_ACCERR 2
#define SEGV_BNDERR 3
#define SEGV_PKUERR 4
#define SEGV_MTEAERR 8
#define SEGV_MTESERR 9
#define BUS_ADRALN 1
#define BUS_ADRERR 2
...
...
@@ -176,6 +178,9 @@ struct sigaction {
#define sa_handler __sa_handler.sa_handler
#define sa_sigaction __sa_handler.sa_sigaction
#define SA_UNSUPPORTED 0x00000400
#define SA_EXPOSE_TAGBITS 0x00000800
struct
sigevent
{
union
sigval
sigev_value
;
int
sigev_signo
;
...
...
@@ -188,6 +193,7 @@ struct sigevent {
#define SIGEV_SIGNAL 0
#define SIGEV_NONE 1
#define SIGEV_THREAD 2
#define SIGEV_THREAD_ID 4
int
__libc_current_sigrtmin
(
void
);
int
__libc_current_sigrtmax
(
void
);
...
...
@@ -249,6 +255,9 @@ void (*sigset(int, void (*)(int)))(int);
#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
#define NSIG _NSIG
typedef
void
(
*
sig_t
)(
int
);
#define SYS_SECCOMP 1
#define SYS_USER_DISPATCH 2
#endif
#ifdef _GNU_SOURCE
...
...
porting/uniproton/kernel/include/stdlib.h
浏览文件 @
562879c8
...
...
@@ -146,6 +146,8 @@ int getloadavg(double *, int);
int
clearenv
(
void
);
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFCONTINUED(s) ((s) == 0xffff)
void
*
reallocarray
(
void
*
,
size_t
,
size_t
);
void
qsort_r
(
void
*
,
size_t
,
size_t
,
int
(
*
)(
const
void
*
,
const
void
*
,
void
*
),
void
*
);
#endif
#ifdef _GNU_SOURCE
...
...
porting/uniproton/kernel/include/stdnoreturn.h
浏览文件 @
562879c8
#ifndef _STDNORETURN_H
#define _STDNORETURN_H
#ifndef __cplusplus
#include <features.h>
#define noreturn _Noreturn
#endif
#endif
porting/uniproton/kernel/include/sys/prctl.h
浏览文件 @
562879c8
...
...
@@ -157,6 +157,25 @@ struct prctl_mm_map {
#define PR_SET_TAGGED_ADDR_CTRL 55
#define PR_GET_TAGGED_ADDR_CTRL 56
#define PR_TAGGED_ADDR_ENABLE (1UL << 0)
#define PR_MTE_TCF_SHIFT 1
#define PR_MTE_TCF_NONE (0UL << 1)
#define PR_MTE_TCF_SYNC (1UL << 1)
#define PR_MTE_TCF_ASYNC (2UL << 1)
#define PR_MTE_TCF_MASK (3UL << 1)
#define PR_MTE_TAG_SHIFT 3
#define PR_MTE_TAG_MASK (0xffffUL << 3)
#define PR_SET_IO_FLUSHER 57
#define PR_GET_IO_FLUSHER 58
#define PR_SET_SYSCALL_USER_DISPATCH 59
#define PR_SYS_DISPATCH_OFF 0
#define PR_SYS_DISPATCH_ON 1
#define SYSCALL_DISPATCH_FILTER_ALLOW 0
#define SYSCALL_DISPATCH_FILTER_BLOCK 1
#define PR_PAC_SET_ENABLED_KEYS 60
#define PR_PAC_GET_ENABLED_KEYS 61
int
prctl
(
int
,
...);
...
...
porting/uniproton/kernel/include/time.h
浏览文件 @
562879c8
...
...
@@ -163,4 +163,5 @@ __REDIR(timegm, __timegm_time64);
}
#endif
#endif
porting/uniproton/kernel/include/unistd.h
浏览文件 @
562879c8
...
...
@@ -16,6 +16,8 @@ extern "C" {
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_DATA 3
#define SEEK_HOLE 4
#define __NEED_size_t
#define __NEED_ssize_t
...
...
@@ -78,6 +80,7 @@ unsigned sleep(unsigned);
int
pause
(
void
);
pid_t
fork
(
void
);
pid_t
_Fork
(
void
);
int
execve
(
const
char
*
,
char
*
const
[],
char
*
const
[]);
int
execv
(
const
char
*
,
char
*
const
[]);
int
execle
(
const
char
*
,
const
char
*
,
...);
...
...
@@ -186,6 +189,7 @@ int syncfs(int);
int
euidaccess
(
const
char
*
,
int
);
int
eaccess
(
const
char
*
,
int
);
ssize_t
copy_file_range
(
int
,
off_t
*
,
int
,
off_t
*
,
size_t
,
unsigned
);
pid_t
gettid
(
void
);
#endif
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录