aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/include/uapi/ioctl.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-19 09:00:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-19 08:43:51 +0000
commit6ccb48f81a0242c3ba2ddd583ded0582364eeacd (patch)
tree0ff7e4ea1f24ee4f6b3d60ccbaa7460f792879db /tools/syz-declextract/testdata/include/uapi/ioctl.h
parentd43aeb52dbe1775688e98706ff905e35487cfe3b (diff)
all: reformat C/C++ files
Diffstat (limited to 'tools/syz-declextract/testdata/include/uapi/ioctl.h')
-rw-r--r--tools/syz-declextract/testdata/include/uapi/ioctl.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/tools/syz-declextract/testdata/include/uapi/ioctl.h b/tools/syz-declextract/testdata/include/uapi/ioctl.h
index fae14a74e..6c0b01bfe 100644
--- a/tools/syz-declextract/testdata/include/uapi/ioctl.h
+++ b/tools/syz-declextract/testdata/include/uapi/ioctl.h
@@ -1,24 +1,24 @@
// Copyright 2024 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.
-#define _IOC_NONE 0U
-#define _IOC_WRITE 1U
-#define _IOC_READ 2U
+#define _IOC_NONE 0U
+#define _IOC_WRITE 1U
+#define _IOC_READ 2U
-#define _IOC_NRBITS 8
-#define _IOC_TYPEBITS 8
-#define _IOC_SIZEBITS 14
-#define _IOC_DIRBITS 2
+#define _IOC_NRBITS 8
+#define _IOC_TYPEBITS 8
+#define _IOC_SIZEBITS 14
+#define _IOC_DIRBITS 2
-#define _IOC_NRSHIFT 0
-#define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS)
-#define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS)
-#define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS)
+#define _IOC_NRSHIFT 0
+#define _IOC_TYPESHIFT (_IOC_NRSHIFT + _IOC_NRBITS)
+#define _IOC_SIZESHIFT (_IOC_TYPESHIFT + _IOC_TYPEBITS)
+#define _IOC_DIRSHIFT (_IOC_SIZESHIFT + _IOC_SIZEBITS)
-#define _IOC(dir, type, nr, size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | \
- ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT))
+#define _IOC(dir, type, nr, size) (((dir) << _IOC_DIRSHIFT) | ((type) << _IOC_TYPESHIFT) | \
+ ((nr) << _IOC_NRSHIFT) | ((size) << _IOC_SIZESHIFT))
-#define _IO(type, nr) _IOC(_IOC_NONE, (type), (nr), 0)
-#define _IOR(type, nr, arg) _IOC(_IOC_READ, (type), (nr), (sizeof(arg)))
-#define _IOW(type, nr, arg) _IOC(_IOC_WRITE, (type), (nr), (sizeof(arg)))
-#define _IOWR(type, nr, arg) _IOC(_IOC_READ|_IOC_WRITE, (type), (nr), (sizeof(arg)))
+#define _IO(type, nr) _IOC(_IOC_NONE, (type), (nr), 0)
+#define _IOR(type, nr, arg) _IOC(_IOC_READ, (type), (nr), (sizeof(arg)))
+#define _IOW(type, nr, arg) _IOC(_IOC_WRITE, (type), (nr), (sizeof(arg)))
+#define _IOWR(type, nr, arg) _IOC(_IOC_READ | _IOC_WRITE, (type), (nr), (sizeof(arg)))