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