# uname -sr SunOS 5.10 # ./a.out testing pthread_attr_setguardsize guards. testing thread with stack size = 0x200000, guard size = 0x1 detected available stack size 0x1fff9d, guard size >= 0x1 stack size OK (must be >= 0x1ff000) guard size OK (must be >= 0x1) testing thread with stack size = 0x200000, guard size = 0x2000 detected available stack size 0x1fff9d, guard size >= 0x2000 stack size OK (must be >= 0x1ff000) guard size OK (must be >= 0x2000) testing thread with stack size = 0x200000, guard size = 0x20000 detected available stack size 0x1fff9d, guard size >= 0x20000 stack size OK (must be >= 0x1ff000) guard size OK (must be >= 0x20000) testing thread with stack size = 0x200000, guard size = 0x200000 detected available stack size 0x1fff9d, guard size >= 0x200000 stack size OK (must be >= 0x1ff000) guard size OK (must be >= 0x200000) TEST PASSED. #