share Make headers assembler friendly
This commit is contained in:
@ -1,30 +1,26 @@
|
||||
#ifndef SHARE_SYSDEFS_IOCTL_H_
|
||||
#define SHARE_SYSDEFS_IOCTL_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define IOCTL_NOHANDLE (-1)
|
||||
|
||||
enum {
|
||||
IOCTL_OPENF = 0,
|
||||
IOCTL_CLOSEF = 1,
|
||||
IOCTL_READ = 2,
|
||||
IOCTL_STAT = 3,
|
||||
IOCTL_WRITE = 4,
|
||||
IOCTL_FETCHDIRENT = 5,
|
||||
};
|
||||
#define IOCTL_OPENF 0
|
||||
#define IOCTL_CLOSEF 1
|
||||
#define IOCTL_READ 2
|
||||
#define IOCTL_STAT 3
|
||||
#define IOCTL_WRITE 4
|
||||
#define IOCTL_FETCHDIRENT 5
|
||||
|
||||
enum {
|
||||
IOCTL_F_READ = 1<<0,
|
||||
IOCTL_F_WRITE = 1<<1,
|
||||
IOCTL_F_MAKE = 1<<2,
|
||||
};
|
||||
#define IOCTL_F_READ (1<<0)
|
||||
#define IOCTL_F_WRITE (1<<1)
|
||||
#define IOCTL_F_MAKE (1<<2)
|
||||
|
||||
enum {
|
||||
IOCTLSTAT_DIR = 0,
|
||||
IOCTLSTAT_FILE = 1,
|
||||
};
|
||||
#define IOCTLSTAT_DIR 0
|
||||
#define IOCTLSTAT_FILE 1
|
||||
|
||||
#if !defined(__ASSEMBLER__)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct IoctlStat {
|
||||
size_t size;
|
||||
@ -38,4 +34,6 @@ typedef struct IoctlDirent {
|
||||
|
||||
typedef int32_t IOH;
|
||||
|
||||
#endif
|
||||
|
||||
#endif // SHARE_SYSDEFS_IOCTL_H_
|
||||
|
Reference in New Issue
Block a user