Using GNU extension

Dmitry V. Levin ldv at altlinux.org
Fri Mar 2 10:58:52 UTC 2018


Hi,

On Fri, Mar 02, 2018 at 02:26:46PM +0900, Masatake YAMATO wrote:
> 
> I found following lines in config.h.in:
> 
>     /* Enable GNU extensions on systems that have them.  */
>     #ifndef _GNU_SOURCE
>     # undef _GNU_SOURCE
>     #endif

I think this is result of AC_USE_SYSTEM_EXTENSIONS.

> Do they mean I can use GNU extension in my patch?

It depends.  I suppose we might be using already some GNU extensions
that are portable enough.
I think it's important to keep strace working on systems still in use.

> I would like to use optional option arugment(::) in getopt.

I think it's too ugly to use, but do you have any particular use case
for strace where it could be more convenient that portable alternatives?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180302/59084508/attachment.bin>


More information about the Strace-devel mailing list