Skip to content

Commit

Permalink
io: added type value for directory descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 25, 2024
1 parent 127ee68 commit 77729aa
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/include/kernel/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@

#define MAX_IO_DESCRIPTORS 1024 // max files/sockets open per process

// these are special and reserved descriptors
#define IO_STDIN 0
#define IO_STDOUT 1
#define IO_STDERR 2

#define IO_WAITING 3 // only used during setup
#define IO_FILE 4
#define IO_SOCKET 5
#define IO_WAITING 1 // only used during setup
#define IO_FILE 2
#define IO_SOCKET 3
#define IO_DIRECTORY 4

/* I/O descriptor flags */
#define O_NONBLOCK 0x0001
Expand Down

0 comments on commit 77729aa

Please sign in to comment.