uapi fixes
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
#define __ZINNIA_UAPI_ARCHCTL_H
|
||||
|
||||
#ifdef __x86_64__
|
||||
#define __ARCHCTL_SET_FSBASE 1
|
||||
#define __ARCHCTL_SET_GSBASE 2
|
||||
#define __ARCHCTL_GET_FSBASE 3
|
||||
#define __ARCHCTL_GET_GSBASE 4
|
||||
#define __ARCHCTL_SET_FSBASE 0
|
||||
#define __ARCHCTL_SET_GSBASE 1
|
||||
#define __ARCHCTL_GET_FSBASE 2
|
||||
#define __ARCHCTL_GET_GSBASE 3
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
#ifndef __ZINNIA_UAPI_DIRENT_H
|
||||
#define __ZINNIA_UAPI_DIRENT_H
|
||||
|
||||
#include <uapi/types.h>
|
||||
|
||||
#define __DT_UNKNOWN 0
|
||||
#define __DT_FIFO 1
|
||||
#define __DT_CHR 2
|
||||
#define __DT_DIR 4
|
||||
#define __DT_BLK 6
|
||||
#define __DT_REG 8
|
||||
#define __DT_LNK 10
|
||||
#define __DT_SOCK 12
|
||||
#define __DT_WHT 14
|
||||
|
||||
struct __dirent {
|
||||
__ino_t d_ino;
|
||||
__off_t d_off;
|
||||
uint16_t d_reclen;
|
||||
uint8_t d_type;
|
||||
char d_name[256];
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,9 @@
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
#ifndef __ZINNIA_UAPI_LIMITS_H
|
||||
#define __ZINNIA_UAPI_LIMITS_H
|
||||
|
||||
#define __PATH_MAX 4096
|
||||
#define __NAME_MAX 255
|
||||
#define __SYMLINK_MAX 4096
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,26 @@
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
#ifndef __ZINNIA_UAPI_STATVFS_H
|
||||
#define __ZINNIA_UAPI_STATVFS_H
|
||||
|
||||
#include <uapi/types.h>
|
||||
|
||||
#define __ST_RDONLY 1
|
||||
#define __ST_NOSUID 2
|
||||
#define __ST_MANDLOCK 64
|
||||
|
||||
struct __statvfs {
|
||||
uintptr_t f_bsize;
|
||||
uintptr_t f_frsize;
|
||||
__fsblkcnt_t f_blocks;
|
||||
__fsblkcnt_t f_bfree;
|
||||
__fsblkcnt_t f_bavail;
|
||||
__fsfilcnt_t f_files;
|
||||
__fsfilcnt_t f_ffree;
|
||||
__fsfilcnt_t f_favail;
|
||||
uintptr_t f_fsid;
|
||||
uintptr_t f_flag;
|
||||
uintptr_t f_namemax;
|
||||
char f_basetype[80];
|
||||
};
|
||||
|
||||
#endif
|
||||
+3
-2
@@ -3,9 +3,10 @@
|
||||
#define __ZINNIA_UAPI_UIO_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct iovec {
|
||||
void* base;
|
||||
struct __iovec {
|
||||
uintptr_t base;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user