Skip to contentSkip to conversation

sigaction.2: s/sigval_t/union sigval/

BUG Alejandro Colomar 2 participants 2 messages Sep 16, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hi Michael,

sigaction.2 uses the name 'sigval_t', which is:

// <x86_64-linux-gnu/bits/types/__sigval_t.h>
/* Type for data associated with a signal. */
#ifdef __USE_POSIX199309
union sigval
{
int sival_int;
void *sival_ptr;
};

typedef union sigval __sigval_t;
#else
union __sigval
{
int __sival_int;
void *__sival_ptr;
};

typedef union __sigval __sigval_t;
#endif

and then:

x86_64-linux-gnu/bits/types/sigval_t.h:16:typedef __sigval_t sigval_t;

I think the man page should use the POSIX naming, shouldn't it?

___________

BTW: I sent Draft v6 for system_data_types.7 2h+ ago, but I don't see it on lore.kernel.org.

Did you receive it? Should I wait, or send it again?

Thanks,

Alex

#1 lore raw

Hello Alex,

Quoted 27 lines · Alejandro Colomar

Hi Michael,

sigaction.2 uses the name 'sigval_t', which is:

// <x86_64-linux-gnu/bits/types/__sigval_t.h>
/* Type for data associated with a signal. */
#ifdef __USE_POSIX199309
union sigval

{
   int sival_int;
   void *sival_ptr;
};

typedef union sigval __sigval_t;
#else
union __sigval

{
   int __sival_int;
   void *__sival_ptr;
};

typedef union __sigval __sigval_t;
#endif

Quoted 6 lines

and then:

x86_64-linux-gnu/bits/types/sigval_t.h:16:typedef __sigval_t sigval_t;

I think the man page should use the POSIX naming, shouldn't it?

Yes, it should. Thanks for spotting that. I've fixed it.

Quoted 6 lines

___________

BTW: I sent Draft v6 for system_data_types.7 2h+ ago, but I don't see it on lore.kernel.org.

Did you receive it? Should I wait, or send it again?

So far, I didn't see anything except v6, about 3.5 hours ago.

Thanks,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/