Replaces SYS_open with SYS_openat (XCC)
[akaros.git] / kern / include / ros / bits / syscall.h
index c4ae910..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
-
-/* Socket Syscalls */
-#define SYS_socket                                     40
-#define SYS_sendto                                     41
-#define SYS_recvfrom                           42
-#define SYS_select                                     43
-#define SYS_connect                                    44
-#define SYS_send                                       45
-#define SYS_recv                                       46
-#define SYS_bind                                       47
-#define SYS_accept                                     48
-#define SYS_listen                                     49
-
-/* Platform specific syscalls */
-#define SYS_serial_read                                75
-#define SYS_serial_write                       76
-#define SYS_eth_read                           77
-#define SYS_eth_write                          78
-#define SYS_eth_get_mac_addr           79
-#define SYS_eth_recv_check                     80
+#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
@@ -73,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_getcwd                             117
 #define SYS_mkdir                              118
 #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_setuid                             143
 #define SYS_setgid                             144
 
+/* hotness! */
+#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 */
 #define SYS_cache_buster        200 
 
 // 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 */