diff options
| author | Jake Mannens <jakem_5@hotmail.com> | 2020-02-24 17:39:40 +1100 |
|---|---|---|
| committer | Jake Mannens <jakem_5@hotmail.com> | 2020-02-24 17:39:40 +1100 |
| commit | 07c004bf3cf7fcb6e875bddb1a7fb0793377ebfb (patch) | |
| tree | 6135939912e3ba14cebd47c7fd0d64522c3ed92e /usrbin/main.c | |
| parent | a77b79c1959a134764b88cfe70411d109c6c0354 (diff) | |
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.
Diffstat (limited to 'usrbin/main.c')
| -rw-r--r-- | usrbin/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
