.in +4n
.EX
struct uffdio_continue {
- struct uffdio_range range; /* Range to install PTEs for and continue */
- __u64 mode; /* Flags controlling the behavior of continue */
- __s64 mapped; /* Number of bytes mapped, or negated error */
+ struct uffdio_range range;
+ /* Range to install PTEs for and continue */
+ __u64 mode; /* Flags controlling the behavior of continue */
+ __s64 mapped; /* Number of bytes mapped, or negated error */
};
.EE
.in
.nf
.B "#include <aio.h>"
.PP
-.BI "int lio_listio(int " mode \
-", struct aiocb *restrict const " aiocb_list [restrict],
+.BI "int lio_listio(int " mode ,
+.BI " struct aiocb *restrict const " aiocb_list [restrict],
.BI " int " nitems ", struct sigevent *restrict " sevp );
.fi
.SH DESCRIPTION
.PP
.BI "void *(*volatile __malloc_hook)(size_t " size ", const void *" caller );
.PP
-.BI "void *(*volatile __realloc_hook)(void *" ptr ", size_t " size \
-", const void *" caller );
+.BI "void *(*volatile __realloc_hook)(void *" ptr ", size_t " size ,
+.BI " const void *" caller );
.PP
.BI "void *(*volatile __memalign_hook)(size_t " alignment ", size_t " size ,
.BI " const void *" caller );
.PP
.in +4n
.EX
-struct landlock_ruleset_attr ruleset_attr = {0};
+struct landlock_ruleset_attr attr = {0};
int ruleset_fd;
-ruleset_attr.handled_access_fs =
+attr.handled_access_fs =
LANDLOCK_ACCESS_FS_EXECUTE |
LANDLOCK_ACCESS_FS_WRITE_FILE |
LANDLOCK_ACCESS_FS_READ_FILE |
LANDLOCK_ACCESS_FS_MAKE_BLOCK |
LANDLOCK_ACCESS_FS_MAKE_SYM;
-ruleset_fd = landlock_create_ruleset(&ruleset_attr, sizeof(ruleset_attr), 0);
+ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0);
if (ruleset_fd == -1) {
perror("Failed to create a ruleset");
exit(EXIT_FAILURE);
int error; /* Negative errno or 0 for acknowledgements */
struct nlmsghdr msg; /* Message header that caused the error */
/*
- * followed by the message contents unless NETLINK_CAP_ACK was set
+ * followed by the message contents
+ * unless NETLINK_CAP_ACK was set
* or the ACK indicates success (error == 0).
* For example Generic Netlink message with attributes.
* message length is aligned with NLMSG_ALIGN()
s = socket();
setsockopt(s, IPPROTO_TCP, TCP_FASTOPEN_CONNECT, 1, ...);
connect(s);
-write(s); // write() should always follow connect() in order to trigger SYN to go out
+write(s); /* write() should always follow connect()
+ * in order to trigger SYN to go out. */
read(s)/write(s);
/* ... */
close(s);