From 7a31c08874a06ca4e5a0b375518b70fef7c57656 Mon Sep 17 00:00:00 2001 From: mini Date: Tue, 24 Sep 2002 07:03:01 +0000 Subject: Back out last commit. Linux uses the old 4.3BSD sockaddr format. --- sys/compat/linux/linux_sysctl.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'sys/compat/linux/linux_sysctl.c') 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); -} -- cgit v1.1