add ipc pipe (#28)

This commit is contained in:
zzy666-hw
2022-08-20 21:47:41 +08:00
committed by GitHub
parent fd9d001d23
commit 554b73ec99
16 changed files with 283 additions and 5 deletions

View File

@ -15,4 +15,9 @@ int mkdir(const char *path, mode_t mode)
int mstat(struct mstat_t *stat)
{
return syscall_invoke(SYS_MSTAT, (uint64_t)stat, 0, 0, 0, 0, 0, 0, 0);
}
int pipe(int *fd)
{
return syscall_invoke(SYS_PIPE, (uint64_t)fd, 0, 0,0,0,0,0,0);
}

View File

@ -24,4 +24,5 @@ int mkdir(const char *path, mode_t mode);
* @param stat 传入的内存信息结构体
* @return int 错误码
*/
int mstat(struct mstat_t* stat);
int mstat(struct mstat_t* stat);
int pipe(int *fd);