1#ifndef __VSF_LINUX_SYS_UTSNAME_H__
2#define __VSF_LINUX_SYS_UTSNAME_H__
8#if VSF_LINUX_CFG_WRAPPER == ENABLED
9#define uname VSF_LINUX_WRAPPER(uname)
12#ifndef VSF_LINUX_SYSNAME
13# define VSF_LINUX_SYSNAME "Linux"
15#ifndef VSF_LINUX_RELEASE
16# define VSF_LINUX_RELEASE "0.1.0"
18#ifndef VSF_LINUX_VERSION
19# define VSF_LINUX_VERSION "unknown"
21#ifndef VSF_LINUX_MACHINE
22# define VSF_LINUX_MACHINE "unknown"
24#ifndef VSF_LINUX_NODENAME
25# define VSF_LINUX_NODENAME "unknown"
27#ifndef VSF_LINUX_DOMAINNAME
28# define VSF_LINUX_DOMAINNAME "unknown"
41#if VSF_LINUX_APPLET_USE_SYS_UTSNAME == ENABLED
47# ifndef __VSF_APPLET__
52#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_UTSNAME_LIB__))\
53 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_UTSNAME == ENABLED
55#ifndef VSF_LINUX_APPLET_SYS_UTSNAME_VPLT
56# if VSF_LINUX_USE_APPLET == ENABLED
57# define VSF_LINUX_APPLET_SYS_UTSNAME_VPLT \
58 ((vsf_linux_sys_utsname_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_utsname_vplt))
60# define VSF_LINUX_APPLET_SYS_UTSNAME_VPLT \
61 ((vsf_linux_sys_utsname_vplt_t *)vsf_vplt((void *)0))
65#define VSF_LINUX_APPLET_SYS_UTSNAME_ENTRY(__NAME) \
66 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_UTSNAME_VPLT, __NAME)
67#define VSF_LINUX_APPLET_SYS_UTSNAME_IMP(...) \
68 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_UTSNAME_VPLT, __VA_ARGS__)
70VSF_LINUX_APPLET_SYS_UTSNAME_IMP(
uname,
int,
struct utsname *name) {
72 return VSF_LINUX_APPLET_SYS_UTSNAME_ENTRY(
uname)(name);
char release[SYS_NMLN]
Definition utsname.h:35
char domainname[SYS_NMLN]
Definition utsname.h:38
char version[SYS_NMLN]
Definition utsname.h:36
char machine[SYS_NMLN]
Definition utsname.h:37
char nodename[SYS_NMLN]
Definition utsname.h:34
char sysname[SYS_NMLN]
Definition utsname.h:33
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(uname)
vsf_vplt_info_t info
Definition utsname.h:43
__VSF_VPLT_DECORATOR__ vsf_linux_sys_utsname_vplt_t vsf_linux_sys_utsname_vplt
Definition vsf_linux.c:4802
#define SYS_NMLN
Definition utsname.h:31
#define uname
Definition utsname.h:9
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165