Skip to contentSkip to conversation

small improvement for epoll_ctl.2

PATCH Yuri Kozlov 3 participants 4 messages Aug 14, 2010 – Aug 29, 2010 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hello.

tmp/epoll_ctl.2 2010-08-14 09:51:09.000000000 +0400 renamed from man2/epoll_ctl.2 2010-03-26 17:46:41.000000000 +0300 +3 -3
@@ -81,12 +81,12 @@
 typedef union epoll_data {
     void        *ptr;
     int          fd;
-    __uint32_t   u32;
-    __uint64_t   u64;
+    uint32_t   u32;
+    uint64_t   u64;
 } epoll_data_t;
 
 struct epoll_event {
-    __uint32_t   events;      /* Epoll events */
+    uint32_t   events;      /* Epoll events */
     epoll_data_t data;        /* User data variable */
 };
 .fi
Signature · 2 lines
Best Regards,
Yuri Kozlov
tmp/epoll_ctl.2 renamed from man2/epoll_ctl.2 +3 -3
@@ -81,12 +81,12 @@
 typedef union epoll_data {
     void        *ptr;
     int          fd;
-    __uint32_t   u32;
-    __uint64_t   u64;
+    uint32_t   u32;
+    uint64_t   u64;
 } epoll_data_t;
 
 struct epoll_event {
-    __uint32_t   events;      /* Epoll events */
+    uint32_t   events;      /* Epoll events */
     epoll_data_t data;        /* User data variable */
 };
 .fi
#2 lore raw
In reply to a message not in the archive

Hello Yuri,

Thanks. Applied for 3.26.

Cheers,

Michael

Quoted 26 lines · Yuri Kozlov

Hello.

tmp/epoll_ctl.2    2010-08-14 09:51:09.000000000 +0400 renamed from man2/epoll_ctl.2      2010-03-26 17:46:41.000000000 +0300 +3 -3
@@ -81,12 +81,12 @@
  typedef union epoll_data {
     void        *ptr;
     int          fd;
-    __uint32_t   u32;
-    __uint64_t   u64;
+    uint32_t   u32;
+    uint64_t   u64;
  } epoll_data_t;
 
  struct epoll_event {
-    __uint32_t   events;      /* Epoll events */
+    uint32_t   events;      /* Epoll events */

    epoll_data_t data;        /* User data variable */ };
 .fi

--
Best Regards,
Yuri Kozlov

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
In reply to a message not in the archive
Quoted 16 lines · On 2010/8/14 Yuri Kozlov wrote:

Hello.

tmp/epoll_ctl.2    2010-08-14 09:51:09.000000000 +0400 renamed from man2/epoll_ctl.2      2010-03-26 17:46:41.000000000 +0300 +3 -3
@@ -81,12 +81,12 @@
  typedef union epoll_data {
     void        *ptr;
     int          fd;
-    __uint32_t   u32;
-    __uint64_t   u64;
+    uint32_t   u32;
+    uint64_t   u64;
  } epoll_data_t;
 
  struct epoll_event {
-    __uint32_t   events;      /* Epoll events */
+    uint32_t   events;      /* Epoll events */
Quoted 3 lines

    epoll_data_t data;        /* User data variable */ };
 .fi

Hello Michael,

This patch (found in e4123e51) breaks alignment of C comments, usually you align them when describing data structures.

Denis
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
In reply to a message not in the archive
Quoted 23 lines · Denis Barbier
Quoted 16 lines · On 2010/8/14 Yuri Kozlov wrote:

Hello.

tmp/epoll_ctl.2    2010-08-14 09:51:09.000000000 +0400 renamed from man2/epoll_ctl.2      2010-03-26 17:46:41.000000000 +0300 +3 -3
@@ -81,12 +81,12 @@
  typedef union epoll_data {
     void        *ptr;
     int          fd;
-    __uint32_t   u32;
-    __uint64_t   u64;
+    uint32_t   u32;
+    uint64_t   u64;
  } epoll_data_t;
 
  struct epoll_event {
-    __uint32_t   events;      /* Epoll events */
+    uint32_t   events;      /* Epoll events */
Quoted 3 lines

    epoll_data_t data;        /* User data variable */ };
 .fi

Hello Michael,

Quoted 4 lines

This patch (found in e4123e51) breaks alignment of C comments, usually you align them when describing data structures.

Denis

Thanks Denis,

Fixed now.

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html