• Home
  • Raw
  • Download

Lines Matching refs:rc

53 	int rc;  in main()  local
64 if ((rc = dm_init_service(&varstr)) != 0) { in main()
67 rc, errno); in main()
69 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
73 rc, errno); in main()
76 if ((rc = in main()
80 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
84 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
87 rc, errno); in main()
90 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
92 "dmimpl_mount failed! (rc = %d, errno = %d)\n", rc, in main()
104 rc = mkdir(DummySubdir, DUMMY_DIR_RW_MODE); in main()
106 if (rc == -1) { in main()
108 rc, errno); in main()
111 rc = rmdir(DummySubdir); in main()
112 if (rc == -1) { in main()
114 rc, errno); in main()
117 rc = umount(mountPt); in main()
118 if (rc == -1) { in main()
120 rc, errno); in main()
125 rc = dm_destroy_session(sid); in main()
126 if (rc == -1) { in main()
129 rc, errno); in main()
141 int rc; in DoTest() local
157 rc = dm_obj_ref_hold(INVALID_ADDR, token, hanp, hlen); in DoTest()
158 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
173 rc = dm_obj_ref_hold(sid, INVALID_ADDR, hanp, hlen); in DoTest()
174 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
189 rc = dm_obj_ref_hold(sid, token, (void *)INVALID_ADDR, hlen); in DoTest()
190 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EFAULT); in DoTest()
205 rc = dm_obj_ref_hold(sid, token, hanp, INVALID_ADDR); in DoTest()
206 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBADF); in DoTest()
218 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
219 if (rc == -1) { in DoTest()
228 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
229 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBUSY); in DoTest()
232 rc = dm_obj_ref_rele(sid, token, hanp, hlen); in DoTest()
233 if (rc == -1) { in DoTest()
252 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
253 if (rc == 0) { in DoTest()
269 szFuncName, rc, errno); in DoTest()
274 rc = dm_obj_ref_rele(sid, token, hanp, hlen); in DoTest()
287 rc = dm_obj_ref_hold(DM_NO_SESSION, token, hanp, hlen); in DoTest()
288 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
303 rc = dm_obj_ref_hold(sid, token, DM_GLOBAL_HANP, in DoTest()
305 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBADF); in DoTest()
322 rc = dm_obj_ref_rele(INVALID_ADDR, token, hanp, hlen); in DoTest()
323 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
338 rc = dm_obj_ref_rele(sid, INVALID_ADDR, hanp, hlen); in DoTest()
339 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
354 rc = dm_obj_ref_rele(sid, token, (void *)INVALID_ADDR, hlen); in DoTest()
355 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EFAULT); in DoTest()
370 rc = dm_obj_ref_rele(sid, token, hanp, INVALID_ADDR); in DoTest()
371 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBADF); in DoTest()
386 rc = dm_obj_ref_rele(sid, token, hanp, hlen); in DoTest()
387 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EACCES); in DoTest()
400 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
401 if (rc == -1) { in DoTest()
409 rc = dm_obj_ref_rele(sid, token, hanp, hlen); in DoTest()
410 if (rc == 0) { in DoTest()
427 szFuncName, rc, errno); in DoTest()
443 rc = dm_obj_ref_rele(DM_NO_SESSION, token, hanp, hlen); in DoTest()
444 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
459 rc = dm_obj_ref_rele(sid, token, DM_GLOBAL_HANP, in DoTest()
461 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBADF); in DoTest()
478 rc = dm_obj_ref_query(INVALID_ADDR, token, hanp, hlen); in DoTest()
479 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
494 rc = dm_obj_ref_query(sid, INVALID_ADDR, hanp, hlen); in DoTest()
495 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
510 rc = dm_obj_ref_query(sid, token, (void *)INVALID_ADDR, hlen); in DoTest()
511 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EFAULT); in DoTest()
526 rc = dm_obj_ref_query(sid, token, hanp, INVALID_ADDR); in DoTest()
527 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBADF); in DoTest()
542 rc = dm_obj_ref_query(sid, token, hanp, hlen); in DoTest()
543 DMVAR_ENDPASSEXP(szFuncName, 0, rc); in DoTest()
555 rc = dm_obj_ref_hold(sid, token, hanp, hlen); in DoTest()
556 if (rc == -1) { in DoTest()
564 rc = dm_obj_ref_query(sid, token, hanp, hlen); in DoTest()
565 DMVAR_ENDPASSEXP(szFuncName, 1, rc); in DoTest()
581 rc = dm_obj_ref_query(DM_NO_SESSION, token, hanp, hlen); in DoTest()
582 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in DoTest()
597 rc = dm_obj_ref_query(sid, token, DM_GLOBAL_HANP, in DoTest()
599 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EBADF); in DoTest()
608 int rc; in Thread() local
623 rc = dm_get_events(sid, 1, DM_EV_WAIT, sizeof(dmMsgBuf), in Thread()
627 rc, errno); in Thread()
628 } while ((rc == -1) && (errno == EINTR) && (dmMsgBufLen == 0)); in Thread()
630 if (rc) { in Thread()
633 rc, errno); in Thread()
673 rc = dm_request_right(sid, lhanp, lhlen, token, in Thread()
675 if (rc == -1) { in Thread()
678 rc, errno); in Thread()
687 rc = dm_set_disp(sid, lhanp, lhlen, token, &events, in Thread()
689 if (rc == -1) { in Thread()
692 rc, errno); in Thread()
697 rc = dm_set_eventlist(sid, lhanp, lhlen, token, &events, in Thread()
699 if (rc == -1) { in Thread()
702 rc, errno); in Thread()
707 rc = dm_release_right(sid, lhanp, lhlen, token); in Thread()
708 if (rc == -1) { in Thread()
711 rc, errno); in Thread()
756 rc = dm_respond_event(sid, token, response, in Thread()