Compare commits

...
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
2013-04-19 Roland McGrath <roland@hack.frob.com>
* pthread_attr_getstack.c: Fail with EINVAL if the stack address has
not been set.
2013-04-11 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S
+3
View File
@@ -31,6 +31,9 @@ __pthread_attr_getstack (attr, stackaddr, stacksize)
assert (sizeof (*attr) >= sizeof (struct pthread_attr));
iattr = (struct pthread_attr *) attr;
if (!(iattr->flags & ATTR_FLAG_STACKADDR))
return EINVAL;
/* Store the result. */
*stackaddr = (char *) iattr->stackaddr - iattr->stacksize;
*stacksize = iattr->stacksize;