]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
capget.2, clock_getres.2, clock_nanosleep.2, epoll_ctl.2, epoll_wait.2, eventfd.2...
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 16 Aug 2017 09:17:26 +0000 (11:17 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 16 Aug 2017 09:17:26 +0000 (11:17 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/capget.2
man2/clock_getres.2
man2/clock_nanosleep.2
man2/epoll_ctl.2
man2/epoll_wait.2
man2/eventfd.2

index e5dd2fe6fcdc0af5cde7e37a1c6e90c43862e4f2..4dba136654bb12f293bb0776fa8c3716ec1043be 100644 (file)
@@ -55,9 +55,9 @@ and
 .SS Current details
 Now that you have been warned, some current kernel details.
 The structures are defined as follows.
-.sp
-.nf
+.PP
 .in +4n
+.EX
 #define _LINUX_CAPABILITY_VERSION_1  0x19980330
 #define _LINUX_CAPABILITY_U32S_1     1
 
@@ -82,9 +82,9 @@ typedef struct __user_cap_data_struct {
    __u32 permitted;
    __u32 inheritable;
 } *cap_user_data_t;
-.fi
+.EE
 .in -4n
-.sp
+.PP
 The
 .IR effective ,
 .IR permitted ,
index fadfd9ab33ca72323758cea43157619a1a31ff35..5488e5319b61f82f2de2e46c2cd0a85fdae487d0 100644 (file)
@@ -89,14 +89,14 @@ arguments are
 .I timespec
 structures, as specified in
 .IR <time.h> :
-.sp
+.PP
 .in +4n
-.nf
+.EX
 struct timespec {
     time_t   tv_sec;        /* seconds */
     long     tv_nsec;       /* nanoseconds */
 };
-.fi
+.EE
 .in
 .PP
 The
index ac877849d8769a33bef0db5aaa2b6d8c5637d9cd..5f33b46a63779016d9bccf8e69660265efd05b9c 100644 (file)
@@ -62,14 +62,14 @@ either an absolute or a relative value.
 The time values passed to and returned by this call are specified using
 .I timespec
 structures, defined as follows:
-.sp
+.PP
 .in +4n
-.nf
+.EX
 struct timespec {
     time_t tv_sec;        /* seconds */
     long   tv_nsec;       /* nanoseconds [0 .. 999999999] */
 };
-.fi
+.EE
 .in
 .PP
 The
index 49c80486a97f4cfa3f267e524676303857e73c43..01dd1e5c38223d3892e429a6855ae6d68d1d6a1e 100644 (file)
@@ -76,9 +76,9 @@ argument describes the object linked to the file descriptor
 The
 .I struct epoll_event
 is defined as:
-.sp
+.PP
 .in +4n
-.nf
+.EX
 typedef union epoll_data {
     void        *ptr;
     int          fd;
@@ -90,7 +90,7 @@ struct epoll_event {
     uint32_t     events;      /* Epoll events */
     epoll_data_t data;        /* User data variable */
 };
-.fi
+.EE
 .in
 .PP
 The
index e98b85f22a5f3c2c7c8d56865c3cc65b3ec66a67..47e4fbaa635bb919cb92af1e1c4200e2afbff189 100644 (file)
@@ -84,9 +84,9 @@ to return immediately, even if no events are available.
 The
 .I struct epoll_event
 is defined as:
-.sp
+.PP
 .in +4n
-.nf
+.EX
 typedef union epoll_data {
     void    *ptr;
     int      fd;
@@ -98,7 +98,7 @@ struct epoll_event {
     uint32_t     events;    /* Epoll events */
     epoll_data_t data;      /* User data variable */
 };
-.fi
+.EE
 .in
 .PP
 The
index a8e0848231d3f2a318ddfe3f8a2c1e93cfd406a5..2fa5151f96b98512399fdc788120939c4d97d531 100644 (file)
@@ -339,14 +339,14 @@ where it is available.
 The GNU C library defines an additional type,
 and two functions that attempt to abstract some of the details of
 reading and writing on an eventfd file descriptor:
+.PP
 .in +4n
-.nf
-
+.EX
 typedef uint64_t eventfd_t;
 
 int eventfd_read(int fd, eventfd_t *value);
 int eventfd_write(int fd, eventfd_t value);
-.fi
+.EE
 .in
 .PP
 The functions perform the read and write operations on an
@@ -364,9 +364,9 @@ When the parent has finished sleeping,
 it reads from the eventfd file descriptor.
 .PP
 The following shell session shows a sample run of the program:
+.PP
 .in +4n
-.nf
-
+.EX
 .RB "$" " ./a.out 1 2 4 7 14"
 Child writing 1 to efd
 Child writing 2 to efd
@@ -376,7 +376,7 @@ Child writing 14 to efd
 Child completed write loop
 Parent about to read
 Parent read 28 (0x1c) from efd
-.fi
+.EE
 .in
 .SS Program source
 \&