Message type for path related calls.
- Updated system calls VFS_ACCESS, VFS_CHDIR, VFS_CHMOD, VFS_CHROOT,
VFS_MKDIR, VFS_OPEN, VFS_RMDIR, VSF_UNLINK
- Removed M3_STRING and M3_LONG_STRING, which are tied to a specific
"generic" message, and replaced where needed with M_PATH_STRING_MAX,
which is tied to the mess_lc_vfs_path message.
Change-Id: If287c74f5ece937b9431e5d95b5b58a3c83ebff1
This commit is contained in:
@@ -232,15 +232,6 @@
|
||||
|
||||
#define NR_VFS_CALLS 49 /* highest number from base plus one */
|
||||
|
||||
/* Field names for the open(2), chdir(2), chmod(2), chroot(2), rmdir(2), and
|
||||
* unlink(2) calls.
|
||||
*/
|
||||
#define VFS_PATH_NAME m3_p1 /* const char * */
|
||||
#define VFS_PATH_LEN m3_i1 /* size_t */
|
||||
#define VFS_PATH_FLAGS m3_i2 /* int */
|
||||
#define VFS_PATH_MODE m3_i2 /* mode_t */
|
||||
#define VFS_PATH_BUF m3_ca1 /* char[M3_STRING] */
|
||||
|
||||
/* Field names for the creat(2) call. */
|
||||
#define VFS_CREAT_NAME m1_p1 /* const char * */
|
||||
#define VFS_CREAT_LEN m1_i1 /* size_t */
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#define M1 1
|
||||
#define M3 3
|
||||
#define M4 4
|
||||
#define M3_STRING 44 /* legacy m3_ca1 size (must not be changed) */
|
||||
#define M3_LONG_STRING 44 /* current m3_ca1 size (may be increased) */
|
||||
#define M_PATH_STRING_MAX 40
|
||||
|
||||
typedef struct {
|
||||
uint8_t data[56];
|
||||
@@ -58,7 +57,7 @@ _ASSERT_MSG_SIZE(mess_2);
|
||||
typedef struct {
|
||||
int m3i1, m3i2;
|
||||
char *m3p1;
|
||||
char m3ca1[M3_LONG_STRING];
|
||||
char m3ca1[44];
|
||||
} mess_3;
|
||||
_ASSERT_MSG_SIZE(mess_3);
|
||||
|
||||
@@ -242,6 +241,15 @@ typedef struct {
|
||||
} mess_lc_vfs_mount;
|
||||
_ASSERT_MSG_SIZE(mess_lc_vfs_mount);
|
||||
|
||||
typedef struct {
|
||||
vir_bytes name;
|
||||
size_t len;
|
||||
int flags;
|
||||
mode_t mode;
|
||||
char buf[M_PATH_STRING_MAX];
|
||||
} mess_lc_vfs_path;
|
||||
_ASSERT_MSG_SIZE(mess_lc_vfs_path);
|
||||
|
||||
typedef struct {
|
||||
int fd0;
|
||||
int fd1;
|
||||
@@ -807,6 +815,7 @@ typedef struct {
|
||||
mess_lc_vfs_lseek m_lc_vfs_lseek;
|
||||
mess_lc_vfs_mknod m_lc_vfs_mknod;
|
||||
mess_lc_vfs_mount m_lc_vfs_mount;
|
||||
mess_lc_vfs_path m_lc_vfs_path;
|
||||
mess_lc_vfs_pipe2 m_lc_vfs_pipe2;
|
||||
mess_lc_vfs_readlink m_lc_vfs_readlink;
|
||||
mess_lc_vfs_select m_lc_vfs_select;
|
||||
|
||||
Reference in New Issue
Block a user