#define NR_VFS_CALLS 49 /* highest number from base plus one */
-/* Field names for the fchdir(2) call. */
-#define VFS_FCHDIR_FD m1_i1 /* int */
-
/* Field names for the fchmod(2) call. */
#define VFS_FCHMOD_FD m1_i1 /* int */
#define VFS_FCHMOD_MODE m1_i2 /* mode_t */
} mess_lc_vfs_creat;
_ASSERT_MSG_SIZE(mess_lc_vfs_creat);
+typedef struct {
+ int fd;
+
+ uint8_t padding[52];
+} mess_lc_vfs_fchdir;
+_ASSERT_MSG_SIZE(mess_lc_vfs_fchdir);
+
typedef struct {
int fd;
int cmd;
mess_lc_vfs_chown m_lc_vfs_chown;
mess_lc_vfs_creat m_lc_vfs_creat;
+ mess_lc_vfs_fchdir m_lc_vfs_fchdir;
mess_lc_vfs_fcntl m_lc_vfs_fcntl;
mess_lc_vfs_fstat m_lc_vfs_fstat;
mess_lc_vfs_fsync m_lc_vfs_fsync;
message m;
memset(&m, 0, sizeof(m));
- m.VFS_FCHDIR_FD = fd;
+ m.m_lc_vfs_fchdir.fd = fd;
return(_syscall(VFS_PROC_NR, VFS_FCHDIR, &m));
}
struct filp *rfilp;
int r, rfd;
- rfd = job_m_in.VFS_FCHDIR_FD;
+ rfd = job_m_in.m_lc_vfs_fchdir.fd;
/* Is the file descriptor valid? */
if ((rfilp = get_filp(rfd, VNODE_READ)) == NULL) return(err_code);