📄 syscall_defs.h.svn-base
字号:
/* * These ioctls are implemented through the uniform CD-ROM driver * They _will_ be adopted by all CD-ROM drivers, when all the CD-ROM * drivers are eventually ported to the uniform CD-ROM driver interface. */#define TARGET_CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */#define TARGET_CDROM_SET_OPTIONS 0x5320 /* Set behavior options */#define TARGET_CDROM_CLEAR_OPTIONS 0x5321 /* Clear behavior options */#define TARGET_CDROM_SELECT_SPEED 0x5322 /* Set the CD-ROM speed */#define TARGET_CDROM_SELECT_DISC 0x5323 /* Select disc (for juke-boxes) */#define TARGET_CDROM_MEDIA_CHANGED 0x5325 /* Check is media changed */#define TARGET_CDROM_DRIVE_STATUS 0x5326 /* Get tray position, etc. */#define TARGET_CDROM_DISC_STATUS 0x5327 /* Get disc type, etc. */#define TARGET_CDROM_CHANGER_NSLOTS 0x5328 /* Get number of slots */#define TARGET_CDROM_LOCKDOOR 0x5329 /* lock or unlock door */#define TARGET_CDROM_DEBUG 0x5330 /* Turn debug messages on/off */#define TARGET_CDROM_GET_CAPABILITY 0x5331 /* get capabilities *//* Note that scsi/scsi_ioctl.h also uses 0x5382 - 0x5386. * Future CDROM ioctls should be kept below 0x537F *//* This ioctl is only used by sbpcd at the moment */#define TARGET_CDROMAUDIOBUFSIZ 0x5382 /* set the audio buffer size */ /* conflict with SCSI_IOCTL_GET_IDLUN *//* DVD-ROM Specific ioctls */#define TARGET_DVD_READ_STRUCT 0x5390 /* Read structure */#define TARGET_DVD_WRITE_STRUCT 0x5391 /* Write structure */#define TARGET_DVD_AUTH 0x5392 /* Authentication */#define TARGET_CDROM_SEND_PACKET 0x5393 /* send a packet to the drive */#define TARGET_CDROM_NEXT_WRITABLE 0x5394 /* get next writable block */#define TARGET_CDROM_LAST_WRITTEN 0x5395 /* get last block written on disc *//* HD commands *//* hd/ide ctl's that pass (arg) ptrs to user space are numbered 0x030n/0x031n */#define TARGET_HDIO_GETGEO 0x0301 /* get device geometry */#define TARGET_HDIO_GET_UNMASKINTR 0x0302 /* get current unmask setting */#define TARGET_HDIO_GET_MULTCOUNT 0x0304 /* get current IDE blockmode setting */#define TARGET_HDIO_GET_KEEPSETTINGS 0x0308 /* get keep-settings-on-reset flag */#define TARGET_HDIO_GET_32BIT 0x0309 /* get current io_32bit setting */#define TARGET_HDIO_GET_NOWERR 0x030a /* get ignore-write-error flag */#define TARGET_HDIO_GET_DMA 0x030b /* get use-dma flag */#define TARGET_HDIO_GET_IDENTITY 0x030d /* get IDE identification info */#define TARGET_HDIO_DRIVE_CMD 0x031f /* execute a special drive command *//* hd/ide ctl's that pass (arg) non-ptr values are numbered 0x032n/0x033n */#define TARGET_HDIO_SET_MULTCOUNT 0x0321 /* change IDE blockmode */#define TARGET_HDIO_SET_UNMASKINTR 0x0322 /* permit other irqs during I/O */#define TARGET_HDIO_SET_KEEPSETTINGS 0x0323 /* keep ioctl settings on reset */#define TARGET_HDIO_SET_32BIT 0x0324 /* change io_32bit flags */#define TARGET_HDIO_SET_NOWERR 0x0325 /* change ignore-write-error flag */#define TARGET_HDIO_SET_DMA 0x0326 /* change use-dma flag */#define TARGET_HDIO_SET_PIO_MODE 0x0327 /* reconfig interface to new speed *//* from asm/termbits.h */#define TARGET_NCC 8struct target_termio { unsigned short c_iflag; /* input mode flags */ unsigned short c_oflag; /* output mode flags */ unsigned short c_cflag; /* control mode flags */ unsigned short c_lflag; /* local mode flags */ unsigned char c_line; /* line discipline */ unsigned char c_cc[TARGET_NCC]; /* control characters */};struct target_winsize { unsigned short ws_row; unsigned short ws_col; unsigned short ws_xpixel; unsigned short ws_ypixel;};#include "termbits.h"#define TARGET_MAP_SHARED 0x01 /* Share changes */#define TARGET_MAP_PRIVATE 0x02 /* Changes are private */#define TARGET_MAP_TYPE 0x0f /* Mask for type of mapping */#define TARGET_MAP_FIXED 0x10 /* Interpret addr exactly */#if defined(TARGET_MIPS)#define TARGET_MAP_ANONYMOUS 0x0800 /* don't use a file */#define TARGET_MAP_GROWSDOWN 0x1000 /* stack-like segment */#define TARGET_MAP_DENYWRITE 0x2000 /* ETXTBSY */#define TARGET_MAP_EXECUTABLE 0x4000 /* mark it as an executable */#define TARGET_MAP_LOCKED 0x8000 /* pages are locked */#define TARGET_MAP_NORESERVE 0x0400 /* don't check for reservations */#define TARGET_MAP_POPULATE 0x10000 /* populate (prefault) pagetables */#define TARGET_MAP_NONBLOCK 0x20000 /* do not block on IO */#else#define TARGET_MAP_ANONYMOUS 0x20 /* don't use a file */#define TARGET_MAP_GROWSDOWN 0x0100 /* stack-like segment */#define TARGET_MAP_DENYWRITE 0x0800 /* ETXTBSY */#define TARGET_MAP_EXECUTABLE 0x1000 /* mark it as an executable */#if defined(TARGET_PPC)#define TARGET_MAP_LOCKED 0x0080 /* pages are locked */#define TARGET_MAP_NORESERVE 0x0040 /* don't check for reservations */#else#define TARGET_MAP_LOCKED 0x2000 /* pages are locked */#define TARGET_MAP_NORESERVE 0x4000 /* don't check for reservations */#endif#define TARGET_MAP_POPULATE 0x8000 /* populate (prefault) pagetables */#define TARGET_MAP_NONBLOCK 0x10000 /* do not block on IO */#endif#if (defined(TARGET_I386) && defined(TARGET_ABI32)) || defined(TARGET_ARM) || defined(TARGET_CRIS)struct target_stat { unsigned short st_dev; unsigned short __pad1; abi_ulong st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned short st_rdev; unsigned short __pad2; abi_ulong st_size; abi_ulong st_blksize; abi_ulong st_blocks; abi_ulong target_st_atime; abi_ulong __unused1; abi_ulong target_st_mtime; abi_ulong __unused2; abi_ulong target_st_ctime; abi_ulong __unused3; abi_ulong __unused4; abi_ulong __unused5;};/* This matches struct stat64 in glibc2.1, hence the absolutely * insane amounts of padding around dev_t's. */struct target_stat64 { unsigned short st_dev; unsigned char __pad0[10];#define TARGET_STAT64_HAS_BROKEN_ST_INO 1 abi_ulong __st_ino; unsigned int st_mode; unsigned int st_nlink; abi_ulong st_uid; abi_ulong st_gid; unsigned short st_rdev; unsigned char __pad3[10]; long long st_size; abi_ulong st_blksize; abi_ulong st_blocks; /* Number 512-byte blocks allocated. */ abi_ulong __pad4; /* future possible st_blocks high bits */ abi_ulong target_st_atime; abi_ulong __pad5; abi_ulong target_st_mtime; abi_ulong __pad6; abi_ulong target_st_ctime; abi_ulong __pad7; /* will be high 32 bits of ctime someday */ unsigned long long st_ino;} __attribute__((packed));#ifdef TARGET_ARMstruct target_eabi_stat64 { unsigned long long st_dev; unsigned int __pad1; abi_ulong __st_ino; unsigned int st_mode; unsigned int st_nlink; abi_ulong st_uid; abi_ulong st_gid; unsigned long long st_rdev; unsigned int __pad2[2]; long long st_size; abi_ulong st_blksize; unsigned int __pad3; unsigned long long st_blocks; abi_ulong target_st_atime; abi_ulong target_st_atime_nsec; abi_ulong target_st_mtime; abi_ulong target_st_mtime_nsec; abi_ulong target_st_ctime; abi_ulong target_st_ctime_nsec; unsigned long long st_ino;} __attribute__ ((packed));#endif#elif defined(TARGET_SPARC64) && !defined(TARGET_ABI32)struct target_stat { unsigned int st_dev; abi_ulong st_ino; unsigned int st_mode; unsigned int st_nlink; unsigned int st_uid; unsigned int st_gid; unsigned int st_rdev; abi_long st_size; abi_long target_st_atime; abi_long target_st_mtime; abi_long target_st_ctime; abi_long st_blksize; abi_long st_blocks; abi_ulong __unused4[2];};struct target_stat64 { unsigned char __pad0[6]; unsigned short st_dev; uint64_t st_ino; uint64_t st_nlink; unsigned int st_mode; unsigned int st_uid; unsigned int st_gid; unsigned char __pad2[6]; unsigned short st_rdev; int64_t st_size; int64_t st_blksize; unsigned char __pad4[4]; unsigned int st_blocks; abi_ulong target_st_atime; abi_ulong __unused1; abi_ulong target_st_mtime; abi_ulong __unused2; abi_ulong target_st_ctime; abi_ulong __unused3; abi_ulong __unused4[3];};#elif defined(TARGET_SPARC)struct target_stat { unsigned short st_dev; abi_ulong st_ino; unsigned short st_mode; short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned short st_rdev; abi_long st_size; abi_long target_st_atime; abi_ulong __unused1; abi_long target_st_mtime; abi_ulong __unused2; abi_long target_st_ctime; abi_ulong __unused3; abi_long st_blksize; abi_long st_blocks; abi_ulong __unused4[2];};struct target_stat64 { unsigned char __pad0[6]; unsigned short st_dev; uint64_t st_ino; unsigned int st_mode; unsigned int st_nlink; unsigned int st_uid; unsigned int st_gid; unsigned char __pad2[6]; unsigned short st_rdev; unsigned char __pad3[8]; int64_t st_size; unsigned int st_blksize; unsigned char __pad4[8]; unsigned int st_blocks; unsigned int target_st_atime; unsigned int __unused1; unsigned int target_st_mtime; unsigned int __unused2; unsigned int target_st_ctime; unsigned int __unused3; unsigned int __unused4; unsigned int __unused5;};#elif defined(TARGET_PPC)struct target_stat { abi_ulong st_dev; abi_ulong st_ino;#if defined(TARGET_PPC64) && !defined(TARGET_ABI32) abi_ulong st_nlink; unsigned int st_mode;#else unsigned int st_mode; unsigned short st_nlink;#endif unsigned int st_uid; unsigned int st_gid; abi_ulong st_rdev; abi_ulong st_size; abi_ulong st_blksize; abi_ulong st_blocks; abi_ulong target_st_atime; abi_ulong target_st_atime_nsec; abi_ulong target_st_mtime; abi_ulong target_st_mtime_nsec; abi_ulong target_st_ctime; abi_ulong target_st_ctime_nsec; abi_ulong __unused4; abi_ulong __unused5;#if defined(TARGET_PPC64) && !defined(TARGET_ABI32) abi_ulong __unused6;#endif};struct target_stat64 { unsigned long long st_dev; unsigned long long st_ino; unsigned int st_mode; unsigned int st_nlink; unsigned int st_uid; unsigned int st_gid; unsigned long long st_rdev; unsigned short pad0; long long st_size; int st_blksize; long long st_blocks; /* Number 512-byte blocks allocated. */ int target_st_atime; unsigned int target_st_atime_nsec; int target_st_mtime; unsigned int target_st_mtime_nsec; int target_st_ctime; unsigned int target_st_ctime_nsec; unsigned int __unused4; unsigned int __unused5;};#elif defined(TARGET_M68K)struct target_stat { unsigned short st_dev; unsigned short __pad1; abi_ulong st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned short st_rdev; unsigned short __pad2; abi_ulong st_size; abi_ulong st_blksize; abi_ulong st_blocks; abi_ulong target_st_atime; abi_ulong __unused1; abi_ulong target_st_mtime; abi_ulong __unused2; abi_ulong target_st_ctime; abi_ulong __unused3; abi_ulong __unused4; abi_ulong __unused5;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -