.gitignore updated

This commit is contained in:
2025-02-21 15:22:59 +08:00
parent 18f6d55004
commit 1f0426999e
68 changed files with 10 additions and 13 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@ _*
*.asm *.asm
*.sym *.sym
*.img *.img
.cache
vectors.S vectors.S
bootblock bootblock
entryother entryother

View File

@@ -1,13 +1,11 @@
#include "kernel/types.h"
#include "kernel/stat.h"
#include "kernel/fcntl.h" #include "kernel/fcntl.h"
#include "kernel/stat.h"
#include "kernel/types.h"
#include "user/user.h" #include "user/user.h"
char buf[512]; char buf[512];
void void cat(int fd) {
cat(int fd)
{
int n; int n;
while ((n = read(fd, buf, sizeof(buf))) > 0) { while ((n = read(fd, buf, sizeof(buf))) > 0) {
@@ -22,9 +20,7 @@ cat(int fd)
} }
} }
int int main(int argc, char *argv[]) {
main(int argc, char *argv[])
{
int fd, i; int fd, i;
if (argc <= 1) { if (argc <= 1) {