/*===========================================================================*
* do_ioctl *
*===========================================================================*/
-int do_ioctl(message *UNUSED(m_out))
+int do_ioctl(void)
{
/* Perform the ioctl(ls_fd, request, argx) system call */
unsigned long ioctlrequest;
/*===========================================================================*
* do_mapdriver *
*===========================================================================*/
-int do_mapdriver(message *UNUSED(m_out))
+int do_mapdriver(void)
{
/* Create a device->driver mapping. RS will tell us which major is driven by
* this driver, what type of device it is (regular, TTY, asynchronous, clone,
/*===========================================================================*
* do_copyfd *
*===========================================================================*/
-int do_copyfd(message *UNUSED(m_out))
+int do_copyfd(void)
{
/* Copy a file descriptor between processes, or close a remote file descriptor.
* This call is used as back-call by device drivers (UDS, VND), and is expected
# define fproc_addr(e) (&fproc[_ENDPOINT_P(e)])
# define who_e (self != NULL ? fp->fp_endpoint : m_in.m_source)
# define call_nr (m_in.m_type)
-# define job_m_in (self->w_msg)
+# define job_m_in (self->w_m_in)
+# define job_m_out (self->w_m_out)
# define job_call_nr (job_m_in.m_type)
# define super_user (fp->fp_effuid == SU_UID ? 1 : 0)
# define scratch(p) (scratchpad[((int) ((p) - fproc))])
EXTERN int err_code; /* temporary storage for error number */
/* Data initialized elsewhere. */
-extern int(*call_vec[]) (message *);
-extern int(*pfs_call_vec[]) (message *m_out);
+extern int (*call_vec[])(void);
EXTERN struct kinfo kinfo; /* kernel information */
/*===========================================================================*
* do_link *
*===========================================================================*/
-int do_link(message *UNUSED(m_out))
+int do_link(void)
{
/* Perform the link(name1, name2) system call. */
int r = OK;
/*===========================================================================*
* do_unlink *
*===========================================================================*/
-int do_unlink(message *UNUSED(m_out))
+int do_unlink(void)
{
/* Perform the unlink(name) or rmdir(name) system call. The code for these two
* is almost the same. They differ only in some condition testing. Unlink()
/*===========================================================================*
* do_rename *
*===========================================================================*/
-int do_rename(message *UNUSED(m_out))
+int do_rename(void)
{
/* Perform the rename(name1, name2) system call. */
int r = OK, r1;
/*===========================================================================*
* do_truncate *
*===========================================================================*/
-int do_truncate(message *UNUSED(m_out))
+int do_truncate(void)
{
/* truncate_vnode() does the actual work of do_truncate() and do_ftruncate().
* do_truncate() and do_ftruncate() have to get hold of the inode, either
/*===========================================================================*
* do_ftruncate *
*===========================================================================*/
-int do_ftruncate(message *UNUSED(m_out))
+int do_ftruncate(void)
{
/* As with do_truncate(), truncate_vnode() does the actual work. */
struct filp *rfilp;
/*===========================================================================*
* do_slink *
*===========================================================================*/
-int do_slink(message *UNUSED(m_out))
+int do_slink(void)
{
/* Perform the symlink(name1, name2) system call. */
int r;
/*===========================================================================*
* do_rdlink *
*===========================================================================*/
-int do_rdlink(message *UNUSED(m_out))
+int do_rdlink(void)
{
/* Perform the readlink(name, buf, bufsize) system call. */
int r;
static void do_work(void);
static void do_init_root(void);
static void handle_work(void (*func)(void));
+static void reply(message *m_out, endpoint_t whom, int result);
static void get_work(void);
static void service_pm(void);
static void do_work(void)
{
int error;
- message m_out;
- memset(&m_out, 0, sizeof(m_out));
+ memset(&job_m_out, 0, sizeof(job_m_out));
/* At this point we assume that we're dealing with a call that has been
* made specifically to VFS. Typically it will be a POSIX call from a
#if ENABLE_SYSCALL_STATS
calls_stats[job_call_nr]++;
#endif
- error = (*call_vec[job_call_nr])(&m_out);
+ error = (*call_vec[job_call_nr])();
}
/* Copy the results back to the user and send reply. */
- if (error != SUSPEND) reply(&m_out, fp->fp_endpoint, error);
+ if (error != SUSPEND) reply(&job_m_out, fp->fp_endpoint, error);
}
/*===========================================================================*
/*===========================================================================*
* reply *
*===========================================================================*/
-void reply(message *m_out, endpoint_t whom, int result)
+static void reply(message *m_out, endpoint_t whom, int result)
{
/* Send a reply to a user process. If the send fails, just ignore it. */
int r;
void replycode(endpoint_t whom, int result)
{
/* Send a reply to a user process. If the send fails, just ignore it. */
- int r;
message m_out;
memset(&m_out, 0, sizeof(m_out));
- m_out.reply_type = result;
- r = sendnb(whom, &m_out);
- if (r != OK) {
- printf("VFS: %d couldn't send reply %d to %d: %d\n", mthread_self(),
- result, whom, r);
- util_stacktrace();
- }
+ reply(&m_out, whom, result);
}
/*===========================================================================*
/*===========================================================================*
* do_getsysinfo *
*===========================================================================*/
-int do_getsysinfo(message *UNUSED(m_out))
+int do_getsysinfo(void)
{
vir_bytes src_addr, dst_addr;
size_t len, buf_size;
/*===========================================================================*
* do_fcntl *
*===========================================================================*/
-int do_fcntl(message *UNUSED(m_out))
+int do_fcntl(void)
{
/* Perform the fcntl(fd, request, ...) system call. */
return(r);
}
-static int
-sync_fses(void)
+/*===========================================================================*
+ * do_sync *
+ *===========================================================================*/
+int do_sync(void)
{
struct vmnt *vmp;
int r = OK;
return(r);
}
-/*===========================================================================*
- * do_sync *
- *===========================================================================*/
-int do_sync(message *UNUSED(m_out))
-{
- return sync_fses();
-}
-
/*===========================================================================*
* do_fsync *
*===========================================================================*/
-int do_fsync(message *UNUSED(m_out))
+int do_fsync(void)
{
/* Perform the fsync() system call. */
struct filp *rfilp;
/*===========================================================================*
* do_vm_call *
*===========================================================================*/
-int do_vm_call(message *m_out)
+int do_vm_call(void)
{
/* A call that VM does to VFS.
* We must reply with the fixed type VM_VFS_REPLY (and put our result info
if(S_ISBLK(f->filp_vno->v_mode)) {
assert(f->filp_vno->v_sdev != NO_DEV);
- m_out->VMV_DEV = f->filp_vno->v_sdev;
- m_out->VMV_INO = VMC_NO_INODE;
- m_out->VMV_SIZE_PAGES = LONG_MAX;
+ job_m_out.VMV_DEV = f->filp_vno->v_sdev;
+ job_m_out.VMV_INO = VMC_NO_INODE;
+ job_m_out.VMV_SIZE_PAGES = LONG_MAX;
} else {
- m_out->VMV_DEV = f->filp_vno->v_dev;
- m_out->VMV_INO = f->filp_vno->v_inode_nr;
- m_out->VMV_SIZE_PAGES =
+ job_m_out.VMV_DEV = f->filp_vno->v_dev;
+ job_m_out.VMV_INO = f->filp_vno->v_inode_nr;
+ job_m_out.VMV_SIZE_PAGES =
roundup(f->filp_vno->v_size,
PAGE_SIZE)/PAGE_SIZE;
}
- m_out->VMV_FD = procfd;
+ job_m_out.VMV_FD = procfd;
result = OK;
}
case VMVFSREQ_FDIO:
{
- message dummy_out;
-
- result = actual_llseek(fp, &dummy_out, req_fd,
- SEEK_SET, offset);
+ result = actual_llseek(fp, req_fd, SEEK_SET, offset,
+ NULL);
if(result == OK) {
result = actual_read_write_peek(fp, PEEKING,
/* fp is VM still. */
assert(fp == vmf);
- m_out->VMV_ENDPOINT = ep;
- m_out->VMV_RESULT = result;
- m_out->VMV_REQID = req_id;
+ job_m_out.VMV_ENDPOINT = ep;
+ job_m_out.VMV_RESULT = result;
+ job_m_out.VMV_REQID = req_id;
/* reply asynchronously as VM may not be able to receive
* a sendnb() message
*/
-
- m_out->m_type = VM_VFS_REPLY;
- r = asynsend3(VM_PROC_NR, m_out, 0);
+ job_m_out.m_type = VM_VFS_REPLY;
+ r = asynsend3(VM_PROC_NR, &job_m_out, 0);
if(r != OK) printf("VFS: couldn't asynsend3() to VM\n");
/* VFS does not reply any further */
pmfp = fp;
- sync_fses();
+ do_sync();
/* Do exit processing for all leftover processes and servers, but don't
* actually exit them (if they were really gone, PM will tell us about it).
if (rfp != fp) unlock_proc(rfp);
}
- sync_fses();
+ do_sync();
unmount_all(0 /* Don't force */);
/* Try to exit all processes again including File Servers */
if (rfp != fp) unlock_proc(rfp);
}
- sync_fses();
+ do_sync();
unmount_all(1 /* Force */);
/* Reply to PM for synchronization */
/*===========================================================================*
* do_svrctl *
*===========================================================================*/
-int do_svrctl(message *UNUSED(m_out))
+int do_svrctl(void)
{
unsigned int svrctl;
vir_bytes ptr;
/*===========================================================================*
* do_getrusage *
*===========================================================================*/
-int do_getrusage(message *UNUSED(m_out))
+int do_getrusage(void)
{
int res;
struct rusage r_usage;
/*===========================================================================*
* do_fsready *
*===========================================================================*/
-int do_fsready(message *UNUSED(m_out))
+int do_fsready(void)
{
/* deprecated */
return(SUSPEND);
/*===========================================================================*
* do_mount *
*===========================================================================*/
-int do_mount(message *UNUSED(m_out))
+int do_mount(void)
{
/* Perform the mount(name, mfile, mount_flags) system call. */
endpoint_t fs_e;
/*===========================================================================*
* do_umount *
*===========================================================================*/
-int do_umount(message *UNUSED(m_out))
+int do_umount(void)
{
/* Perform the umount(name) system call. Return the label of the FS service.
*/
/*===========================================================================*
* do_open *
*===========================================================================*/
-int do_open(message *UNUSED(m_out))
+int do_open(void)
{
/* Perform the open(name, flags,...) system call.
* syscall might provide 'name' embedded in message when not creating file */
/*===========================================================================*
* do_mknod *
*===========================================================================*/
-int do_mknod(message *UNUSED(m_out))
+int do_mknod(void)
{
/* Perform the mknod(name, mode, addr) system call. */
register mode_t bits, mode_bits;
/*===========================================================================*
* do_mkdir *
*===========================================================================*/
-int do_mkdir(message *UNUSED(m_out))
+int do_mkdir(void)
{
/* Perform the mkdir(name, mode) system call. */
mode_t bits; /* mode bits for the new inode */
/*===========================================================================*
* actual_llseek *
*===========================================================================*/
-int actual_llseek(struct fproc *rfp, message *m_out, int seekfd, int seekwhence,
- off_t offset)
+int actual_llseek(struct fproc *rfp, int seekfd, int seekwhence, off_t offset,
+ off_t *newposp)
{
/* Perform the llseek(ls_fd, offset, whence) system call. */
register struct filp *rfilp;
} else if ((offset < 0) && (newpos >= pos)) {
r = EOVERFLOW;
} else {
- /* insert the new position into the output message */
- m_out->reply_l1 = ex64lo(newpos);
- m_out->reply_l2 = ex64hi(newpos);
+ if (newposp != NULL) *newposp = newpos;
if (newpos != rfilp->filp_pos) {
rfilp->filp_pos = newpos;
/*===========================================================================*
* do_lseek *
*===========================================================================*/
-int do_lseek(message *m_out)
+int do_lseek(void)
{
- return actual_llseek(fp, m_out, job_m_in.ls_fd, job_m_in.whence,
- make64(job_m_in.offset_lo, job_m_in.offset_high));
+ off_t newpos;
+ int r;
+
+ if ((r = actual_llseek(fp, job_m_in.ls_fd, job_m_in.whence,
+ make64(job_m_in.offset_lo, job_m_in.offset_high),
+ &newpos)) != OK)
+ return r;
+
+ /* insert the new position into the output message */
+ job_m_out.reply_l1 = ex64lo(newpos);
+ job_m_out.reply_l2 = ex64hi(newpos);
+ return OK;
}
/*===========================================================================*
* do_close *
*===========================================================================*/
-int do_close(message *UNUSED(m_out))
+int do_close(void)
{
/* Perform the close(fd) system call. */
int thefd = job_m_in.fd;
/*===========================================================================*
* do_checkperms *
*===========================================================================*/
-int do_checkperms(message *UNUSED(m_out))
+int do_checkperms(void)
{
/* This should be replaced by an ACL check. */
if (!super_user) return EPERM;
/*===========================================================================*
* do_pipe *
*===========================================================================*/
-int do_pipe(message *m_out)
+int do_pipe(void)
{
/* Perform the pipe(fil_des[2]) system call. */
r = create_pipe(fil_des, 0 /* no flags */);
if (r == OK) {
- m_out->reply_i1 = fil_des[0];
- m_out->reply_i2 = fil_des[1];
+ job_m_out.reply_i1 = fil_des[0];
+ job_m_out.reply_i2 = fil_des[1];
}
return r;
/*===========================================================================*
* do_pipe2 *
*===========================================================================*/
-int do_pipe2(message *m_out)
+int do_pipe2(void)
{
/* Perform the pipe2(fil_des[2], flags) system call. */
int r, flags;
r = create_pipe(fil_des, flags);
if (r == OK) {
- m_out->reply_i1 = fil_des[0];
- m_out->reply_i2 = fil_des[1];
+ job_m_out.reply_i1 = fil_des[0];
+ job_m_out.reply_i2 = fil_des[1];
}
return r;
/*===========================================================================*
* do_chmod *
*===========================================================================*/
-int do_chmod(message *UNUSED(m_out))
+int do_chmod(void)
{
/* Perform the chmod(name, mode) and fchmod(fd, mode) system calls.
* syscall might provide 'name' embedded in the message.
/*===========================================================================*
* do_chown *
*===========================================================================*/
-int do_chown(message *UNUSED(m_out))
+int do_chown(void)
{
/* Perform the chown(path, owner, group) and fchmod(fd, owner, group) system
* calls. */
/*===========================================================================*
* do_umask *
*===========================================================================*/
-int do_umask(message *UNUSED(m_out))
+int do_umask(void)
{
/* Perform the umask(co_mode) system call. */
mode_t complement, new_umask;
/*===========================================================================*
* do_access *
*===========================================================================*/
-int do_access(message *UNUSED(m_out))
+int do_access(void)
{
/* Perform the access(name, mode) system call.
* syscall might provide 'name' embedded in the message.
int bdev_close(dev_t dev);
void bdev_reply(void);
void bdev_up(int major);
-int do_ioctl(message *m_out);
+int do_ioctl(void);
/* dmap.c */
void lock_dmap(struct dmap *dp);
void unlock_dmap(struct dmap *dp);
-int do_mapdriver(message *m_out);
+int do_mapdriver(void);
void init_dmap(void);
int dmap_driver_match(endpoint_t proc, int major);
void dmap_endpt_up(endpoint_t proc_nr, int is_blk);
void invalidate_filp_by_endpt(endpoint_t proc_e);
void invalidate_filp_by_char_major(int major);
void close_filp(struct filp *fp);
-int do_copyfd(message *m_out);
+int do_copyfd(void);
/* fscall.c */
void nested_fs_call(message *m);
/* link.c */
-int do_link(message *m_out);
-int do_unlink(message *m_out);
-int do_rename(message *m_out);
-int do_truncate(message *m_out);
-int do_ftruncate(message *m_out);
+int do_link(void);
+int do_unlink(void);
+int do_rename(void);
+int do_truncate(void);
+int do_ftruncate(void);
int truncate_vnode(struct vnode *vp, off_t newsize);
int rdlink_direct(char *orig_path, char *link_path, struct fproc *rfp);
int main(void);
void lock_proc(struct fproc *rfp);
void unlock_proc(struct fproc *rfp);
-void reply(message *m_out, endpoint_t whom, int result);
void replycode(endpoint_t whom, int result);
void service_pm_postponed(void);
void thread_cleanup(void);
/* misc.c */
void pm_exit(void);
-int do_fcntl(message *m_out);
+int do_fcntl(void);
void pm_fork(endpoint_t pproc, endpoint_t cproc, pid_t cpid);
void pm_setgid(endpoint_t proc_e, int egid, int rgid);
void pm_setuid(endpoint_t proc_e, int euid, int ruid);
void pm_setgroups(endpoint_t proc_e, int ngroups, gid_t *addr);
void pm_setsid(endpoint_t proc_e);
-int do_sync(message *m_out);
-int do_fsync(message *m_out);
+int do_sync(void);
+int do_fsync(void);
void pm_reboot(void);
-int do_svrctl(message *m_out);
-int do_getsysinfo(message *m_out);
-int do_vm_call(message *m_out);
+int do_svrctl(void);
+int do_getsysinfo(void);
+int do_vm_call(void);
int pm_dumpcore(int sig, vir_bytes exe_name);
void ds_event(void);
int dupvm(struct fproc *fp, int pfd, int *vmfd, struct filp **f);
-int do_getrusage(message *m_out);
+int do_getrusage(void);
/* mount.c */
-int do_fsready(message *m_out);
-int do_mount(message *m_out);
-int do_umount(message *m_out);
+int do_fsready(void);
+int do_mount(void);
+int do_umount(void);
int is_nonedev(dev_t dev);
void mount_pfs(void);
int mount_fs(dev_t dev, char mount_dev[PATH_MAX], char mount_path[PATH_MAX],
void unmount_all(int force);
/* open.c */
-int do_close(message *m_out);
+int do_close(void);
int close_fd(struct fproc *rfp, int fd_nr);
int common_open(char path[PATH_MAX], int oflags, mode_t omode);
int do_creat(void);
-int do_lseek(message *m_out);
-int do_mknod(message *m_out);
-int do_mkdir(message *m_out);
-int do_open(message *m_out);
-int do_slink(message *m_out);
-int actual_llseek(struct fproc *rfp, message *m_out, int seekfd,
- int seekwhence, off_t offset);
-int do_vm_open(void);
-int do_vm_close(void);
+int do_lseek(void);
+int do_mknod(void);
+int do_mkdir(void);
+int do_open(void);
+int do_slink(void);
+int actual_llseek(struct fproc *rfp, int seekfd, int seekwhence, off_t offset,
+ off_t *newposp);
/* path.c */
struct vnode *advance(struct vnode *dirp, struct lookup *resolve, struct
vmnt **vmp, struct vnode **vp);
int get_name(struct vnode *dirp, struct vnode *entry, char *_name);
int canonical_path(char *orig_path, struct fproc *rfp);
-int do_checkperms(message *m_out);
+int do_checkperms(void);
/* pipe.c */
-int do_pipe(message *m_out);
-int do_pipe2(message *m_out);
+int do_pipe(void);
+int do_pipe2(void);
int map_vnode(struct vnode *vp, endpoint_t fs_e);
void unpause(void);
int pipe_check(struct filp *filp, int rw_flag, int oflags, int bytes,
void wait_for(endpoint_t proc_e);
/* protect.c */
-int do_access(message *m_out);
-int do_chmod(message *m_out);
-int do_chown(message *m_out);
-int do_umask(message *m_out);
+int do_access(void);
+int do_chmod(void);
+int do_chown(void);
+int do_umask(void);
int forbidden(struct fproc *rfp, struct vnode *vp, mode_t
access_desired);
int read_only(struct vnode *vp);
/* read.c */
-int do_read(message *m_out);
-int do_getdents(message *m_out);
+int do_read(void);
+int do_getdents(void);
void lock_bsf(void);
void unlock_bsf(void);
void check_bsf_lock(void);
int req_newdriver(endpoint_t fs_e, dev_t dev, char *label);
/* stadir.c */
-int do_chdir(message *m_out);
-int do_fchdir(message *m_out);
-int do_chroot(message *m_out);
-int do_fstat(message *m_out);
-int do_stat(message *m_out);
-int do_statvfs(message *m_out);
-int do_fstatvfs(message *m_out);
-int do_getvfsstat(message *m_out);
-int do_rdlink(message *m_out);
-int do_lstat(message *m_out);
+int do_chdir(void);
+int do_fchdir(void);
+int do_chroot(void);
+int do_fstat(void);
+int do_stat(void);
+int do_statvfs(void);
+int do_fstatvfs(void);
+int do_getvfsstat(void);
+int do_rdlink(void);
+int do_lstat(void);
int update_statvfs(struct vmnt *vmp, struct statvfs *buf);
/* time.c */
-int do_utime(message *);
-int do_utimens(message *);
+int do_utime(void);
+int do_utimens(void);
/* tll.c */
void tll_downgrade(tll_t *tllp);
long conv4(int norm, long x);
int copy_name(size_t len, char *dest);
int fetch_name(vir_bytes path, size_t len, char *dest);
-int no_sys(message *);
+int no_sys(void);
int isokendpt_f(const char *f, int l, endpoint_t e, int *p, int ft);
int in_group(struct fproc *rfp, gid_t grp);
void upgrade_vnode_lock(struct vnode *vp);
/* write.c */
-int do_write(message *m_out);
+int do_write(void);
/* gcov.c */
int do_gcov_flush(void);
#endif
/* select.c */
-int do_select(message *m_out);
+int do_select(void);
void init_select(void);
void select_callback(struct filp *, int ops);
void select_forget(void);
/*===========================================================================*
* do_read *
*===========================================================================*/
-int do_read(message *UNUSED(m_out))
+int do_read(void)
{
return(do_read_write_peek(READING, job_m_in.fd,
job_m_in.buffer, (size_t) job_m_in.nbytes));
/*===========================================================================*
* do_getdents *
*===========================================================================*/
-int do_getdents(message *UNUSED(m_out))
+int do_getdents(void)
{
/* Perform the getdents(fd, buf, size) system call. */
int r = OK;
/*===========================================================================*
* do_select *
*===========================================================================*/
-int do_select(message *UNUSED(m_out))
+int do_select(void)
{
/* Implement the select(nfds, readfds, writefds, errorfds, timeout) system
* call. First we copy the arguments and verify their sanity. Then we check
/*===========================================================================*
* do_fchdir *
*===========================================================================*/
-int do_fchdir(message *UNUSED(m_out))
+int do_fchdir(void)
{
/* Change directory on already-opened fd. */
struct filp *rfilp;
/*===========================================================================*
* do_chdir *
*===========================================================================*/
-int do_chdir(message *UNUSED(m_out))
+int do_chdir(void)
{
/* Perform the chdir(name) system call.
* syscall might provide 'name' embedded in the message.
/*===========================================================================*
* do_chroot *
*===========================================================================*/
-int do_chroot(message *UNUSED(m_out))
+int do_chroot(void)
{
/* Perform the chroot(name) system call.
* syscall might provide 'name' embedded in the message.
/*===========================================================================*
* do_stat *
*===========================================================================*/
-int do_stat(message *UNUSED(m_out))
+int do_stat(void)
{
/* Perform the stat(name, buf) system call. */
int r;
/*===========================================================================*
* do_fstat *
*===========================================================================*/
-int do_fstat(message *UNUSED(m_out))
+int do_fstat(void)
{
/* Perform the fstat(fd, buf) system call. */
register struct filp *rfilp;
/*===========================================================================*
* do_statvfs *
*===========================================================================*/
-int do_statvfs(message *UNUSED(m_out))
+int do_statvfs(void)
{
/* Perform the statvfs1(name, buf, flags) system call. */
int r, flags;
/*===========================================================================*
* do_fstatvfs *
*===========================================================================*/
-int do_fstatvfs(message *UNUSED(m_out))
+int do_fstatvfs(void)
{
/* Perform the fstatvfs1(fd, buf, flags) system call. */
register struct filp *rfilp;
/*===========================================================================*
* do_getvfsstat *
*===========================================================================*/
-int do_getvfsstat(message *UNUSED(m_out))
+int do_getvfsstat(void)
{
/* Perform the getvfsstat(buf, bufsize, flags) system call. */
struct vmnt *vmp;
/*===========================================================================*
* do_lstat *
*===========================================================================*/
-int do_lstat(message *UNUSED(m_out))
+int do_lstat(void)
{
/* Perform the lstat(name, buf) system call. */
struct vnode *vp;
#include "vnode.h"
#include "vmnt.h"
-int (*call_vec[])(message *m_out) = {
+int (*call_vec[])(void) = {
no_sys, /* 0 = unused */
no_sys, /* 1 = (exit) */
no_sys, /* 2 = (fork) */
mutex_t w_event_mutex;
cond_t w_event;
struct fproc *w_fp;
- message w_msg;
+ message w_m_in;
+ message w_m_out;
int w_err_code;
message *w_fs_sendrec;
message *w_drv_sendrec;
/*===========================================================================*
* do_utime *
*===========================================================================*/
-int do_utime(message *UNUSED(m_out))
+int do_utime(void)
{
/* Perform the utime(name, timep) system call. */
int r;
/*===========================================================================*
* do_utimens *
*===========================================================================*/
-int do_utimens(message *UNUSED(m_out))
+int do_utimens(void)
{
/* Perform the utimens(name, times, flag) system call, and its friends.
* Implement a very large but not complete subset of the utimensat()
/*===========================================================================*
* no_sys *
*===========================================================================*/
-int no_sys(message *UNUSED(m_out))
+int no_sys(void)
{
/* Somebody has used an illegal system call number */
return(ENOSYS);
/* Perform normal work, if any. */
if (fp->fp_func != NULL) {
- self->w_msg = fp->fp_msg;
+ self->w_m_in = fp->fp_msg;
err_code = OK;
fp->fp_func();
/* Perform postponed PM work, if any. */
if (fp->fp_flags & FP_PM_WORK) {
- self->w_msg = fp->fp_pm_msg;
+ self->w_m_in = fp->fp_pm_msg;
service_pm_postponed();
/*===========================================================================*
* do_write *
*===========================================================================*/
-int do_write(message *UNUSED(m_out))
+int do_write(void)
{
/* Perform the write(fd, buffer, nbytes) system call. */
return(do_read_write_peek(WRITING, job_m_in.fd,