* Copyright (c) 1982, 1986, 1989, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
* @(#)kern_xxx.c 8.2 (Berkeley) %G%
if (error
= suser(p
->p_ucred
, &p
->p_acflag
))
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
struct gethostname_args
{
ogethostname(p
, uap
, retval
)
struct gethostname_args
*uap
;
return (kern_sysctl(&name
, 1, uap
->hostname
, &uap
->len
, 0, 0));
struct sethostname_args
{
osethostname(p
, uap
, retval
)
register struct sethostname_args
*uap
;
if (error
= suser(p
->p_ucred
, &p
->p_acflag
))
return (kern_sysctl(&name
, 1, 0, 0, uap
->hostname
, uap
->len
));
ogethostid(p
, uap
, retval
)
struct gethostid_args
*uap
;
*(long *)retval
= hostid
;
#endif /* COMPAT_43 || COMPAT_SUNOS */
osethostid(p
, uap
, retval
)
struct sethostid_args
*uap
;