aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/include/uapi
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
parentd43aeb52dbe1775688e98706ff905e35487cfe3b (diff)
all: reformat C/C++ files
Diffstat (limited to 'tools/syz-declextract/testdata/include/uapi')
-rw-r--r--tools/syz-declextract/testdata/include/uapi/file_operations.h18
-rw-r--r--tools/syz-declextract/testdata/include/uapi/ioctl.h34
-rw-r--r--tools/syz-declextract/testdata/include/uapi/netlink_family.h22
-rw-r--r--tools/syz-declextract/testdata/include/uapi/unused_ioctl.h2
4 files changed, 38 insertions, 38 deletions
diff --git a/tools/syz-declextract/testdata/include/uapi/file_operations.h b/tools/syz-declextract/testdata/include/uapi/file_operations.h
index a4fa3a21e..c874415d3 100644
--- a/tools/syz-declextract/testdata/include/uapi/file_operations.h
+++ b/tools/syz-declextract/testdata/include/uapi/file_operations.h
@@ -3,15 +3,15 @@
#include "ioctl.h"
-#define FOO_IOCTL1 _IO('c', 1)
-#define FOO_IOCTL2 _IOR('c', 2, int)
-#define FOO_IOCTL3 _IOR('c', 3, struct foo_ioctl_arg)
-#define FOO_IOCTL4 _IOW('c', 4, struct foo_ioctl_arg)
-#define FOO_IOCTL5 _IOWR('c', 5, struct foo_ioctl_arg)
-#define FOO_IOCTL6 _IO('c', 6)
-#define FOO_IOCTL7 _IO('c', 7)
-#define FOO_IOCTL8 _IO('c', 8)
-#define FOO_IOCTL9 _IO('c', 9)
+#define FOO_IOCTL1 _IO('c', 1)
+#define FOO_IOCTL2 _IOR('c', 2, int)
+#define FOO_IOCTL3 _IOR('c', 3, struct foo_ioctl_arg)
+#define FOO_IOCTL4 _IOW('c', 4, struct foo_ioctl_arg)
+#define FOO_IOCTL5 _IOWR('c', 5, struct foo_ioctl_arg)
+#define FOO_IOCTL6 _IO('c', 6)
+#define FOO_IOCTL7 _IO('c', 7)
+#define FOO_IOCTL8 _IO('c', 8)
+#define FOO_IOCTL9 _IO('c', 9)
enum {
FOO_IOCTL10 = _IOR('c', 10, int),
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)))
diff --git a/tools/syz-declextract/testdata/include/uapi/netlink_family.h b/tools/syz-declextract/testdata/include/uapi/netlink_family.h
index ffaf66bf7..11a5dee8f 100644
--- a/tools/syz-declextract/testdata/include/uapi/netlink_family.h
+++ b/tools/syz-declextract/testdata/include/uapi/netlink_family.h
@@ -4,24 +4,24 @@
// Description of some hypothetic netlink family.
enum netlink_foo_cmds {
- NETLINK_FOO_CMD_FOO,
- NETLINK_FOO_CMD_BAR,
+ NETLINK_FOO_CMD_FOO,
+ NETLINK_FOO_CMD_BAR,
};
enum netlink_foo_attrs {
- NETLINK_FOO_ATTR1,
- NETLINK_FOO_ATTR2,
- NETLINK_FOO_ATTR3 = NETLINK_FOO_ATTR2 + 3, // make them non-dense
- NETLINK_FOO_ATTR4,
- NETLINK_FOO_ATTR5,
- NETLINK_FOO_ATTR6,
- NETLINK_FOO_ATTR7,
+ NETLINK_FOO_ATTR1,
+ NETLINK_FOO_ATTR2,
+ NETLINK_FOO_ATTR3 = NETLINK_FOO_ATTR2 + 3, // make them non-dense
+ NETLINK_FOO_ATTR4,
+ NETLINK_FOO_ATTR5,
+ NETLINK_FOO_ATTR6,
+ NETLINK_FOO_ATTR7,
};
struct netlink_foo_struct1 {
- int a, b, c;
+ int a, b, c;
};
typedef struct {
- double a, b, c;
+ double a, b, c;
} netlink_foo_struct2;
diff --git a/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h b/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h
index 6c3dbb036..b8176ffdc 100644
--- a/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h
+++ b/tools/syz-declextract/testdata/include/uapi/unused_ioctl.h
@@ -3,4 +3,4 @@
#include "ioctl.h"
-#define UNUSED_IOCTL1 _IO('c', 1)
+#define UNUSED_IOCTL1 _IO('c', 1)