1*ad513b4dSBjoern A. Zeeb /*- 2*ad513b4dSBjoern A. Zeeb * Copyright (c) 2023 Bjoern A. Zeeb 3*ad513b4dSBjoern A. Zeeb * 4*ad513b4dSBjoern A. Zeeb * Redistribution and use in source and binary forms, with or without 5*ad513b4dSBjoern A. Zeeb * modification, are permitted provided that the following conditions 6*ad513b4dSBjoern A. Zeeb * are met: 7*ad513b4dSBjoern A. Zeeb * 1. Redistributions of source code must retain the above copyright 8*ad513b4dSBjoern A. Zeeb * notice, this list of conditions and the following disclaimer. 9*ad513b4dSBjoern A. Zeeb * 2. Redistributions in binary form must reproduce the above copyright 10*ad513b4dSBjoern A. Zeeb * notice, this list of conditions and the following disclaimer in the 11*ad513b4dSBjoern A. Zeeb * documentation and/or other materials provided with the distribution. 12*ad513b4dSBjoern A. Zeeb * 13*ad513b4dSBjoern A. Zeeb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*ad513b4dSBjoern A. Zeeb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*ad513b4dSBjoern A. Zeeb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*ad513b4dSBjoern A. Zeeb * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*ad513b4dSBjoern A. Zeeb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*ad513b4dSBjoern A. Zeeb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*ad513b4dSBjoern A. Zeeb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*ad513b4dSBjoern A. Zeeb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*ad513b4dSBjoern A. Zeeb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*ad513b4dSBjoern A. Zeeb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*ad513b4dSBjoern A. Zeeb * SUCH DAMAGE. 24*ad513b4dSBjoern A. Zeeb * 25*ad513b4dSBjoern A. Zeeb * $FreeBSD$ 26*ad513b4dSBjoern A. Zeeb */ 27*ad513b4dSBjoern A. Zeeb 28*ad513b4dSBjoern A. Zeeb #ifndef _LINUXKPI_LINUX_UTSNAME_H 29*ad513b4dSBjoern A. Zeeb #define _LINUXKPI_LINUX_UTSNAME_H 30*ad513b4dSBjoern A. Zeeb 31*ad513b4dSBjoern A. Zeeb #include <sys/types.h> 32*ad513b4dSBjoern A. Zeeb #include <sys/jail.h> 33*ad513b4dSBjoern A. Zeeb 34*ad513b4dSBjoern A. Zeeb struct _utsname { 35*ad513b4dSBjoern A. Zeeb char release[OSRELEASELEN]; 36*ad513b4dSBjoern A. Zeeb }; 37*ad513b4dSBjoern A. Zeeb 38*ad513b4dSBjoern A. Zeeb struct uts_namespace { 39*ad513b4dSBjoern A. Zeeb struct _utsname name; 40*ad513b4dSBjoern A. Zeeb }; 41*ad513b4dSBjoern A. Zeeb 42*ad513b4dSBjoern A. Zeeb extern struct uts_namespace init_uts_ns; 43*ad513b4dSBjoern A. Zeeb 44*ad513b4dSBjoern A. Zeeb static inline struct _utsname * 45*ad513b4dSBjoern A. Zeeb init_utsname(void) 46*ad513b4dSBjoern A. Zeeb { 47*ad513b4dSBjoern A. Zeeb 48*ad513b4dSBjoern A. Zeeb return &init_uts_ns.name; 49*ad513b4dSBjoern A. Zeeb } 50*ad513b4dSBjoern A. Zeeb 51*ad513b4dSBjoern A. Zeeb #endif /* _LINUXKPI_LINUX_UTSNAME_H */ 52