aboutsummaryrefslogtreecommitdiffstats
path: root/c/gbos.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/gbos.h')
-rw-r--r--c/gbos.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/c/gbos.h b/c/gbos.h
index d8c8eb3..fa926fd 100644
--- a/c/gbos.h
+++ b/c/gbos.h
@@ -30,4 +30,12 @@ void fremove(const char *name);
#define O_READ 0
#define O_WRITE 1
#define NOFD 0xFF
+
+/* process control (c/libc.s) */
+unsigned char fork(void);
+void exec(unsigned char id); /* replace image; never returns */
+unsigned char wait(void);
+void setin(unsigned char fd); /* redirect stdin ($FF=console) */
+void setout(unsigned char fd); /* redirect stdout ($FF=console) */
+unsigned char lookup(const char *name); /* command name -> program id */
#endif