1/*- 2 * Copyright (c) 2002 Doug Rabson 3 * Copyright (c) 1994-1995 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/compat/linux/linux_misc.c 180291 2008-07-05 13:10:10Z rwatson $"); |
32 33#include "opt_compat.h" 34#include "opt_mac.h" 35 36#include <sys/param.h> 37#include <sys/blist.h> 38#include <sys/fcntl.h> 39#if defined(__i386__) --- 716 unchanged lines hidden (view full) --- 756#ifdef COMPAT_LINUX32 757 strlcpy(utsname.machine, "i686", LINUX_MAX_UTSNAME); 758#else 759 strlcpy(utsname.machine, "x86_64", LINUX_MAX_UTSNAME); 760#endif /* COMPAT_LINUX32 */ 761#else /* something other than i386 or amd64 - assume we and Linux agree */ 762 strlcpy(utsname.machine, machine, LINUX_MAX_UTSNAME); 763#endif /* __i386__ */ |
764 mtx_lock(&hostname_mtx); |
765 strlcpy(utsname.domainname, domainname, LINUX_MAX_UTSNAME); |
766 mtx_unlock(&hostname_mtx); |
767 768 return (copyout(&utsname, args->buf, sizeof(utsname))); 769} 770 771#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32)) 772struct l_utimbuf { 773 l_time_t l_actime; 774 l_time_t l_modtime; --- 1093 unchanged lines hidden --- |