-osethostname(p, uap, retval)
-struct proc *p;
-register struct osethostname_args *uap;
-register_t *retval;
-{
- int name;
- int error;
-
- if (error = suser(p->p_ucred, &p->p_acflag))
- return (error);
-
- name = KERN_HOSTNAME;
- return (kern_sysctl(&name, 1, 0, 0, uap->hostname,
- uap->len));
-}
-
-struct ogetdomainname_args {
- char *domainname;
- int len;
-};
-/* ARGSUSED */
-int
-ogetdomainname(p, uap, retval)
-struct proc *p;
-register struct ogetdomainname_args *uap;
-register_t *retval;
-{
- int name;
-
- name = KERN_DOMAINNAME;
- return (kern_sysctl(&name, 1, uap->domainname,
- &uap->len, 0, 0));
-}
-
-struct osetdomainname_args {
- char *domainname;
- u_int len;
-};
-/* ARGSUSED */
-int
-osetdomainname(p, uap, retval)
-struct proc *p;
-register struct osetdomainname_args *uap;
-register_t *retval;
-{
- int name;
- int error;
-
- if (error = suser(p->p_ucred, &p->p_acflag))
- return (error);
- name = KERN_DOMAINNAME;
- return (kern_sysctl(&name, 1, 0, 0, uap->domainname,
- uap->len));
-}
-#endif /* COMPAT_43 */
-
-struct reboot_args {
- int opt;
- char *command;
-};
-
-reboot(p, uap, retval)
-struct proc *p;
-register struct reboot_args *uap;
-register_t *retval;