summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-10 19:11:19 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-10 19:11:20 +0200
commit3eebc5097014fce5131dbd3235d10ac4eee65826 (patch)
tree08a3b6c0561c115a28407362e64b6fafb6023de2 /share
parent0af5965bb494182b64054fdc8e2c5cc0d68f28e8 (diff)
examples/: Update examples regarding blank lines
Recent changes reduced the number of blank lines. Update the examples to show that. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'share')
-rw-r--r--share/doc/grepc/examples/glibc/ENOMEM2
-rw-r--r--share/doc/grepc/examples/glibc/FILE2
-rw-r--r--share/doc/grepc/examples/glibc/INFINITY3
-rw-r--r--share/doc/grepc/examples/glibc/NULL7
-rw-r--r--share/doc/grepc/examples/glibc/__ptrace_request9
-rw-r--r--share/doc/grepc/examples/glibc/errno4
-rw-r--r--share/doc/grepc/examples/glibc/fd_set1
-rw-r--r--share/doc/grepc/examples/glibc/printf4
-rw-r--r--share/doc/grepc/examples/glibc/tgamma2
-rw-r--r--share/doc/grepc/examples/glibc/timespec6
-rw-r--r--share/doc/grepc/examples/glibc/uint32_t1
-rw-r--r--share/doc/grepc/examples/glibc/uint[0-9]+_t6
-rw-r--r--share/doc/grepc/examples/linux/ARRAY_SIZE52
-rw-r--r--share/doc/grepc/examples/linux/ENOMEM3
-rw-r--r--share/doc/grepc/examples/linux/LANDLOCK_RULE_PATH_BENEATH1
-rw-r--r--share/doc/grepc/examples/linux/NULL13
-rw-r--r--share/doc/grepc/examples/linux/SYSCALL_DEFINE.12
-rw-r--r--share/doc/grepc/examples/linux/\w*SYSCALL_DEFINE\w*31
-rw-r--r--share/doc/grepc/examples/linux/landlock_rule_type1
-rw-r--r--share/doc/grepc/examples/linux/off_t3
-rw-r--r--share/doc/grepc/examples/linux/open8
-rw-r--r--share/doc/grepc/examples/linux/timespec2
-rw-r--r--share/doc/grepc/examples/unit/NXT_MAYBE_UNUSED2
-rw-r--r--share/doc/grepc/examples/unit/nxt_http_field_set1
-rw-r--r--share/doc/grepc/examples/unit/nxt_http_return_ctx_t1
-rw-r--r--share/doc/grepc/examples/unit/nxt_http_route_rule_s1
-rw-r--r--share/doc/grepc/examples/unit/nxt_http_route_rule_t2
-rw-r--r--share/doc/grepc/examples/unit/nxt_inline1
-rw-r--r--share/doc/grepc/examples/unit/nxt_sprintf2
-rw-r--r--share/doc/grepc/examples/unit/nxt_uid_t1
30 files changed, 0 insertions, 184 deletions
diff --git a/share/doc/grepc/examples/glibc/ENOMEM b/share/doc/grepc/examples/glibc/ENOMEM
index fa8fa52..62d8b70 100644
--- a/share/doc/grepc/examples/glibc/ENOMEM
+++ b/share/doc/grepc/examples/glibc/ENOMEM
@@ -1,12 +1,10 @@
./sysdeps/mach/hurd/bits/errno.h:244:
-
#define ENOMEM 0x4000000c
./sysdeps/mach/hurd/bits/errno.h:26:
-
enum __error_t_codes
{
/* The value zero always means success and it is perfectly fine
diff --git a/share/doc/grepc/examples/glibc/FILE b/share/doc/grepc/examples/glibc/FILE
index 13f5a6e..f9d6c84 100644
--- a/share/doc/grepc/examples/glibc/FILE
+++ b/share/doc/grepc/examples/glibc/FILE
@@ -1,12 +1,10 @@
./libio/bits/types/FILE.h:7:
-
typedef struct _IO_FILE FILE;
./libio/bits/types/struct_FILE.h:49:
-
struct _IO_FILE
{
int _flags; /* High-order word is _IO_MAGIC; rest is flags. */
diff --git a/share/doc/grepc/examples/glibc/INFINITY b/share/doc/grepc/examples/glibc/INFINITY
index 09f26f9..ac68c51 100644
--- a/share/doc/grepc/examples/glibc/INFINITY
+++ b/share/doc/grepc/examples/glibc/INFINITY
@@ -1,15 +1,12 @@
./math/math.h:91:
-
# define INFINITY (__builtin_inff ())
./math/math.h:93:
-
# define INFINITY HUGE_VALF
./resource/sys/vlimit.h:57:
-
#define INFINITY 0x7fffffff
diff --git a/share/doc/grepc/examples/glibc/NULL b/share/doc/grepc/examples/glibc/NULL
index a6b2511..bab40aa 100644
--- a/share/doc/grepc/examples/glibc/NULL
+++ b/share/doc/grepc/examples/glibc/NULL
@@ -1,35 +1,28 @@
./intl/explodename.c:30:
-
# define NULL ((void *) 0)
./intl/explodename.c:32:
-
# define NULL 0
./intl/l10nflist.c:42:
-
# define NULL ((void *) 0)
./intl/l10nflist.c:44:
-
# define NULL 0
./stdlib/gmp-impl.h:61:
-
#define NULL ((void *) 0)
./sunrpc/rpc/types.h:57:
-
# define NULL 0
./time/strftime_l.c:136:
-
# define NULL 0
diff --git a/share/doc/grepc/examples/glibc/__ptrace_request b/share/doc/grepc/examples/glibc/__ptrace_request
index 50d501f..d64454b 100644
--- a/share/doc/grepc/examples/glibc/__ptrace_request
+++ b/share/doc/grepc/examples/glibc/__ptrace_request
@@ -1,7 +1,6 @@
./sysdeps/generic/sys/ptrace.h:28:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -100,7 +99,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h:64:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -241,7 +239,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/arm/sys/ptrace.h:29:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -426,7 +423,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/ia64/sys/ptrace.h:30:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -563,7 +559,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h:80:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -758,7 +753,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/s390/sys/ptrace.h:91:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -913,7 +907,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/sparc/sys/ptrace.h:41:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -1107,7 +1100,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/sys/ptrace.h:29:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
@@ -1262,7 +1254,6 @@ enum __ptrace_request
./sysdeps/unix/sysv/linux/x86/sys/ptrace.h:29:
-
enum __ptrace_request
{
/* Indicate that the process making this request should be traced.
diff --git a/share/doc/grepc/examples/glibc/errno b/share/doc/grepc/examples/glibc/errno
index 51a9bea..15102b8 100644
--- a/share/doc/grepc/examples/glibc/errno
+++ b/share/doc/grepc/examples/glibc/errno
@@ -1,20 +1,16 @@
./include/errno.h:20:
-
# define errno rtld_errno
./include/errno.h:27:
-
# define errno __libc_errno
./include/errno.h:29:
-
# define errno errno /* For #ifndef errno tests. */
./stdlib/errno.h:38:
-
# define errno (*__errno_location ())
diff --git a/share/doc/grepc/examples/glibc/fd_set b/share/doc/grepc/examples/glibc/fd_set
index 01e448d..a521822 100644
--- a/share/doc/grepc/examples/glibc/fd_set
+++ b/share/doc/grepc/examples/glibc/fd_set
@@ -1,7 +1,6 @@
./misc/sys/select.h:59:
-
typedef struct
{
/* XPG4.2 requires this member name. Otherwise avoid the name
diff --git a/share/doc/grepc/examples/glibc/printf b/share/doc/grepc/examples/glibc/printf
index a140ddd..7aca767 100644
--- a/share/doc/grepc/examples/glibc/printf
+++ b/share/doc/grepc/examples/glibc/printf
@@ -1,18 +1,15 @@
./libio/bits/stdio2.h:115:
-
# define printf(...) \
__printf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
./libio/stdio.h:356:
-
extern int printf (const char *__restrict __format, ...);
./libio/bits/stdio2.h:109:
-
__fortify_function int
printf (const char *__restrict __fmt, ...)
{
@@ -21,7 +18,6 @@ printf (const char *__restrict __fmt, ...)
./sysdeps/ieee754/ldbl-opt/nldbl-printf.c:3:
-
int
attribute_hidden
printf (const char *fmt, ...)
diff --git a/share/doc/grepc/examples/glibc/tgamma b/share/doc/grepc/examples/glibc/tgamma
index 7c2db3c..5431e9e 100644
--- a/share/doc/grepc/examples/glibc/tgamma
+++ b/share/doc/grepc/examples/glibc/tgamma
@@ -1,12 +1,10 @@
./math/tgmath.h:858:
-
#define tgamma(Val) __TGMATH_UNARY_REAL_ONLY (Val, tgamma)
./math/w_tgamma_template.c:32:
-
FLOAT
M_DECL_FUNC (__tgamma) (FLOAT x)
{
diff --git a/share/doc/grepc/examples/glibc/timespec b/share/doc/grepc/examples/glibc/timespec
index 2138603..1188c41 100644
--- a/share/doc/grepc/examples/glibc/timespec
+++ b/share/doc/grepc/examples/glibc/timespec
@@ -1,32 +1,26 @@
./support/timespec-add-time64.c:23:
-
# define timespec __timespec64
./support/timespec-sub-time64.c:23:
-
# define timespec __timespec64
./support/timespec-time64.c:36:
-
#define timespec __timespec64
./support/xclock_gettime_time64.c:23:
-
# define timespec __timespec64
./support/xclock_settime_time64.c:23:
-
# define timespec __timespec64
./time/bits/types/struct_timespec.h:11:
-
struct timespec
{
#ifdef __USE_TIME_BITS64
diff --git a/share/doc/grepc/examples/glibc/uint32_t b/share/doc/grepc/examples/glibc/uint32_t
index f1222ef..fc1df0d 100644
--- a/share/doc/grepc/examples/glibc/uint32_t
+++ b/share/doc/grepc/examples/glibc/uint32_t
@@ -1,5 +1,4 @@
./bits/stdint-uintn.h:26:
-
typedef __uint32_t uint32_t;
diff --git a/share/doc/grepc/examples/glibc/uint[0-9]+_t b/share/doc/grepc/examples/glibc/uint[0-9]+_t
index 98ccbb5..5ec69fb 100644
--- a/share/doc/grepc/examples/glibc/uint[0-9]+_t
+++ b/share/doc/grepc/examples/glibc/uint[0-9]+_t
@@ -1,26 +1,20 @@
./sysdeps/unix/sysv/linux/dl-vdso-setup.c:72:
-
PROCINFO_CLASS uint64_t (*_dl_vdso_get_tbfreq)(void) RELRO;
./bits/stdint-uintn.h:23:
-
-
typedef __uint8_t uint8_t;
./bits/stdint-uintn.h:25:
-
typedef __uint16_t uint16_t;
./bits/stdint-uintn.h:26:
-
typedef __uint32_t uint32_t;
./bits/stdint-uintn.h:27:
-
typedef __uint64_t uint64_t;
diff --git a/share/doc/grepc/examples/linux/ARRAY_SIZE b/share/doc/grepc/examples/linux/ARRAY_SIZE
index cce969b..9e5017d 100644
--- a/share/doc/grepc/examples/linux/ARRAY_SIZE
+++ b/share/doc/grepc/examples/linux/ARRAY_SIZE
@@ -1,260 +1,208 @@
./arch/mips/boot/tools/relocs.h:32:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./arch/powerpc/boot/types.h:7:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./arch/um/include/shared/user.h:17:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./arch/x86/boot/boot.h:31:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
./arch/x86/tools/insn_sanity.c:19:
-
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
./arch/x86/tools/relocs.h:22:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./fs/orangefs/orangefs-debug.h:21:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./fs/unicode/mkutf8data.c:63:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./include/linux/kernel.h:49:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
./samples/bpf/cookie_uid_helper_example.c:34:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
./samples/bpf/xsk_fwd.c:30:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./samples/seccomp/user-trap.c:24:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
./scripts/dtc/util.h:27:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./scripts/genksyms/genksyms.c:406:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./scripts/kallsyms.c:28:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
./scripts/kconfig/preprocess.c:15:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./scripts/mod/file2alias.c:713:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./scripts/selinux/mdp/mdp.c:40:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/gpio/gpio-utils.h:19:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/iio/iio_utils.h:18:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
./tools/include/linux/kernel.h:105:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
./tools/lib/traceevent/plugins/plugin_futex.c:15:
-
#define ARRAY_SIZE(_a) (sizeof(_a) / sizeof((_a)[0]))
./tools/lib/traceevent/plugins/plugin_xen.c:103:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/power/cpupower/utils/cpupower.c:23:
-
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
./tools/spi/spidev_test.c:26:
-
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
./tools/testing/selftests/bpf/bpf_util.h:31:
-
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/bpf/progs/netif_receive_skb.c:20:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/bpf/progs/profiler.inc.h:136:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
./tools/testing/selftests/bpf/progs/test_sysctl_loop1.c:13:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/bpf/progs/test_sysctl_loop2.c:13:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/bpf/progs/test_sysctl_prog.c:19:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/cgroup/cgroup_util.h:7:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/core/close_range_test.c:54:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/ir/ir_loopback.c:29:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/kselftest_harness.h:670:
-
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
./tools/testing/selftests/net/ipsec.c:44:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/net/reuseport_bpf.c:28:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/net/rxtimestamp.c:21:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/net/socket.c:34:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/net/tcp_fastopen_backup_key.c:38:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/rseq/basic_percpu_ops_test.c:14:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/rseq/rseq.c:32:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/seccomp/seccomp_benchmark.c:21:
-
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
./tools/testing/selftests/sparc64/drivers/adi-test.c:28:
-
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/timens/procfs.c:27:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/timens/timens.c:25:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/testing/selftests/vm/mremap_test.c:23:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
./tools/testing/selftests/vm/pkey-helpers.h:178:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
./tools/testing/selftests/vm/va_128TBswitch.c:12:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/usb/usbip/libsrc/usbip_device_driver.c:30:
-
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
./tools/virtio/linux/kernel.h:51:
-
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
./tools/vm/page-types.c:211:
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
diff --git a/share/doc/grepc/examples/linux/ENOMEM b/share/doc/grepc/examples/linux/ENOMEM
index 1369513..0565f68 100644
--- a/share/doc/grepc/examples/linux/ENOMEM
+++ b/share/doc/grepc/examples/linux/ENOMEM
@@ -1,15 +1,12 @@
./arch/powerpc/boot/stdio.h:7:
-
#define ENOMEM 12 /* Out of Memory */
./include/uapi/asm-generic/errno-base.h:16:
-
#define ENOMEM 12 /* Out of memory */
./tools/include/uapi/asm-generic/errno-base.h:16:
-
#define ENOMEM 12 /* Out of memory */
diff --git a/share/doc/grepc/examples/linux/LANDLOCK_RULE_PATH_BENEATH b/share/doc/grepc/examples/linux/LANDLOCK_RULE_PATH_BENEATH
index 8711326..93be04c 100644
--- a/share/doc/grepc/examples/linux/LANDLOCK_RULE_PATH_BENEATH
+++ b/share/doc/grepc/examples/linux/LANDLOCK_RULE_PATH_BENEATH
@@ -1,7 +1,6 @@
./include/uapi/linux/landlock.h:43:
-
enum landlock_rule_type {
/**
* @LANDLOCK_RULE_PATH_BENEATH: Type of a &struct
diff --git a/share/doc/grepc/examples/linux/NULL b/share/doc/grepc/examples/linux/NULL
index 2ba034d..7d92015 100644
--- a/share/doc/grepc/examples/linux/NULL
+++ b/share/doc/grepc/examples/linux/NULL
@@ -1,65 +1,52 @@
./arch/mips/include/asm/fw/arc/hinv.h:97:
-
#define NULL 0
./arch/parisc/math-emu/float.h:389:
-
#define NULL 0
./crypto/jitterentropy.c:60:
-
#define NULL ((void *) 0)
./drivers/media/dvb-frontends/stv0367_priv.h:24:
-
#define NULL 0
./drivers/net/fddi/skfp/h/hwmtm.h:70:
-
#define NULL 0
./drivers/net/fddi/skfp/h/sba_def.h:17:
-
#define NULL 0x00
./drivers/scsi/dpt/osd_util.h:198:
-
#define NULL 0
./drivers/video/fbdev/riva/riva_hw.h:63:
-
#define NULL 0
./include/acpi/actypes.h:415:
-
#define NULL (void *) 0
./include/linux/stddef.h:8:
-
#define NULL ((void *)0)
./tools/include/nolibc/nolibc.h:118:
-
#define NULL ((void *)0)
./tools/testing/selftests/bpf/progs/profiler.inc.h:11:
-
#define NULL 0
./tools/testing/selftests/bpf/progs/skb_pkt_end.c:7:
-
#define NULL 0
diff --git a/share/doc/grepc/examples/linux/SYSCALL_DEFINE. b/share/doc/grepc/examples/linux/SYSCALL_DEFINE.
index 5ad9f05..99325a0 100644
--- a/share/doc/grepc/examples/linux/SYSCALL_DEFINE.
+++ b/share/doc/grepc/examples/linux/SYSCALL_DEFINE.
@@ -1,7 +1,6 @@
./arch/arm64/include/asm/syscall_wrapper.h:69:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
asmlinkage long __arm64_sys_##sname(const struct pt_regs *__unused); \
@@ -10,7 +9,6 @@
./arch/s390/include/asm/syscall_wrapper.h:52:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
asmlinkage long __s390x_sys_##sname(void); \
@@ -21,7 +19,6 @@
./arch/s390/include/asm/syscall_wrapper.h:102:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
asmlinkage long __s390x_sys_##sname(void); \
@@ -30,7 +27,6 @@
./arch/x86/include/asm/syscall_wrapper.h:248:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
static long __do_sys_##sname(const struct pt_regs *__unused); \
@@ -40,7 +36,6 @@
./include/linux/syscalls.h:206:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
asmlinkage long sys_##sname(void); \
@@ -49,37 +44,30 @@
./include/linux/syscalls.h:213:
-
#define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
./include/linux/syscalls.h:214:
-
#define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
./include/linux/syscalls.h:215:
-
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
./include/linux/syscalls.h:216:
-
#define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
./include/linux/syscalls.h:217:
-
#define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
./include/linux/syscalls.h:218:
-
#define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__)
./include/linux/syscalls.h:222:
-
#define SYSCALL_DEFINEx(x, sname, ...) \
SYSCALL_METADATA(sname, x, __VA_ARGS__) \
__SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
diff --git a/share/doc/grepc/examples/linux/\w*SYSCALL_DEFINE\w* b/share/doc/grepc/examples/linux/\w*SYSCALL_DEFINE\w*
index b3c49f0..3b567bb 100644
--- a/share/doc/grepc/examples/linux/\w*SYSCALL_DEFINE\w*
+++ b/share/doc/grepc/examples/linux/\w*SYSCALL_DEFINE\w*
@@ -1,12 +1,10 @@
./include/linux/syscalls.h:224:
-
#define SYSCALL_DEFINE_MAXARGS 6
./arch/arm64/include/asm/syscall_wrapper.h:20:
-
#define COMPAT_SYSCALL_DEFINEx(x, name, ...) \
asmlinkage long __arm64_compat_sys##name(const struct pt_regs *regs); \
ALLOW_ERROR_INJECTION(__arm64_compat_sys##name, ERRNO); \
@@ -24,7 +22,6 @@
./arch/arm64/include/asm/syscall_wrapper.h:35:
-
#define COMPAT_SYSCALL_DEFINE0(sname) \
asmlinkage long __arm64_compat_sys_##sname(const struct pt_regs *__unused); \
ALLOW_ERROR_INJECTION(__arm64_compat_sys_##sname, ERRNO); \
@@ -32,7 +29,6 @@
./arch/arm64/include/asm/syscall_wrapper.h:51:
-
#define __SYSCALL_DEFINEx(x, name, ...) \
asmlinkage long __arm64_sys##name(const struct pt_regs *regs); \
ALLOW_ERROR_INJECTION(__arm64_sys##name, ERRNO); \
@@ -53,7 +49,6 @@
./arch/arm64/include/asm/syscall_wrapper.h:69:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
asmlinkage long __arm64_sys_##sname(const struct pt_regs *__unused); \
@@ -62,7 +57,6 @@
./arch/s390/include/asm/syscall_wrapper.h:74:
-
#define COMPAT_SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
long __s390_compat_sys_##sname(void); \
@@ -71,7 +65,6 @@
./arch/s390/include/asm/syscall_wrapper.h:80:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
long __s390x_sys_##sname(void); \
@@ -82,7 +75,6 @@
./arch/s390/include/asm/syscall_wrapper.h:96:
-
#define COMPAT_SYSCALL_DEFINEx(x, name, ...) \
__diag_push(); \
__diag_ignore(GCC, 8, "-Wattribute-alias", \
@@ -105,7 +97,6 @@
./arch/s390/include/asm/syscall_wrapper.h:131:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
long __s390x_sys_##sname(void); \
@@ -114,7 +105,6 @@
./arch/s390/include/asm/syscall_wrapper.h:145:
-
#define __SYSCALL_DEFINEx(x, name, ...) \
__diag_push(); \
__diag_ignore(GCC, 8, "-Wattribute-alias", \
@@ -137,7 +127,6 @@
./arch/x86/include/asm/syscall_wrapper.h:194:
-
#define COMPAT_SYSCALL_DEFINE0(name) \
static long \
__do_compat_sys_##name(const struct pt_regs *__unused); \
@@ -148,7 +137,6 @@
./arch/x86/include/asm/syscall_wrapper.h:202:
-
#define COMPAT_SYSCALL_DEFINEx(x, name, ...) \
static long __se_compat_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
static inline long __do_compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
@@ -162,7 +150,6 @@
./arch/x86/include/asm/syscall_wrapper.h:228:
-
#define __SYSCALL_DEFINEx(x, name, ...) \
static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
@@ -179,7 +166,6 @@
./arch/x86/include/asm/syscall_wrapper.h:249:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
static long __do_sys_##sname(const struct pt_regs *__unused); \
@@ -189,7 +175,6 @@
./include/linux/compat.h:46:
-
#define COMPAT_SYSCALL_DEFINE0(name) \
asmlinkage long compat_sys_##name(void); \
ALLOW_ERROR_INJECTION(compat_sys_##name, ERRNO); \
@@ -197,43 +182,36 @@
./include/linux/compat.h:52:
-
#define COMPAT_SYSCALL_DEFINE1(name, ...) \
COMPAT_SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
./include/linux/compat.h:54:
-
#define COMPAT_SYSCALL_DEFINE2(name, ...) \
COMPAT_SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
./include/linux/compat.h:56:
-
#define COMPAT_SYSCALL_DEFINE3(name, ...) \
COMPAT_SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
./include/linux/compat.h:58:
-
#define COMPAT_SYSCALL_DEFINE4(name, ...) \
COMPAT_SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
./include/linux/compat.h:60:
-
#define COMPAT_SYSCALL_DEFINE5(name, ...) \
COMPAT_SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
./include/linux/compat.h:62:
-
#define COMPAT_SYSCALL_DEFINE6(name, ...) \
COMPAT_SYSCALL_DEFINEx(6, _##name, __VA_ARGS__)
./include/linux/compat.h:71:
-
#define COMPAT_SYSCALL_DEFINEx(x, name, ...) \
__diag_push(); \
__diag_ignore(GCC, 8, "-Wattribute-alias", \
@@ -254,7 +232,6 @@
./include/linux/syscalls.h:210:
-
#define SYSCALL_DEFINE0(sname) \
SYSCALL_METADATA(_##sname, 0); \
asmlinkage long sys_##sname(void); \
@@ -263,44 +240,36 @@
./include/linux/syscalls.h:217:
-
#define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)
./include/linux/syscalls.h:218:
-
#define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _##name, __VA_ARGS__)
./include/linux/syscalls.h:219:
-
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
./include/linux/syscalls.h:220:
-
#define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name, __VA_ARGS__)
./include/linux/syscalls.h:221:
-
#define SYSCALL_DEFINE5(name, ...) SYSCALL_DEFINEx(5, _##name, __VA_ARGS__)
./include/linux/syscalls.h:222:
-
#define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__)
./include/linux/syscalls.h:226:
-
#define SYSCALL_DEFINEx(x, sname, ...) \
SYSCALL_METADATA(sname, x, __VA_ARGS__) \
__SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
./include/linux/syscalls.h:238:
-
#define __SYSCALL_DEFINEx(x, name, ...) \
__diag_push(); \
__diag_ignore(GCC, 8, "-Wattribute-alias", \
diff --git a/share/doc/grepc/examples/linux/landlock_rule_type b/share/doc/grepc/examples/linux/landlock_rule_type
index 8711326..93be04c 100644
--- a/share/doc/grepc/examples/linux/landlock_rule_type
+++ b/share/doc/grepc/examples/linux/landlock_rule_type
@@ -1,7 +1,6 @@
./include/uapi/linux/landlock.h:43:
-
enum landlock_rule_type {
/**
* @LANDLOCK_RULE_PATH_BENEATH: Type of a &struct
diff --git a/share/doc/grepc/examples/linux/off_t b/share/doc/grepc/examples/linux/off_t
index b44a37e..c792639 100644
--- a/share/doc/grepc/examples/linux/off_t
+++ b/share/doc/grepc/examples/linux/off_t
@@ -1,15 +1,12 @@
./include/linux/types.h:21:
-
typedef __kernel_off_t off_t;
./include/linux/types.h:46:
-
typedef __kernel_loff_t loff_t;
./tools/include/nolibc/nolibc.h:136:
-
typedef signed long off_t;
diff --git a/share/doc/grepc/examples/linux/open b/share/doc/grepc/examples/linux/open
index 27a09c0..bba0632 100644
--- a/share/doc/grepc/examples/linux/open
+++ b/share/doc/grepc/examples/linux/open
@@ -1,12 +1,10 @@
./drivers/tty/synclink_gt.c:140:
-
static int open(struct tty_struct *tty, struct file * filp);
./drivers/pci/hotplug/cpqphp_sysfs.c:131:
-
static int open(struct inode *inode, struct file *file)
{
struct controller *ctrl = inode->i_private;
@@ -32,7 +30,6 @@ exit:
./drivers/tty/synclink_gt.c:647:
-
static int open(struct tty_struct *tty, struct file *filp)
{
struct slgt_info *info;
@@ -104,7 +101,6 @@ cleanup:
./tools/include/nolibc/nolibc.h:2037:
-
static __attribute__((unused))
int open(const char *path, int flags, mode_t mode)
{
@@ -119,19 +115,16 @@ int open(const char *path, int flags, mode_t mode)
./include/linux/compat.h:843:
-
asmlinkage long compat_sys_open(const char __user *filename, int flags,
umode_t mode);
./include/linux/syscalls.h:1046:
-
asmlinkage long sys_open(const char __user *filename,
int flags, umode_t mode);
./fs/open.c:1192:
-
SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode)
{
if (force_o_largefile())
@@ -141,7 +134,6 @@ SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode)
./fs/open.c:1235:
-
COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode)
{
return do_sys_open(AT_FDCWD, filename, flags, mode);
diff --git a/share/doc/grepc/examples/linux/timespec b/share/doc/grepc/examples/linux/timespec
index eb1557e..e9007bc 100644
--- a/share/doc/grepc/examples/linux/timespec
+++ b/share/doc/grepc/examples/linux/timespec
@@ -1,7 +1,6 @@
./include/uapi/linux/time.h:11:
-
struct timespec {
__kernel_old_time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
@@ -9,7 +8,6 @@ struct timespec {
./tools/include/nolibc/nolibc.h:162:
-
struct timespec {
long tv_sec;
long tv_nsec;
diff --git a/share/doc/grepc/examples/unit/NXT_MAYBE_UNUSED b/share/doc/grepc/examples/unit/NXT_MAYBE_UNUSED
index 5362305..0bc3322 100644
--- a/share/doc/grepc/examples/unit/NXT_MAYBE_UNUSED
+++ b/share/doc/grepc/examples/unit/NXT_MAYBE_UNUSED
@@ -1,10 +1,8 @@
./src/nxt_clang.h:125:
-
#define NXT_MAYBE_UNUSED __attribute__((__unused__))
./src/nxt_clang.h:129:
-
#define NXT_MAYBE_UNUSED
diff --git a/share/doc/grepc/examples/unit/nxt_http_field_set b/share/doc/grepc/examples/unit/nxt_http_field_set
index fe47044..29d06f5 100644
--- a/share/doc/grepc/examples/unit/nxt_http_field_set
+++ b/share/doc/grepc/examples/unit/nxt_http_field_set
@@ -1,7 +1,6 @@
./src/nxt_http.h:98:
-
#define nxt_http_field_set(_field, _name, _value) \
do { \
(_field)->name_length = nxt_length(_name); \
diff --git a/share/doc/grepc/examples/unit/nxt_http_return_ctx_t b/share/doc/grepc/examples/unit/nxt_http_return_ctx_t
index f3b506a..b8fe7fb 100644
--- a/share/doc/grepc/examples/unit/nxt_http_return_ctx_t
+++ b/share/doc/grepc/examples/unit/nxt_http_return_ctx_t
@@ -1,7 +1,6 @@
./src/nxt_http_return.c:17:
-
typedef struct {
nxt_str_t location;
nxt_str_t encoded;
diff --git a/share/doc/grepc/examples/unit/nxt_http_route_rule_s b/share/doc/grepc/examples/unit/nxt_http_route_rule_s
index 61d747e..640548f 100644
--- a/share/doc/grepc/examples/unit/nxt_http_route_rule_s
+++ b/share/doc/grepc/examples/unit/nxt_http_route_rule_s
@@ -1,7 +1,6 @@
./src/nxt_http_route.c:107:
-
struct nxt_http_route_rule_s {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
diff --git a/share/doc/grepc/examples/unit/nxt_http_route_rule_t b/share/doc/grepc/examples/unit/nxt_http_route_rule_t
index ad3f035..3bd41c4 100644
--- a/share/doc/grepc/examples/unit/nxt_http_route_rule_t
+++ b/share/doc/grepc/examples/unit/nxt_http_route_rule_t
@@ -1,12 +1,10 @@
./src/nxt_http.h:202:
-
typedef struct nxt_http_route_rule_s nxt_http_route_rule_t;
./src/nxt_http_route.c:107:
-
struct nxt_http_route_rule_s {
/* The object must be the first field. */
nxt_http_route_object_t object:8;
diff --git a/share/doc/grepc/examples/unit/nxt_inline b/share/doc/grepc/examples/unit/nxt_inline
index e7ccbe9..20dc03c 100644
--- a/share/doc/grepc/examples/unit/nxt_inline
+++ b/share/doc/grepc/examples/unit/nxt_inline
@@ -1,5 +1,4 @@
./src/nxt_clang.h:11:
-
#define nxt_inline static inline __attribute__((always_inline))
diff --git a/share/doc/grepc/examples/unit/nxt_sprintf b/share/doc/grepc/examples/unit/nxt_sprintf
index e140f54..c22ae47 100644
--- a/share/doc/grepc/examples/unit/nxt_sprintf
+++ b/share/doc/grepc/examples/unit/nxt_sprintf
@@ -1,13 +1,11 @@
./src/nxt_sprintf.h:15:
-
NXT_EXPORT u_char *nxt_cdecl nxt_sprintf(u_char *buf, u_char *end,
const char *fmt, ...);
./src/nxt_sprintf.c:58:
-
u_char * nxt_cdecl
nxt_sprintf(u_char *buf, u_char *end, const char *fmt, ...)
{
diff --git a/share/doc/grepc/examples/unit/nxt_uid_t b/share/doc/grepc/examples/unit/nxt_uid_t
index 6665f4f..afb2aea 100644
--- a/share/doc/grepc/examples/unit/nxt_uid_t
+++ b/share/doc/grepc/examples/unit/nxt_uid_t
@@ -1,5 +1,4 @@
./src/nxt_credential.h:10:
-
typedef uid_t nxt_uid_t;