mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
stub <sys/utsname.h>
This commit is contained in:
parent
e1a6a463c2
commit
d5d91f68e5
31
nx/external/bsd/include/sys/utsname.h
vendored
Normal file
31
nx/external/bsd/include/sys/utsname.h
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* Technically compliant implementation based on POSIX specification
|
||||||
|
*/
|
||||||
|
#ifndef _SYS_UTSNAME_H_
|
||||||
|
#define _SYS_UTSNAME_H_
|
||||||
|
|
||||||
|
/*
|
||||||
|
* "The character arrays are of unspecified size" assume 63 + null byte
|
||||||
|
*
|
||||||
|
* Members are stored in the order specified in the POSIX description
|
||||||
|
*/
|
||||||
|
struct utsname {
|
||||||
|
char sysname[64];
|
||||||
|
char nodename[64];
|
||||||
|
char release[64];
|
||||||
|
char version[64];
|
||||||
|
char machine[64];
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* `uname` can be defined as a macro or a function, so inline is fair game.
|
||||||
|
*
|
||||||
|
* -1 shall be returned on error.
|
||||||
|
*
|
||||||
|
* Note: errno should be set, but the spec doesn't give a list of valid codes.
|
||||||
|
*/
|
||||||
|
static inline int uname(struct utsname *name) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user