diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2021-10-21 12:20:25 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-21 15:05:44 +0200 |
| commit | 14ee1c3a7c70dc34a17fc705ea0a03f75cc6ad27 (patch) | |
| tree | d8611be33abe8eba2937b7b113025049a5442308 /sys/linux | |
| parent | 98695e08135c8492b848bb7c58e5c041d554728d (diff) | |
sys/linux: describe missing FAT ioctls
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/fs_ioctl_fat.txt | 20 | ||||
| -rw-r--r-- | sys/linux/fs_ioctl_fat.txt.const | 15 |
2 files changed, 35 insertions, 0 deletions
diff --git a/sys/linux/fs_ioctl_fat.txt b/sys/linux/fs_ioctl_fat.txt new file mode 100644 index 000000000..ed38ed4f1 --- /dev/null +++ b/sys/linux/fs_ioctl_fat.txt @@ -0,0 +1,20 @@ +# Copyright 2021 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include <uapi/linux/fs.h> +include <uapi/linux/msdos_fs.h> + +__fat_dirent { + d_ino intptr + d_off int64 + d_reclen len[d_name, int16] + d_name string[filename, 256] +} + +fat_attrs = ATTR_NONE, ATTR_RO, ATTR_HIDDEN, ATTR_SYS, ATTR_VOLUME, ATTR_DIR, ATTR_ARCH + +ioctl$VFAT_IOCTL_READDIR_BOTH(fd fd, cmd const[VFAT_IOCTL_READDIR_BOTH], arg ptr[out, array[__fat_dirent, 2]]) +ioctl$VFAT_IOCTL_READDIR_SHORT(fd fd, cmd const[VFAT_IOCTL_READDIR_SHORT], arg ptr[out, array[__fat_dirent, 2]]) +ioctl$FAT_IOCTL_GET_ATTRIBUTES(fd fd, cmd const[FAT_IOCTL_GET_ATTRIBUTES], arg ptr[out, int32]) +ioctl$FAT_IOCTL_SET_ATTRIBUTES(fd fd, cmd const[FAT_IOCTL_SET_ATTRIBUTES], arg ptr[in, flags[fat_attrs, int32]]) +ioctl$FAT_IOCTL_GET_VOLUME_ID(fd fd, cmd const[FAT_IOCTL_GET_VOLUME_ID], arg ptr[out, int32]) diff --git a/sys/linux/fs_ioctl_fat.txt.const b/sys/linux/fs_ioctl_fat.txt.const new file mode 100644 index 000000000..33d31564a --- /dev/null +++ b/sys/linux/fs_ioctl_fat.txt.const @@ -0,0 +1,15 @@ +# Code generated by syz-sysgen. DO NOT EDIT. +arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x +ATTR_ARCH = 32 +ATTR_DIR = 16 +ATTR_HIDDEN = 2 +ATTR_NONE = 0 +ATTR_RO = 1 +ATTR_SYS = 4 +ATTR_VOLUME = 8 +FAT_IOCTL_GET_ATTRIBUTES = 2147774992, mips64le:ppc64le:1074033168 +FAT_IOCTL_GET_VOLUME_ID = 2147774995, mips64le:ppc64le:1074033171 +FAT_IOCTL_SET_ATTRIBUTES = 1074033169, mips64le:ppc64le:2147774993 +VFAT_IOCTL_READDIR_BOTH = 2184212993, 386:arm:2182640129, mips64le:ppc64le:1110471169 +VFAT_IOCTL_READDIR_SHORT = 2184212994, 386:arm:2182640130, mips64le:ppc64le:1110471170 +__NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015 |
