Add dup,dup2 (#224)

* dup,dup2

* fix: sys_dup2语义与posix不一致的问题

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
Gou Ngai
2023-04-02 15:43:53 +08:00
committed by GitHub
parent d7b31a969f
commit 2b771e32f5
11 changed files with 166 additions and 39 deletions

View File

@ -1,10 +1,10 @@
#include "sys_version.h" // 这是系统的版本头文件,在编译过程中自动生成
#include "sys_version.h" // 这是系统的版本头文件,在编译过程中自动生成
#include <fcntl.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
void print_ascii_logo()
{
printf(" ____ ___ ____ \n");
@ -36,7 +36,7 @@ void print_copyright()
}
int main()
{
{
print_ascii_logo();
print_copyright();