Home | History | Annotate | Download | only in pthread_kill

Lines Matching refs:ret

50  * UNRESOLVED(ret, descr);
51 * where descr is a description of the error and ret is an int (error code for example)
101 int ret;
107 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
109 if (ret != 0) {
110 UNRESOLVED(ret,
117 if ((ret = sem_wait(thearg->sem))) {
124 ret = kill(process, thearg->sig);
126 if (ret != 0) {
169 int ret = 0;
172 ret = pthread_sigmask(SIG_UNBLOCK, &usersigs, NULL);
174 if (ret != 0) {
175 UNRESOLVED(ret,
182 ret = pthread_kill(pthread_self(), 0);
184 if (ret == EINTR) {
188 if (ret != 0) {
189 UNRESOLVED(ret,
193 ret = pthread_kill(pthread_self(), SIGUSR1);
195 if (ret == EINTR) {
199 if (ret != 0) {
200 UNRESOLVED(ret,
211 int ret;
225 if ((ret = sigaction(SIGUSR1, &sa, NULL))) {
226 UNRESOLVED(ret, "Unable to register signal handler1");
231 if ((ret = sigaction(SIGUSR2, &sa, NULL))) {
232 UNRESOLVED(ret, "Unable to register signal handler2");
238 ret = sigaddset(&usersigs, SIGUSR1);
240 ret |= sigaddset(&usersigs, SIGUSR2);
242 if (ret != 0) {
243 UNRESOLVED(ret, "Unable to add SIGUSR1 or 2 to a signal set");
247 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
249 if (ret != 0) {
250 UNRESOLVED(ret,
263 if ((ret = pthread_create(&th_work, NULL, test, NULL))) {
264 UNRESOLVED(ret, "Worker thread creation failed");
274 if ((ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1))) {
275 UNRESOLVED(ret, "Signal 1 sender thread creation failed");
278 if ((ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2))) {
279 UNRESOLVED(ret, "Signal 2 sender thread creation failed");
291 if ((ret = pthread_join(th_sig1, NULL))) {
292 UNRESOLVED(ret, "Signal 1 sender thread join failed");
295 if ((ret = pthread_join(th_sig2, NULL))) {
296 UNRESOLVED(ret, "Signal 2 sender thread join failed");
299 if ((ret = pthread_join(th_work, NULL))) {
300 UNRESOLVED(ret, "Worker thread join failed");