This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
pthread_attr_[sg]etguardsize()
- To: libc-alpha at sources dot redhat dot com
- Subject: pthread_attr_[sg]etguardsize()
- From: Bruce <bruce at puremagic dot com>
- Date: Mon, 30 Oct 2000 00:23:56 -0700
Hello,
This might be a Unix98 conformance problem, although a minor one:
From
http://www.opennc.org/onlinepubs/007908799/xsh/pthread_attr_getguardsize.html
---quote---
A conforming implementation is permitted to round up the value
contained in guardsize to a multiple of the configurable system
variable PAGESIZE (see <sys/mman.h>). If an implementation rounds
up the value of guardsize to a multiple of PAGESIZE, a call to
pthread_attr_getguardsize() specifying attr will store in the
guardsize parameter the guard size specified by the previous
pthread_attr_setguardsize() function call.
----end----
If this is something worth fixing, I think that the attached
patch should fix it. My only uncertainty about the patch is
whether or not the symbols for pthread_attr_[sg]etguardsize()
needed to be versioned. (I suspect that they do, but I wasn't
clear on how to actually do that correctly and didn't see
anything relevant in the manual.)
- Bruce
guardsize.diff