* Copyright (c) 1982, 1986, 1989, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
* @(#)kern_xxx.c 8.3 (Berkeley) %G%
#include <sys/syscallargs.h>
if (error
= suser(p
->p_ucred
, &p
->p_acflag
))
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
compat_43_gethostname(p
, uap
, retval
)
struct compat_43_gethostname_args
/* {
syscallarg(char *) hostname;
return (kern_sysctl(&name
, 1, SCARG(uap
, hostname
), &SCARG(uap
, len
),
compat_43_sethostname(p
, uap
, retval
)
register struct compat_43_sethostname_args
/* {
syscallarg(char *) hostname;
if (error
= suser(p
->p_ucred
, &p
->p_acflag
))
return (kern_sysctl(&name
, 1, 0, 0, SCARG(uap
, hostname
),
compat_43_gethostid(p
, uap
, retval
)
*(int32_t *)retval
= hostid
;
#endif /* COMPAT_43 || COMPAT_SUNOS */
compat_43_sethostid(p
, uap
, retval
)
struct compat_43_sethostid_args
/* {
syscallarg(int32_t) hostid;
compat_43_quota(p
, uap
, retval
)