Home | History | Annotate | Download | only in pthread_attr_setstack

Lines Matching refs:rc

43 	int rc;
45 if ((rc = pthread_getattr_np(pthread_self(), &attr)) != 0) {
46 printf(ERROR_PREFIX "pthread_getattr_np: %s", strerror(rc));
49 if ((rc = pthread_attr_getstack(&attr, &saddr, &ssize)) != 0) {
50 printf(ERROR_PREFIX "pthread_attr_getstack: %s", strerror(rc));
68 int rc;
71 rc = pthread_attr_init(&attr);
72 if (rc != 0) {
73 printf(ERROR_PREFIX "pthread_attr_init: %s", strerror(rc));
78 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size);
79 if (rc != 0) {
80 printf(ERROR_PREFIX "pthread_attr_getstack: %s", strerror(rc));
93 if ((rc = posix_memalign(&stack_addr, sysconf(_SC_PAGE_SIZE),
95 printf(ERROR_PREFIX "posix_memalign: %s\n", strerror(rc));
99 if ((rc = pthread_attr_setstack(&attr, stack_addr, stack_size)) != 0) {
101 strerror(rc));
105 if ((rc = pthread_attr_getstack(&attr, &saddr, &ssize)) != 0) {
107 strerror(rc));
111 if ((rc = pthread_create(&new_th, &attr, thread_func, NULL)) != 0) {
112 printf(ERROR_PREFIX "pthread_create: %s\n", strerror(rc));
116 if ((rc = pthread_join(new_th, NULL)) != 0) {
117 printf(ERROR_PREFIX "pthread_join: %s\n", strerror(rc));
121 if ((rc = pthread_attr_destroy(&attr)) != 0) {
122 printf(ERROR_PREFIX "pthread_attr_destroy: %s\n", strerror(rc));