This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: passing private flag to SYS_futex in sem_post on x86_64
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Petar Jovanovic" <petar dot jovanovic at rt-rk dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 13 Sep 2012 10:19:09 -0700 (PDT)
- Subject: Re: passing private flag to SYS_futex in sem_post on x86_64
- References: <B65BD2E3D8FD47229A9ECC709A531FBD@domain.local>
If you touch sem_t directly rather than only using the sem_* functions,
then the behavior is undefined. It's no different from if you
clobbered a pointer-typed field in an internal data structure with a
bogus pointer.