summaryrefslogtreecommitdiff
path: root/usrbin
diff options
context:
space:
mode:
authorJake Mannens <jakem_5@hotmail.com>2020-02-24 17:39:40 +1100
committerJake Mannens <jakem_5@hotmail.com>2020-02-24 17:39:40 +1100
commit07c004bf3cf7fcb6e875bddb1a7fb0793377ebfb (patch)
tree6135939912e3ba14cebd47c7fd0d64522c3ed92e /usrbin
parenta77b79c1959a134764b88cfe70411d109c6c0354 (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')
-rw-r--r--usrbin/main.c2
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");