version 1.178.2.2, 2002/12/19 05:20:16 |
version 1.179, 2003/01/18 10:06:38 |
Line 60 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 60 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include <sys/malloc.h> |
#include <sys/malloc.h> |
#include <sys/dirent.h> |
#include <sys/dirent.h> |
#include <sys/sysctl.h> |
#include <sys/sysctl.h> |
|
#include <sys/sa.h> |
#include <sys/syscallargs.h> |
#include <sys/syscallargs.h> |
|
|
#include <miscfs/genfs/genfs.h> |
#include <miscfs/genfs/genfs.h> |
#include <miscfs/syncfs/syncfs.h> |
#include <miscfs/syncfs/syncfs.h> |
|
|
static int change_dir(struct nameidata *, struct proc *); |
static int change_dir __P((struct nameidata *, struct proc *)); |
static int change_flags(struct vnode *, u_long, struct proc *); |
static int change_flags __P((struct vnode *, u_long, struct proc *)); |
static int change_mode(struct vnode *, int, struct proc *p); |
static int change_mode __P((struct vnode *, int, struct proc *p)); |
static int change_owner(struct vnode *, uid_t, gid_t, struct proc *, int); |
static int change_owner __P((struct vnode *, uid_t, gid_t, struct proc *, |
static int change_utimes(struct vnode *vp, const struct timeval *, |
int)); |
struct proc *p); |
static int change_utimes __P((struct vnode *vp, const struct timeval *, |
static int rename_files(const char *, const char *, struct proc *, int); |
struct proc *p)); |
|
static int rename_files __P((const char *, const char *, struct proc *, int)); |
|
|
void checkdirs(struct vnode *); |
void checkdirs __P((struct vnode *)); |
|
|
int dovfsusermount = 0; |
int dovfsusermount = 0; |
|
|
Line 111 const int nmountcompatnames = sizeof(mou |
|
Line 113 const int nmountcompatnames = sizeof(mou |
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_mount(p, v, retval) |
sys_mount(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 122 sys_mount(p, v, retval) |
|
Line 124 sys_mount(p, v, retval) |
|
syscallarg(int) flags; |
syscallarg(int) flags; |
syscallarg(void *) data; |
syscallarg(void *) data; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct mount *mp; |
struct mount *mp; |
int error, flag = 0; |
int error, flag = 0; |
Line 405 checkdirs(olddp) |
|
Line 408 checkdirs(olddp) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_unmount(p, v, retval) |
sys_unmount(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 414 sys_unmount(p, v, retval) |
|
Line 417 sys_unmount(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) flags; |
syscallarg(int) flags; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct mount *mp; |
struct mount *mp; |
int error; |
int error; |
Line 564 struct ctldebug debug0 = { "syncprt", &s |
|
Line 568 struct ctldebug debug0 = { "syncprt", &s |
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_sync(p, v, retval) |
sys_sync(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct mount *mp, *nmp; |
struct mount *mp, *nmp; |
int asyncflag; |
int asyncflag; |
|
struct proc *p = l->l_proc; |
|
|
simple_lock(&mountlist_slock); |
simple_lock(&mountlist_slock); |
for (mp = mountlist.cqh_last; mp != (void *)&mountlist; mp = nmp) { |
for (mp = mountlist.cqh_last; mp != (void *)&mountlist; mp = nmp) { |
Line 603 sys_sync(p, v, retval) |
|
Line 608 sys_sync(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_quotactl(p, v, retval) |
sys_quotactl(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 614 sys_quotactl(p, v, retval) |
|
Line 619 sys_quotactl(p, v, retval) |
|
syscallarg(int) uid; |
syscallarg(int) uid; |
syscallarg(caddr_t) arg; |
syscallarg(caddr_t) arg; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct mount *mp; |
struct mount *mp; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
Line 632 sys_quotactl(p, v, retval) |
|
Line 638 sys_quotactl(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_statfs(p, v, retval) |
sys_statfs(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 641 sys_statfs(p, v, retval) |
|
Line 647 sys_statfs(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(struct statfs *) buf; |
syscallarg(struct statfs *) buf; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct mount *mp; |
struct mount *mp; |
struct statfs *sp; |
struct statfs *sp; |
int error; |
int error; |
Line 664 sys_statfs(p, v, retval) |
|
Line 671 sys_statfs(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fstatfs(p, v, retval) |
sys_fstatfs(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 673 sys_fstatfs(p, v, retval) |
|
Line 680 sys_fstatfs(p, v, retval) |
|
syscallarg(int) fd; |
syscallarg(int) fd; |
syscallarg(struct statfs *) buf; |
syscallarg(struct statfs *) buf; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct file *fp; |
struct file *fp; |
struct mount *mp; |
struct mount *mp; |
struct statfs *sp; |
struct statfs *sp; |
Line 697 sys_fstatfs(p, v, retval) |
|
Line 705 sys_fstatfs(p, v, retval) |
|
* Get statistics on all filesystems. |
* Get statistics on all filesystems. |
*/ |
*/ |
int |
int |
sys_getfsstat(p, v, retval) |
sys_getfsstat(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 707 sys_getfsstat(p, v, retval) |
|
Line 715 sys_getfsstat(p, v, retval) |
|
syscallarg(long) bufsize; |
syscallarg(long) bufsize; |
syscallarg(int) flags; |
syscallarg(int) flags; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct mount *mp, *nmp; |
struct mount *mp, *nmp; |
struct statfs *sp; |
struct statfs *sp; |
caddr_t sfsp; |
caddr_t sfsp; |
Line 766 sys_getfsstat(p, v, retval) |
|
Line 775 sys_getfsstat(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fchdir(p, v, retval) |
sys_fchdir(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_fchdir_args /* { |
struct sys_fchdir_args /* { |
syscallarg(int) fd; |
syscallarg(int) fd; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct vnode *vp, *tdp; |
struct vnode *vp, *tdp; |
Line 830 sys_fchdir(p, v, retval) |
|
Line 840 sys_fchdir(p, v, retval) |
|
*/ |
*/ |
|
|
int |
int |
sys_fchroot(p, v, retval) |
sys_fchroot(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_fchroot_args *uap = v; |
struct sys_fchroot_args *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct vnode *vp; |
struct vnode *vp; |
Line 888 sys_fchroot(p, v, retval) |
|
Line 899 sys_fchroot(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_chdir(p, v, retval) |
sys_chdir(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_chdir_args /* { |
struct sys_chdir_args /* { |
syscallarg(const char *) path; |
syscallarg(const char *) path; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct cwdinfo *cwdi = p->p_cwdi; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
Line 914 sys_chdir(p, v, retval) |
|
Line 926 sys_chdir(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_chroot(p, v, retval) |
sys_chroot(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_chroot_args /* { |
struct sys_chroot_args /* { |
syscallarg(const char *) path; |
syscallarg(const char *) path; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct vnode *vp; |
struct vnode *vp; |
int error; |
int error; |
Line 987 change_dir(ndp, p) |
|
Line 1000 change_dir(ndp, p) |
|
* and call the device open routine if any. |
* and call the device open routine if any. |
*/ |
*/ |
int |
int |
sys_open(p, v, retval) |
sys_open(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 997 sys_open(p, v, retval) |
|
Line 1010 sys_open(p, v, retval) |
|
syscallarg(int) flags; |
syscallarg(int) flags; |
syscallarg(int) mode; |
syscallarg(int) mode; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct cwdinfo *cwdi = p->p_cwdi; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
Line 1070 sys_open(p, v, retval) |
|
Line 1084 sys_open(p, v, retval) |
|
* Get file handle system call |
* Get file handle system call |
*/ |
*/ |
int |
int |
sys_getfh(p, v, retval) |
sys_getfh(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1079 sys_getfh(p, v, retval) |
|
Line 1093 sys_getfh(p, v, retval) |
|
syscallarg(char *) fname; |
syscallarg(char *) fname; |
syscallarg(fhandle_t *) fhp; |
syscallarg(fhandle_t *) fhp; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
fhandle_t fh; |
fhandle_t fh; |
int error; |
int error; |
Line 1113 sys_getfh(p, v, retval) |
|
Line 1128 sys_getfh(p, v, retval) |
|
* and call the device open routine if any. |
* and call the device open routine if any. |
*/ |
*/ |
int |
int |
sys_fhopen(p, v, retval) |
sys_fhopen(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1122 sys_fhopen(p, v, retval) |
|
Line 1137 sys_fhopen(p, v, retval) |
|
syscallarg(const fhandle_t *) fhp; |
syscallarg(const fhandle_t *) fhp; |
syscallarg(int) flags; |
syscallarg(int) flags; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
struct vnode *vp = NULL; |
struct vnode *vp = NULL; |
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fhstat(p, v, retval) |
sys_fhstat(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1255 sys_fhstat(p, v, retval) |
|
Line 1271 sys_fhstat(p, v, retval) |
|
syscallarg(const fhandle_t *) fhp; |
syscallarg(const fhandle_t *) fhp; |
syscallarg(struct stat *) sb; |
syscallarg(struct stat *) sb; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct stat sb; |
struct stat sb; |
int error; |
int error; |
fhandle_t fh; |
fhandle_t fh; |
Line 1284 sys_fhstat(p, v, retval) |
|
Line 1301 sys_fhstat(p, v, retval) |
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fhstatfs(p, v, retval) |
sys_fhstatfs(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1293 sys_fhstatfs(p, v, retval) |
|
Line 1310 sys_fhstatfs(p, v, retval) |
|
syscallarg(const fhandle_t *) fhp; |
syscallarg(const fhandle_t *) fhp; |
syscallarg(struct statfs *) buf; |
syscallarg(struct statfs *) buf; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct statfs sp; |
struct statfs sp; |
fhandle_t fh; |
fhandle_t fh; |
struct mount *mp; |
struct mount *mp; |
Line 1326 sys_fhstatfs(p, v, retval) |
|
Line 1344 sys_fhstatfs(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_mknod(p, v, retval) |
sys_mknod(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1336 sys_mknod(p, v, retval) |
|
Line 1354 sys_mknod(p, v, retval) |
|
syscallarg(int) mode; |
syscallarg(int) mode; |
syscallarg(int) dev; |
syscallarg(int) dev; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct vattr vattr; |
struct vattr vattr; |
int error; |
int error; |
Line 1405 sys_mknod(p, v, retval) |
|
Line 1424 sys_mknod(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_mkfifo(p, v, retval) |
sys_mkfifo(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1414 sys_mkfifo(p, v, retval) |
|
Line 1433 sys_mkfifo(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) mode; |
syscallarg(int) mode; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vattr vattr; |
struct vattr vattr; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
Line 1445 sys_mkfifo(p, v, retval) |
|
Line 1465 sys_mkfifo(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_link(p, v, retval) |
sys_link(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1454 sys_link(p, v, retval) |
|
Line 1474 sys_link(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(const char *) link; |
syscallarg(const char *) link; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct nameidata nd; |
struct nameidata nd; |
int error; |
int error; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_symlink(p, v, retval) |
sys_symlink(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1497 sys_symlink(p, v, retval) |
|
Line 1518 sys_symlink(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(const char *) link; |
syscallarg(const char *) link; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vattr vattr; |
struct vattr vattr; |
char *path; |
char *path; |
int error; |
int error; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_undelete(p, v, retval) |
sys_undelete(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_undelete_args /* { |
struct sys_undelete_args /* { |
syscallarg(const char *) path; |
syscallarg(const char *) path; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 1575 sys_undelete(p, v, retval) |
|
Line 1598 sys_undelete(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_unlink(p, v, retval) |
sys_unlink(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_unlink_args /* { |
struct sys_unlink_args /* { |
syscallarg(const char *) path; |
syscallarg(const char *) path; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
* Reposition read/write file offset. |
* Reposition read/write file offset. |
*/ |
*/ |
int |
int |
sys_lseek(p, v, retval) |
sys_lseek(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1629 sys_lseek(p, v, retval) |
|
Line 1653 sys_lseek(p, v, retval) |
|
syscallarg(off_t) offset; |
syscallarg(off_t) offset; |
syscallarg(int) whence; |
syscallarg(int) whence; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct ucred *cred = p->p_ucred; |
struct ucred *cred = p->p_ucred; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
Line 1678 sys_lseek(p, v, retval) |
|
Line 1703 sys_lseek(p, v, retval) |
|
* Positional read system call. |
* Positional read system call. |
*/ |
*/ |
int |
int |
sys_pread(p, v, retval) |
sys_pread(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1689 sys_pread(p, v, retval) |
|
Line 1714 sys_pread(p, v, retval) |
|
syscallarg(size_t) nbyte; |
syscallarg(size_t) nbyte; |
syscallarg(off_t) offset; |
syscallarg(off_t) offset; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
struct vnode *vp; |
struct vnode *vp; |
Line 1731 sys_pread(p, v, retval) |
|
Line 1757 sys_pread(p, v, retval) |
|
* Positional scatter read system call. |
* Positional scatter read system call. |
*/ |
*/ |
int |
int |
sys_preadv(p, v, retval) |
sys_preadv(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1742 sys_preadv(p, v, retval) |
|
Line 1768 sys_preadv(p, v, retval) |
|
syscallarg(int) iovcnt; |
syscallarg(int) iovcnt; |
syscallarg(off_t) offset; |
syscallarg(off_t) offset; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
struct vnode *vp; |
struct vnode *vp; |
Line 1784 sys_preadv(p, v, retval) |
|
Line 1811 sys_preadv(p, v, retval) |
|
* Positional write system call. |
* Positional write system call. |
*/ |
*/ |
int |
int |
sys_pwrite(p, v, retval) |
sys_pwrite(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1795 sys_pwrite(p, v, retval) |
|
Line 1822 sys_pwrite(p, v, retval) |
|
syscallarg(size_t) nbyte; |
syscallarg(size_t) nbyte; |
syscallarg(off_t) offset; |
syscallarg(off_t) offset; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
struct vnode *vp; |
struct vnode *vp; |
Line 1837 sys_pwrite(p, v, retval) |
|
Line 1865 sys_pwrite(p, v, retval) |
|
* Positional gather write system call. |
* Positional gather write system call. |
*/ |
*/ |
int |
int |
sys_pwritev(p, v, retval) |
sys_pwritev(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1848 sys_pwritev(p, v, retval) |
|
Line 1876 sys_pwritev(p, v, retval) |
|
syscallarg(int) iovcnt; |
syscallarg(int) iovcnt; |
syscallarg(off_t) offset; |
syscallarg(off_t) offset; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct filedesc *fdp = p->p_fd; |
struct filedesc *fdp = p->p_fd; |
struct file *fp; |
struct file *fp; |
struct vnode *vp; |
struct vnode *vp; |
Line 1890 sys_pwritev(p, v, retval) |
|
Line 1919 sys_pwritev(p, v, retval) |
|
* Check access permissions. |
* Check access permissions. |
*/ |
*/ |
int |
int |
sys_access(p, v, retval) |
sys_access(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1899 sys_access(p, v, retval) |
|
Line 1928 sys_access(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) flags; |
syscallarg(int) flags; |
} */ *uap = v; |
} */ *uap = v; |
struct ucred *cred = crdup(p->p_ucred); |
struct proc *p = l->l_proc; |
|
struct ucred *cred = crget(); |
struct vnode *vp; |
struct vnode *vp; |
int error, flags; |
int error, flags; |
struct nameidata nd; |
struct nameidata nd; |
|
|
cred->cr_uid = p->p_ucred->cr_ruid; |
(void)memcpy(cred, p->p_ucred, sizeof(*cred)); |
cred->cr_gid = p->p_ucred->cr_rgid; |
cred->cr_ref = 1; |
|
cred->cr_uid = p->p_cred->p_ruid; |
|
cred->cr_gid = p->p_cred->p_rgid; |
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, |
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, |
SCARG(uap, path), p); |
SCARG(uap, path), p); |
/* Override default credentials */ |
/* Override default credentials */ |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys___stat13(p, v, retval) |
sys___stat13(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1948 sys___stat13(p, v, retval) |
|
Line 1980 sys___stat13(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(struct stat *) ub; |
syscallarg(struct stat *) ub; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct stat sb; |
struct stat sb; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
Line 1969 sys___stat13(p, v, retval) |
|
Line 2002 sys___stat13(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys___lstat13(p, v, retval) |
sys___lstat13(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 1978 sys___lstat13(p, v, retval) |
|
Line 2011 sys___lstat13(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(struct stat *) ub; |
syscallarg(struct stat *) ub; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct stat sb; |
struct stat sb; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
Line 1999 sys___lstat13(p, v, retval) |
|
Line 2033 sys___lstat13(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_pathconf(p, v, retval) |
sys_pathconf(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2008 sys_pathconf(p, v, retval) |
|
Line 2042 sys_pathconf(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) name; |
syscallarg(int) name; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2025 sys_pathconf(p, v, retval) |
|
Line 2060 sys_pathconf(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_readlink(p, v, retval) |
sys_readlink(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2035 sys_readlink(p, v, retval) |
|
Line 2070 sys_readlink(p, v, retval) |
|
syscallarg(char *) buf; |
syscallarg(char *) buf; |
syscallarg(size_t) count; |
syscallarg(size_t) count; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct iovec aiov; |
struct iovec aiov; |
struct uio auio; |
struct uio auio; |
Line 2071 sys_readlink(p, v, retval) |
|
Line 2107 sys_readlink(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_chflags(p, v, retval) |
sys_chflags(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2080 sys_chflags(p, v, retval) |
|
Line 2116 sys_chflags(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(u_long) flags; |
syscallarg(u_long) flags; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
Line 2098 sys_chflags(p, v, retval) |
|
Line 2135 sys_chflags(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fchflags(p, v, retval) |
sys_fchflags(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2107 sys_fchflags(p, v, retval) |
|
Line 2144 sys_fchflags(p, v, retval) |
|
syscallarg(int) fd; |
syscallarg(int) fd; |
syscallarg(u_long) flags; |
syscallarg(u_long) flags; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct file *fp; |
struct file *fp; |
int error; |
int error; |
Line 2126 sys_fchflags(p, v, retval) |
|
Line 2164 sys_fchflags(p, v, retval) |
|
* not follow links. |
* not follow links. |
*/ |
*/ |
int |
int |
sys_lchflags(p, v, retval) |
sys_lchflags(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2135 sys_lchflags(p, v, retval) |
|
Line 2173 sys_lchflags(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(u_long) flags; |
syscallarg(u_long) flags; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_chmod(p, v, retval) |
sys_chmod(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2195 sys_chmod(p, v, retval) |
|
Line 2234 sys_chmod(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) mode; |
syscallarg(int) mode; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2213 sys_chmod(p, v, retval) |
|
Line 2253 sys_chmod(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fchmod(p, v, retval) |
sys_fchmod(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2222 sys_fchmod(p, v, retval) |
|
Line 2262 sys_fchmod(p, v, retval) |
|
syscallarg(int) fd; |
syscallarg(int) fd; |
syscallarg(int) mode; |
syscallarg(int) mode; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct file *fp; |
struct file *fp; |
int error; |
int error; |
|
|
Line 2239 sys_fchmod(p, v, retval) |
|
Line 2280 sys_fchmod(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_lchmod(p, v, retval) |
sys_lchmod(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2248 sys_lchmod(p, v, retval) |
|
Line 2289 sys_lchmod(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) mode; |
syscallarg(int) mode; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2287 change_mode(vp, mode, p) |
|
Line 2329 change_mode(vp, mode, p) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_chown(p, v, retval) |
sys_chown(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2297 sys_chown(p, v, retval) |
|
Line 2339 sys_chown(p, v, retval) |
|
syscallarg(uid_t) uid; |
syscallarg(uid_t) uid; |
syscallarg(gid_t) gid; |
syscallarg(gid_t) gid; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2316 sys_chown(p, v, retval) |
|
Line 2359 sys_chown(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys___posix_chown(p, v, retval) |
sys___posix_chown(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2326 sys___posix_chown(p, v, retval) |
|
Line 2369 sys___posix_chown(p, v, retval) |
|
syscallarg(uid_t) uid; |
syscallarg(uid_t) uid; |
syscallarg(gid_t) gid; |
syscallarg(gid_t) gid; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2344 sys___posix_chown(p, v, retval) |
|
Line 2388 sys___posix_chown(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fchown(p, v, retval) |
sys_fchown(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2354 sys_fchown(p, v, retval) |
|
Line 2398 sys_fchown(p, v, retval) |
|
syscallarg(uid_t) uid; |
syscallarg(uid_t) uid; |
syscallarg(gid_t) gid; |
syscallarg(gid_t) gid; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct file *fp; |
struct file *fp; |
|
|
Line 2372 sys_fchown(p, v, retval) |
|
Line 2417 sys_fchown(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys___posix_fchown(p, v, retval) |
sys___posix_fchown(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2382 sys___posix_fchown(p, v, retval) |
|
Line 2427 sys___posix_fchown(p, v, retval) |
|
syscallarg(uid_t) uid; |
syscallarg(uid_t) uid; |
syscallarg(gid_t) gid; |
syscallarg(gid_t) gid; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct file *fp; |
struct file *fp; |
|
|
Line 2400 sys___posix_fchown(p, v, retval) |
|
Line 2446 sys___posix_fchown(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_lchown(p, v, retval) |
sys_lchown(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2410 sys_lchown(p, v, retval) |
|
Line 2456 sys_lchown(p, v, retval) |
|
syscallarg(uid_t) uid; |
syscallarg(uid_t) uid; |
syscallarg(gid_t) gid; |
syscallarg(gid_t) gid; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2429 sys_lchown(p, v, retval) |
|
Line 2476 sys_lchown(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys___posix_lchown(p, v, retval) |
sys___posix_lchown(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2439 sys___posix_lchown(p, v, retval) |
|
Line 2486 sys___posix_lchown(p, v, retval) |
|
syscallarg(uid_t) uid; |
syscallarg(uid_t) uid; |
syscallarg(gid_t) gid; |
syscallarg(gid_t) gid; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_utimes(p, v, retval) |
sys_utimes(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2525 sys_utimes(p, v, retval) |
|
Line 2573 sys_utimes(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(const struct timeval *) tptr; |
syscallarg(const struct timeval *) tptr; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2543 sys_utimes(p, v, retval) |
|
Line 2592 sys_utimes(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_futimes(p, v, retval) |
sys_futimes(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2552 sys_futimes(p, v, retval) |
|
Line 2601 sys_futimes(p, v, retval) |
|
syscallarg(int) fd; |
syscallarg(int) fd; |
syscallarg(const struct timeval *) tptr; |
syscallarg(const struct timeval *) tptr; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct file *fp; |
struct file *fp; |
|
|
Line 2570 sys_futimes(p, v, retval) |
|
Line 2620 sys_futimes(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_lutimes(p, v, retval) |
sys_lutimes(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2579 sys_lutimes(p, v, retval) |
|
Line 2629 sys_lutimes(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(const struct timeval *) tptr; |
syscallarg(const struct timeval *) tptr; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
Line 2631 change_utimes(vp, tptr, p) |
|
Line 2682 change_utimes(vp, tptr, p) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_truncate(p, v, retval) |
sys_truncate(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2641 sys_truncate(p, v, retval) |
|
Line 2692 sys_truncate(p, v, retval) |
|
syscallarg(int) pad; |
syscallarg(int) pad; |
syscallarg(off_t) length; |
syscallarg(off_t) length; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct vattr vattr; |
struct vattr vattr; |
int error; |
int error; |
Line 2669 sys_truncate(p, v, retval) |
|
Line 2721 sys_truncate(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_ftruncate(p, v, retval) |
sys_ftruncate(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2679 sys_ftruncate(p, v, retval) |
|
Line 2731 sys_ftruncate(p, v, retval) |
|
syscallarg(int) pad; |
syscallarg(int) pad; |
syscallarg(off_t) length; |
syscallarg(off_t) length; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vattr vattr; |
struct vattr vattr; |
struct vnode *vp; |
struct vnode *vp; |
struct file *fp; |
struct file *fp; |
Line 2712 sys_ftruncate(p, v, retval) |
|
Line 2765 sys_ftruncate(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fsync(p, v, retval) |
sys_fsync(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_fsync_args /* { |
struct sys_fsync_args /* { |
syscallarg(int) fd; |
syscallarg(int) fd; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct file *fp; |
struct file *fp; |
int error; |
int error; |
Line 2743 sys_fsync(p, v, retval) |
|
Line 2797 sys_fsync(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_fdatasync(p, v, retval) |
sys_fdatasync(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_fdatasync_args /* { |
struct sys_fdatasync_args /* { |
syscallarg(int) fd; |
syscallarg(int) fd; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct file *fp; |
struct file *fp; |
int error; |
int error; |
Line 2771 sys_fdatasync(p, v, retval) |
|
Line 2826 sys_fdatasync(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_rename(p, v, retval) |
sys_rename(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2780 sys_rename(p, v, retval) |
|
Line 2835 sys_rename(p, v, retval) |
|
syscallarg(const char *) from; |
syscallarg(const char *) from; |
syscallarg(const char *) to; |
syscallarg(const char *) to; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
|
|
return (rename_files(SCARG(uap, from), SCARG(uap, to), p, 0)); |
return (rename_files(SCARG(uap, from), SCARG(uap, to), p, 0)); |
} |
} |
Line 2789 sys_rename(p, v, retval) |
|
Line 2845 sys_rename(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys___posix_rename(p, v, retval) |
sys___posix_rename(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2798 sys___posix_rename(p, v, retval) |
|
Line 2854 sys___posix_rename(p, v, retval) |
|
syscallarg(const char *) from; |
syscallarg(const char *) from; |
syscallarg(const char *) to; |
syscallarg(const char *) to; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
|
|
return (rename_files(SCARG(uap, from), SCARG(uap, to), p, 1)); |
return (rename_files(SCARG(uap, from), SCARG(uap, to), p, 1)); |
} |
} |
|
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_mkdir(p, v, retval) |
sys_mkdir(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 2910 sys_mkdir(p, v, retval) |
|
Line 2967 sys_mkdir(p, v, retval) |
|
syscallarg(const char *) path; |
syscallarg(const char *) path; |
syscallarg(int) mode; |
syscallarg(int) mode; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct vattr vattr; |
struct vattr vattr; |
int error; |
int error; |
Line 2944 sys_mkdir(p, v, retval) |
|
Line 3002 sys_mkdir(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_rmdir(p, v, retval) |
sys_rmdir(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_rmdir_args /* { |
struct sys_rmdir_args /* { |
syscallarg(const char *) path; |
syscallarg(const char *) path; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
int error; |
int error; |
struct nameidata nd; |
struct nameidata nd; |
|
|
* Read a block of directory entries in a file system independent format. |
* Read a block of directory entries in a file system independent format. |
*/ |
*/ |
int |
int |
sys_getdents(p, v, retval) |
sys_getdents(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
Line 3007 sys_getdents(p, v, retval) |
|
Line 3066 sys_getdents(p, v, retval) |
|
syscallarg(char *) buf; |
syscallarg(char *) buf; |
syscallarg(size_t) count; |
syscallarg(size_t) count; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct file *fp; |
struct file *fp; |
int error, done; |
int error, done; |
|
|
Line 3029 sys_getdents(p, v, retval) |
|
Line 3089 sys_getdents(p, v, retval) |
|
* Set the mode mask for creation of filesystem nodes. |
* Set the mode mask for creation of filesystem nodes. |
*/ |
*/ |
int |
int |
sys_umask(p, v, retval) |
sys_umask(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_umask_args /* { |
struct sys_umask_args /* { |
syscallarg(mode_t) newmask; |
syscallarg(mode_t) newmask; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct cwdinfo *cwdi; |
struct cwdinfo *cwdi; |
|
|
cwdi = p->p_cwdi; |
cwdi = p->p_cwdi; |
Line 3051 sys_umask(p, v, retval) |
|
Line 3112 sys_umask(p, v, retval) |
|
*/ |
*/ |
/* ARGSUSED */ |
/* ARGSUSED */ |
int |
int |
sys_revoke(p, v, retval) |
sys_revoke(l, v, retval) |
struct proc *p; |
struct lwp *l; |
void *v; |
void *v; |
register_t *retval; |
register_t *retval; |
{ |
{ |
struct sys_revoke_args /* { |
struct sys_revoke_args /* { |
syscallarg(const char *) path; |
syscallarg(const char *) path; |
} */ *uap = v; |
} */ *uap = v; |
|
struct proc *p = l->l_proc; |
struct vnode *vp; |
struct vnode *vp; |
struct vattr vattr; |
struct vattr vattr; |
int error; |
int error; |