summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_sysctl.c
diff options
context:
space:
mode:
authormini <mini@FreeBSD.org>2002-09-24 07:03:01 +0000
committermini <mini@FreeBSD.org>2002-09-24 07:03:01 +0000
commit7a31c08874a06ca4e5a0b375518b70fef7c57656 (patch)
treefff225ae2aec25af7c2c542fa9e98087610123a0 /sys/compat/linux/linux_sysctl.c
parentbe95bd58fc90c8e861fc5fc7b31fa38053635353 (diff)
downloadFreeBSD-src-7a31c08874a06ca4e5a0b375518b70fef7c57656.zip
FreeBSD-src-7a31c08874a06ca4e5a0b375518b70fef7c57656.tar.gz
Back out last commit. Linux uses the old 4.3BSD sockaddr format.
Diffstat (limited to 'sys/compat/linux/linux_sysctl.c')
-rw-r--r--sys/compat/linux/linux_sysctl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/compat/linux/linux_sysctl.c b/sys/compat/linux/linux_sysctl.c
index 153e0ac..86a8758 100644
--- a/sys/compat/linux/linux_sysctl.c
+++ b/sys/compat/linux/linux_sysctl.c
@@ -121,20 +121,3 @@ linux_sysctl(struct thread *td, struct linux_sysctl_args *args)
free(mib, M_TEMP);
return (ENOTDIR);
}
-
-int
-linux_sethostname(struct thread *td, struct linux_sethostname_args *uap)
-{
- int name[2];
- int error;
-
- name[0] = CTL_KERN;
- name[1] = KERN_HOSTNAME;
- mtx_lock(&Giant);
- if ((error = suser_cred(td->td_ucred, PRISON_ROOT)) == 0) {
- error = userland_sysctl(td, name, 2, 0, 0, 0,
- uap->hostname, uap->len, 0);
- }
- mtx_unlock(&Giant);
- return (error);
-}
OpenPOWER on IntegriCloud