From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: GNU C Library Subject: A patch for linuxthreads Date: Mon, 04 Sep 2000 10:48:00 -0000 Message-id: <20000904104812.A12853@valinux.com> X-SW-Source: 2000-09/msg00029.html page_roundup is faster than roundup. Since `ps' is returned from __getpagesize (), it should be ok. -- H.J. Lu (hjl@gnu.org) --- 2000-09-04 H.J. Lu * attr.c (__pthread_attr_setguardsize): Use page_roundup instead of roundup to round up to the page size. Index: attr.c =================================================================== RCS file: /work/cvs/gnu/glibc/linuxthreads/attr.c,v retrieving revision 1.1.1.2 diff -u -p -r1.1.1.2 attr.c --- attr.c 2000/08/16 00:55:46 1.1.1.2 +++ attr.c 2000/08/17 16:18:05 @@ -147,7 +147,7 @@ int __pthread_attr_setguardsize(pthread_ size_t ps = __getpagesize (); /* First round up the guard size. */ - guardsize = roundup (guardsize, ps); + guardsize = page_roundup (guardsize, ps); /* The guard size must not be larger than the stack itself */ if (guardsize >= attr->__stacksize) return EINVAL;