This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] S390: Sync ptrace.h with kernel. [BZ #21539]


On 07/18/2017 09:41 AM, Stefan Liebler wrote:
>> $ gcc -c -xc -o/dev/null - <<'EOF'
>> #include <asm/ptrace.h>
>> #include <sys/ptrace.h>
>> EOF
> Is this order required?

Per the synchronization headers strategy for glibc we try to support *both*
orders for important headers where possible.

https://sourceware.org/glibc/wiki/Synchronizing_Headers

> I've tried it on x86_64 RHEL 7.3:
> In file included from /usr/include/asm/ptrace.h:5:0,
>                  from <stdin>:1:
> /usr/include/sys/ptrace.h:74:4: error: expected identifier before numeric constant
>     PTRACE_GETREGS = 12,
>     ^

This is a known issue. It is known that linux/ptrace.h and sys/ptrace.h do not really
work well together. We need to fix it.

-- 
Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]