Skip to contentSkip to conversation

system_data_types.7: tfix

PATCH In review Eric Wong 2 participants 2 messages May 19, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Eric Wong

author
#0 lore raw

PATCH 1/1 system_data_types.7: tfix

The actual field names omit the 'g', matching sigevent.7.

---
I really don't understand why the 'g' is omitted to give us this footgun; `struct sigevent' has longer field names...

 man7/system_data_types.7 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
man7/system_data_types.7 +2 -2
index 6bbf71004..1840a40fa 100644
@@ -183,8 +183,8 @@ POSIX.1-2001 and later.
 .PP
 .EX
 union sigval {
-    int     sigval_int; /* Integer value */
-    void   *sigval_ptr; /* Pointer value */
+    int     sival_int; /* Integer value */
+    void   *sival_ptr; /* Pointer value */
 };
 .EE
 .PP
#1 lore raw

Hi Eric,

Quoted 3 lines · Eric Wong

The actual field names omit the 'g', matching sigevent.7.

Patch applied. Thanks!

Alex

Quoted 3 lines

---
I really don't understand why the 'g' is omitted to give us this footgun; `struct sigevent' has longer field names...

v0v Confusing it is :)

Quoted 19 lines
 man7/system_data_types.7 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
man7/system_data_types.7 +2 -2
index 6bbf71004..1840a40fa 100644
@@ -183,8 +183,8 @@ POSIX.1-2001 and later.
 .PP
 .EX
 union sigval {
-    int     sigval_int; /* Integer value */
-    void   *sigval_ptr; /* Pointer value */
+    int     sival_int; /* Integer value */
+    void   *sival_ptr; /* Pointer value */
 };
 .EE
 .PP
Signature · 2 lines
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5