* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
* %sccs.include.redist.c%
* @(#)kern_xxx.c 7.21 (Berkeley) %G%
if (error
= suser(p
->p_ucred
, &p
->p_acflag
))
gethostid(p
, uap
, retval
)
struct gethostid_args
*uap
;
*(long *)retval
= hostid
;
sethostid(p
, uap
, retval
)
struct sethostid_args
*uap
;
struct gethostname_args
{
gethostname(p
, uap
, retval
)
struct gethostname_args
*uap
;
return (kern_sysctl(&name
, 1, uap
->hostname
, &uap
->len
, 0, 0));
struct sethostname_args
{
sethostname(p
, uap
, retval
)
register struct sethostname_args
*uap
;
return (kern_sysctl(&name
, 1, 0, 0, uap
->hostname
, uap
->len
));