2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* This file contains the table used to map system call numbers onto the
|
|
|
|
* routines that perform them.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define _TABLE
|
|
|
|
|
|
|
|
#include "fs.h"
|
|
|
|
#include "inode.h"
|
|
|
|
#include "buf.h"
|
2010-07-15 15:39:57 +02:00
|
|
|
#include "uds.h"
|
|
|
|
|
|
|
|
/* File System Handlers (pfs) */
|
2012-03-25 20:25:53 +02:00
|
|
|
int (*fs_call_vec[])(message *fs_m_in, message *fs_m_out) = {
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
no_sys, /* 0 not used */
|
|
|
|
no_sys, /* 1 */
|
|
|
|
fs_putnode, /* 2 */
|
|
|
|
no_sys, /* 3 */
|
|
|
|
fs_ftrunc, /* 4 */
|
|
|
|
no_sys, /* 5 */
|
2013-04-15 19:44:19 +02:00
|
|
|
fs_chmod, /* 6 */
|
2009-12-20 21:41:50 +01:00
|
|
|
no_sys, /* 7 */
|
|
|
|
fs_stat, /* 8 */
|
|
|
|
no_sys, /* 9 */
|
|
|
|
no_sys, /* 10 */
|
|
|
|
no_sys, /* 11 */
|
|
|
|
no_sys, /* 12 */
|
|
|
|
no_sys, /* 13 */
|
|
|
|
no_sys, /* 14 */
|
2012-02-13 16:28:04 +01:00
|
|
|
fs_unmount, /* 15 */
|
2009-12-20 21:41:50 +01:00
|
|
|
fs_sync, /* 16 */
|
|
|
|
no_sys, /* 17 */
|
|
|
|
no_sys, /* 18 */
|
|
|
|
fs_readwrite, /* 19 */
|
|
|
|
fs_readwrite, /* 20 */
|
|
|
|
no_sys, /* 21 */
|
|
|
|
no_sys, /* 22 */
|
|
|
|
no_sys, /* 23 */
|
|
|
|
no_sys, /* 24 */
|
|
|
|
no_sys, /* 25 */
|
|
|
|
no_sys, /* 26 */
|
|
|
|
no_sys, /* 27 */
|
|
|
|
no_sys, /* 28 */
|
|
|
|
fs_newnode, /* 29 */
|
|
|
|
no_sys, /* 30 */
|
|
|
|
no_sys, /* 31 */
|
2010-07-15 15:39:57 +02:00
|
|
|
no_sys, /* 32 */
|
2009-12-20 21:41:50 +01:00
|
|
|
};
|
|
|
|
|
2010-07-15 15:39:57 +02:00
|
|
|
/* Device Handlers (/dev/uds) */
|
2012-03-25 20:25:53 +02:00
|
|
|
int (*dev_call_vec[])(message *dev_m_in, message *dev_m_out) = {
|
2010-07-15 15:39:57 +02:00
|
|
|
|
2012-02-13 16:28:04 +01:00
|
|
|
uds_cancel, /* 0 CANCEL */
|
2010-07-15 15:39:57 +02:00
|
|
|
no_sys, /* 1 */
|
|
|
|
no_sys, /* 2 */
|
|
|
|
no_sys, /* 3 */
|
|
|
|
no_sys, /* 4 */
|
|
|
|
no_sys, /* 5 */
|
2012-02-13 16:28:04 +01:00
|
|
|
uds_open, /* 6 DEV_OPEN */
|
|
|
|
uds_close, /* 7 DEV_CLOSE */
|
2010-07-15 15:39:57 +02:00
|
|
|
no_sys, /* 8 */
|
|
|
|
no_sys, /* 9 */
|
2013-08-30 11:14:03 +02:00
|
|
|
no_sys, /* 10 */
|
|
|
|
no_sys, /* 11 */
|
2012-02-13 16:28:04 +01:00
|
|
|
uds_select, /* 12 DEV_SELECT */
|
2013-08-30 11:14:03 +02:00
|
|
|
no_sys, /* 13 */
|
2012-02-13 16:28:04 +01:00
|
|
|
uds_open, /* 14 DEV_REOPEN */
|
2010-07-15 15:39:57 +02:00
|
|
|
no_sys, /* 15 */
|
|
|
|
no_sys, /* 16 */
|
|
|
|
no_sys, /* 17 */
|
|
|
|
no_sys, /* 18 */
|
|
|
|
no_sys, /* 19 */
|
2012-02-13 16:28:04 +01:00
|
|
|
uds_read, /* 20 DEV_READ_S */
|
|
|
|
uds_write, /* 21 DEV_WRITE_S */
|
|
|
|
no_sys, /* 22 DEV_SCATTER_S */
|
|
|
|
no_sys, /* 23 DEV_GATHER_S */
|
|
|
|
uds_ioctl, /* 24 DEV_IOCTL_S */
|
|
|
|
no_sys, /* 25 DEV_MMAP_S */
|
2010-07-15 15:39:57 +02:00
|
|
|
};
|