移除relibc和old libc以及旧的shell (#529)

移除relibc和old libc以及旧的shell
This commit is contained in:
裕依
2024-03-04 14:20:01 +08:00
committed by GitHub
parent f3b05a97ec
commit bc6f0a967c
141 changed files with 334 additions and 8836 deletions

View File

@ -1,6 +1,5 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@ -21,11 +20,11 @@ int main() {
}
}
}
printf("fd: %ld", fd);
printf("fd: %d", fd);
// 写入字符串
char *str = "------fuck-----";
int len = write(fd, str, strlen(str));
printf("len: %ld", len);
printf("len: %d", len);
// 关闭文件
close(fd);
return 0;