From 07c004bf3cf7fcb6e875bddb1a7fb0793377ebfb Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 24 Feb 2020 17:39:40 +1100 Subject: Changed read() and write() calls to now accept an integer file descriptor as their first parameter. read()/write() calls to descriptors other than stdin/stdout respectively, are currently discared as the file table has yet to be fully implemented. --- usrbin/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usrbin') diff --git a/usrbin/main.c b/usrbin/main.c index 6acf5fe..c4a257c 100644 --- a/usrbin/main.c +++ b/usrbin/main.c @@ -17,7 +17,7 @@ void pid1(void) { signal(1, &sighandler); while(1) { - in = read(buf, 1); + in = read(STDIN_FILENO, buf, 1); if(in < 1) { if(in == -EINTR) { printf("Read call interrupted!\n"); -- cgit v1.3