Re: "Writing" instead of "Warning" in dlopen(3) manpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 3, 2014 at 8:45 AM, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> On Thursday 02 January 2014 14:20:50 Michael Kerrisk (man-pages) wrote:
>>     /* According to the ISO C standard, casting between function
>>        pointers and 'void *', as done above, produces undefined results.
>>        POSIX.1-2003 and POSIX.1-2008 accepted this state of affairs and
>>        proposed the following workaround:
>>
>>            *(void **) (&cosine) = dlsym(handle, "cos");
>>
>>        This (clumsy) cast conforms with ISO C standard and will avoid
>>        any compiler warnings.
>
> "with the ISO C standard"

Thanks.

>>        The 2013 Technical Corrigendum to POSIX.1-2008 (a.k.a.
>>        POSIX.1-2013)
>
> i thought you wanted to avoid "a.k.a." ?  or does that not apply to
> parenthetical asides too ?
>
> should all these random preferences be added in man-pages(7) ?  off the top of
> my head:
>         - userspace vs user space vs user-space
>         - a.k.a. / e.g. / i.e. usage
>         - NUL usage (or lack thereof)
>         - HISTORY should be a .SS of NOTES
>         - wrapping based on periods/commas
>         - preference for 75 cols

It's one of those things that's been on my TODO list for an age. I've
made a start now, by creating a STYLE GUIDE section in man-page(7).

> some of these could even be checks added to scripts/ ...

Yes, one day...

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux