cvs commit: src/lib/libpthread/thread thr_attr_setguardsize.c thr_stack.c

David Xu davidxu at
Sun Sep 14 15:39:45 PDT 2003

davidxu     2003/09/14 15:39:44 PDT

  FreeBSD src repository

  Modified files:
    lib/libpthread/thread thr_attr_setguardsize.c thr_stack.c 
  Respect POSIX specification, a value return from pthread_attr_getguardsize
  should be a value past to pthread_attr_setguardsize, not a rounded up value.
  Also fix a stack size matching bug in thr_stack.c, now stack matching code
  uses number of pages but not bytes length to match stack size, so for example,
  size 512 bytes and size 513 bytes should both match 1 page stack size.
  Reviewed by: deischen
  Revision  Changes    Path
  1.6       +0 -8      src/lib/libpthread/thread/thr_attr_setguardsize.c
  1.8       +18 -8     src/lib/libpthread/thread/thr_stack.c

More information about the cvs-src mailing list