Replaces SYS_open with SYS_openat (XCC)
[akaros.git] / kern / include / ros / bits / syscall.h
index 8778da6..9c4a800 100644 (file)
 #define SYS_mlock
 #define SYS_msync
 */
-/* sys_brk removed */
+/* was SYS_brk                                         21 */
 #define SYS_shared_page_alloc          22
 #define SYS_shared_page_free           23
 #define SYS_provision                          24
 #define SYS_notify                                     25
 #define SYS_self_notify                                26
-#define SYS_vc_entry                           31
 #define SYS_halt_core                          27
 #define SYS_init_arsc                          28
 #define SYS_change_to_m                                29
 #define SYS_poke_ksched                                30
 #define SYS_abort_sysc                         31
+#define SYS_populate_va                                32
+#define SYS_abort_sysc_fd                      33
+#define SYS_setup_vmm                          34
+#define SYS_vc_entry                           35
 
 /* FS Syscalls */
 #define SYS_read                               100
 #define SYS_write                              101
-#define SYS_open                               102
+#define SYS_openat                             102
 #define SYS_close                              103
 #define SYS_fstat                              104
 #define SYS_stat                               105
@@ -54,7 +57,7 @@
 #define SYS_fcntl                              107
 #define SYS_access                             108
 #define SYS_umask                              109
-#define SYS_chmod                              110
+/* was SYS_chmod                               110 */
 #define SYS_llseek                             111
 #define SYS_link                               112
 #define SYS_unlink                             113
 #define SYS_rmdir                              119
 #define SYS_pipe                               120
 
+#define SYS_wstat                              121
+#define SYS_fwstat                             122
+#define SYS_rename                             123
+#define SYS_fchdir                             124
+#define SYS_dup_fds_to                 125
+#define SYS_tap_fds                            126
+
 /* Misc syscalls */
 #define SYS_gettimeofday               140
 #define SYS_tcgetattr                  141
@@ -77,6 +87,7 @@
 #define SYS_nbind                              145
 #define SYS_nmount                             146
 #define SYS_nunmount                   147
+/* was SYS_something                   148 */
 #define SYS_fd2path                            149
 
 /* Syscalls we plan to remove someday */
 // for system calls that pass filenames
 #define MAX_PATH_LEN 256
 
+/* wstat flags, so the kernel knows what M fields to look at */
+#define WSTAT_MODE                             0x001
+#define WSTAT_ATIME                            0x002
+#define WSTAT_MTIME                            0x004
+#define WSTAT_LENGTH                   0x008
+#define WSTAT_NAME                             0x010
+#define WSTAT_UID                              0x020
+#define WSTAT_GID                              0x040
+#define WSTAT_MUID                             0x080
+
 #endif /* !ROS_INCLUDE_SYSCALL_H */