From 9ded3a2bde80eede5fd887812d70c2f834b53c84 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 13 Apr 2021 22:09:23 +0200 Subject: Started IO dev manager --- libs/libc/inc/sys.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libs/libc/inc/sys.h') diff --git a/libs/libc/inc/sys.h b/libs/libc/inc/sys.h index a9ebf2e..e7acc49 100644 --- a/libs/libc/inc/sys.h +++ b/libs/libc/inc/sys.h @@ -19,10 +19,12 @@ enum sys { SYS_SHACCESS, // Access shared memory SYS_FREE, // Free memory SYS_STAT, // Get file information - SYS_READ, // Read file + SYS_READ, // Read file (non-blocking) SYS_WRITE, // Write to file - SYS_IOCTL, // Interact with a file/device - SYS_POLL, // Wait for multiple files + SYS_IOCTL, // Interact with an I/O device + SYS_IOPOLL, // Block proc until I/O device is ready + SYS_IOREAD, // Read data from I/O device (blocking) + SYS_IOWRITE, // Write data to I/O device SYS_EXEC, // Execute path SYS_EXIT, // Exit current process SYS_BOOT, // Boot functions (e.g. reboot/shutdown) @@ -68,7 +70,6 @@ res read(const char *path, void *buf, u32 offset, u32 count) NONNULL; res write(const char *path, const void *buf, u32 offset, u32 count) NONNULL; res ioctl(const char *path, ...) NONNULL; res stat(const char *path, struct stat *buf) NONNULL; -res poll(const char **files) NONNULL; res exec(const char *path, ...) ATTR((nonnull(1))) SENTINEL; res yield(void); res boot(u32 cmd); -- cgit v1.2.3