-#include <sys/mount.h>
-
-#if COMPAT_43
-/* ARGSUSED */
-int
-ogethostid(p, uap, retval)
-struct proc *p;
-void *uap;
-register_t *retval;
-{
-
- *retval = hostid;
- return 0;
-}
-
-struct osethostid_args {
- long hostid;
-};
-/* ARGSUSED */
-int
-osethostid(p, uap, retval)
-struct proc *p;
-register struct osethostid_args *uap;
-register_t *retval;
-{
- int error;
-
- if (error = suser(p->p_ucred, &p->p_acflag))
- return (error);
- hostid = uap->hostid;
- return (0);
-
-}
-
-struct ogethostname_args {
- char *hostname;
- u_int len;
-};
-/* ARGSUSED */
-int
-ogethostname(p, uap, retval)
-struct proc *p;
-register struct ogethostname_args *uap;
-register_t *retval;
-{
- int name;
-
- name = KERN_HOSTNAME;
-
- return (kern_sysctl(&name, 1, uap->hostname, &uap->len),
- 0, 0);
-}
-
-struct osethostname_args {
- char *hostname;
- u_int len;
-};
-/* ARGSUSED */
-int
-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));
-}