New function freebsd_sys_lchown() to emulate FreeBSD lchown(2).

This commit is contained in:
enami 1997-10-10 01:50:55 +00:00
parent 735c351f71
commit 23b3ed1d5c

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_file.c,v 1.5 1997/01/31 02:17:46 thorpej Exp $ */
/* $NetBSD: freebsd_file.c,v 1.6 1997/10/10 01:50:55 enami Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@ -259,6 +259,23 @@ freebsd_sys_chown(p, v, retval)
return sys_chown(p, uap, retval);
}
int
freebsd_sys_lchown(p, v, retval)
struct proc *p;
void *v;
register_t *retval;
{
struct freebsd_sys_lchown_args /* {
syscallarg(char *) path;
syscallarg(int) uid;
syscallarg(int) gid;
} */ *uap = v;
caddr_t sg = stackgap_init(p->p_emul);
FREEBSD_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
return sys_lchown(p, uap, retval);
}
int
freebsd_sys_unmount(p, v, retval)
struct proc *p;