From 3d6a857b9186ef6304ea6cf04627c2b787169f29 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 16 Jul 2016 15:59:46 +0200 Subject: Make way for libc implementation --- src/common/include/proto/launch.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/common/include/proto/launch.h (limited to 'src/common/include/proto/launch.h') diff --git a/src/common/include/proto/launch.h b/src/common/include/proto/launch.h new file mode 100644 index 0000000..3192f82 --- /dev/null +++ b/src/common/include/proto/launch.h @@ -0,0 +1,26 @@ +#pragma once + +// Standard file descriptor numbers +// If these FDs are mapped when a process is launched, a specific role for them is assumed + +// {{ Automatically causes libc stdio initialization + +// tty_stdio : assume we have a terminal window for keyboard I/O +#define STD_FD_TTY_STDIO 1 + +// if stdin is mapped, we assume no terminal window +#define STD_FD_STDIN 2 +#define STD_FD_STDOUT 3 +#define STD_FD_STDERR 4 + +// }} + + +#define STD_FD_GIP 5 // graphics initiation protocol, i.e. GUI window + +// For system services +#define STD_FD_GIOSRV 10 + +#define STD_FD_TTYSRV 11 + +/* vim: set sts=0 ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3