Searched refs:ret (Results 51 - 75 of 5530) sorted by relevance

1234567891011>>

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/templates/
H A Dtemplate_23-1.in54 * UNRESOLVED(ret, descr);
55 * where descr is a description of the error and ret is an int
89 int ret;
102 ret = raise( SIGNAL );
104 if ( ret != 0 )
106 UNRESOLVED( ret, "Failed to raise %%MYSIG%% again" );
110 ret = sigpending( &pending );
112 if ( ret != 0 )
114 UNRESOLVED( ret, "Failed to get pending signal set" );
117 ret
[all...]
H A Dtemplate_16-1.in64 * UNRESOLVED(ret, descr);
65 * where descr is a description of the error and ret is an int
108 int ret = 0;
110 ret = sem_wait( &sem );
112 if ( ret != 0 )
130 int ret;
142 ret = sigemptyset( &sa.sa_mask );
144 if ( ret != 0 )
146 UNRESOLVED( ret, "Failed to empty signal set" );
150 ret
[all...]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_once/
H A Dstress.c51 * UNRESOLVED(ret, descr);
52 * where descr is a description of the error and ret is an int (error code for example)
99 int ret = 0; local
100 ret = pthread_mutex_lock(&mtx);
102 if (ret != 0) {
103 UNRESOLVED(ret, "Failed to lock mutex in initializer");
108 ret = pthread_mutex_unlock(&mtx);
110 if (ret != 0) {
111 UNRESOLVED(ret, "Failed to unlock mutex in initializer");
120 int ret local
142 int ret = 0, i; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/
H A D2-1.c60 * UNRESOLVED(ret, descr);
61 * where descr is a description of the error and ret is an int (error code for example)
220 int ret = 0; local
225 ret = pthread_mutex_lock(&td->mtx1);
226 if (ret != 0) {
227 UNRESOLVED(ret, "Failed to lock mutex in child");
237 ret = clock_gettime(td->cid, &ts);
238 if (ret != 0) {
247 ret = pthread_cond_timedwait(&td->cnd, &td->mtx1, &ts);
249 ret
334 int ret; local
[all...]
/external/ltp/testcases/network/can/filter-tests/
H A Dcan_run_tests.sh34 ret=$?
35 if [ $ret -ne 0 ]; then
36 tst_brkm TCONF "modprobe can failed: ret - $ret"
40 ret=$?
41 if [ $ret -ne 0 ]; then
42 tst_brkm TCONF "modprobe can_raw failed: ret - $ret"
47 ret=$?
48 if [ $ret
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D12-1.c56 int ret, status; local
64 ret = sigemptyset(&mask);
66 if (ret != 0) {
70 ret = sigaddset(&mask, SIGUSR1);
72 if (ret != 0) {
76 ret = sigaddset(&mask, SIGUSR2);
78 if (ret != 0) {
82 ret = sigprocmask(SIG_BLOCK, &mask, NULL);
84 if (ret != 0) {
89 ret
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
H A D14-1.c58 * UNRESOLVED(ret, descr);
59 * where descr is a description of the error and ret is an int (error code for example)
123 int ret; local
129 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
130 if (ret != 0) {
131 UNRESOLVED(ret,
137 if ((ret = sem_wait(thearg->sem))) {
143 ret = kill(process, thearg->sig);
144 if (ret != 0) {
177 int ret; local
195 int ret = 0; local
278 int ret; local
[all...]
H A D12-1.c31 int ret; local
33 ret = pthread_create(&new_th, NULL, a_thread_func, NULL);
34 if (ret != 0) {
36 ret, strerror(ret));
H A D3-2.c71 * UNRESOLVED(ret, descr);
72 * where descr is a description of the error and ret is an int (error code for example)
122 int ret = 0; local
129 ret = sem_wait(&semsync[0]);
131 while ((ret == -1) && (errno == EINTR));
132 if (ret == -1) {
141 ret = sem_post(&semsync[1]);
143 while ((ret == -1) && (errno == EINTR));
144 if (ret == -1) {
187 int ret; local
323 int newpol, ret = 0; local
407 int ret = 0; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
H A D6-3.c71 int ret; local
77 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
78 if (ret != 0)
79 UNRESOLVED(ret, "Unable to block SIGUSR1 and SIGUSR2 "
84 ret = sem_wait(thearg->sem);
85 if (ret)
90 ret = kill(process, thearg->sig);
91 if (ret != 0)
125 int ret = 0; local
129 ret
169 int ret; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/
H A D1-2.c60 * UNRESOLVED(ret, descr);
61 * where descr is a description of the error and ret is an int (error code for example)
103 int ret = 0; local
106 ret = pthread_detach(pthread_self());
107 if (ret != 0) {
108 UNRESOLVED(ret, "Failed to detach the thread");
114 ret = sem_post(&(scenarii[sc].sem));
116 while ((ret == -1) && (errno == EINTR));
117 if (ret == -1) {
126 int ret local
[all...]
/external/libunwind/src/sh/
H A DGis_signal_frame.c75 int ret; local
83 ret = (*a->access_mem) (as, ip, &w0, 0, arg);
84 if (ret < 0)
85 return ret;
90 ret = (*a->access_mem) (as, ip+4, &w0, 0, arg);
91 if (ret < 0)
92 return ret;
97 ret = (*a->access_mem) (as, ip+8, &w0, 0, arg);
98 if (ret < 0)
99 return ret;
[all...]
/external/libavc/common/
H A Dih264_buf_mgr.c173 IH264_ERROR_T ret = IH264_SUCCESS; local
184 return ret;
208 WORD32 ret; local
209 ret = ithread_mutex_destroy(ps_buf_mgr->pv_mutex);
211 if(0 == ret)
293 IH264_ERROR_T ret = IH264_SUCCESS; local
294 ret = ih264_buf_mgr_lock(ps_buf_mgr);
295 RETURN_IF((ret != IH264_SUCCESS), ret);
300 ret
351 IH264_ERROR_T ret = IH264_SUCCESS; local
397 IH264_ERROR_T ret = IH264_SUCCESS; local
450 IH264_ERROR_T ret = IH264_SUCCESS; local
512 IH264_ERROR_T ret = IH264_SUCCESS; local
563 IH264_ERROR_T ret = IH264_SUCCESS; local
602 IH264_ERROR_T ret = IH264_SUCCESS; local
643 IH264_ERROR_T ret = IH264_SUCCESS; local
684 IH264_ERROR_T ret = IH264_SUCCESS; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/
H A D4-3.c54 * UNRESOLVED(ret, descr);
55 * where descr is a description of the error and ret is an int (error code for example)
135 int ret; local
141 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
142 if (ret != 0) {
143 UNRESOLVED(ret,
149 if ((ret = sem_wait(thearg->sem))) {
155 ret = kill(process, thearg->sig);
156 if (ret != 0) {
188 int ret local
311 int ret; local
[all...]
/external/libunwind/src/mi/
H A DGget_proc_info_by_ip.c33 int ret; local
35 ret = unwi_find_dynamic_proc_info (as, ip, pi, 0, as_arg);
36 if (ret == -UNW_ENOINFO)
37 ret = (*a->find_proc_info) (as, ip, pi, 0, as_arg);
38 return ret;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/
H A D1-1.c45 int ret; local
54 if ((ret =
59 ret);
64 if ((ret =
68 ret);
H A D3-1.c37 int ret; local
40 ret = pthread_mutexattr_setpshared(&mta, PTHREAD_PROCESS_PRIVATE);
41 if (ret != 0) {
42 if (ret == EINVAL) {
48 ret);
H A D3-2.c40 int ret; local
43 ret = pthread_mutexattr_setpshared(&mta, INVALID_PSHARED_VALUE);
44 if (ret != 0) {
45 if (ret == EINVAL) {
51 ret);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/
H A D1-1.c39 int ret; local
46 ret = pthread_once(&once_control, an_init_func);
47 if (ret != 0) {
53 ret = pthread_once(&once_control, an_init_func);
54 if (ret != 0) {
/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_getvalue/
H A Dstress.c45 * UNRESOLVED(ret, descr);
46 * where descr is a description of the error and ret is an int (error code for example)
86 int ret = 0; local
90 ret = sem_post(arg);
92 if (ret != 0) {
98 ret = sem_wait(arg);
99 } while ((ret != 0) && (errno == EINTR));
101 if (ret != 0) {
113 int ret = 0, value; local
131 if ((ret
[all...]
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_trylock/
H A Dstress.c26 * -> each thread loops on pthread_mutex_trylock while ret == EBUSY and go_on is true..
27 * -> if ret == 0 && go_on is true, wait on a barrier then go_on = 0.
28 * -> if ret == 0 unlock the mutex
67 * UNRESOLVED(ret, descr);
68 * where descr is a description of the error and ret is an int (error code for example)
167 int ret = 0, ret2 = 0; local
173 ret = pthread_mutex_trylock(td->mtx);
180 while ((ret == EBUSY) && (go_on == 1));
182 /* if go_on==1 and ret == 0 */
183 if ((go_on == 1) && (ret
213 int ret; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
H A D3-2.c51 * UNRESOLVED(ret, descr);
52 * where descr is a description of the error and ret is an int
103 int ret, status; local
107 ret = pthread_mutex_lock(&mtx);
109 if (ret != 0) {
110 UNRESOLVED(ret, "Failed to lock mutex");
113 ret = pthread_mutex_unlock(&mtx);
115 if (ret != 0) {
116 UNRESOLVED(ret, "Failed to unlock mutex");
166 int ret, local
[all...]
/external/valgrind/memcheck/tests/solaris/
H A Dspawn.c22 int ret = system(EXE_NAME); local
23 if (ret != 0)
27 ret = system(NULL);
28 if (ret == 0)
34 ret = posix_spawn(&child, EXE_NAME, NULL, NULL, argv_exe, envp);
35 if (ret != 0)
41 ret = posix_spawn_file_actions_init(&fa);
42 if (ret != 0)
44 ret = posix_spawn_file_actions_addopen(&fa, 10, "/dev/null", O_RDONLY, 0);
45 if (ret !
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
H A D4-1.c52 * UNRESOLVED(ret, descr);
53 * where descr is a description of the error and ret is an int
84 int ret = 0; local
97 ret = pthread_getschedparam(thread, &t_pol, &t_parm);
99 if (ret != 0) {
100 UNRESOLVED(ret, "Failed to get thread's parameters");
115 int ret = 0; local
122 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &sp);
124 if (ret != 0) {
125 UNRESOLVED(ret,
160 int ret = 0; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/
H A D2-2.c51 * UNRESOLVED(ret, descr);
52 * where descr is a description of the error and ret is an int
82 int ret; local
85 ret = sem_wait(arg);
86 } while ((ret != 0) && (errno == EINTR));
88 if (ret != 0) {
98 int ret, val; local
106 ret = sem_init(&sem, 0, 0);
108 if (ret != 0) {
113 ret
[all...]

Completed in 409 milliseconds

1234567891011>>