Home | History | Annotate | Download | only in m_syswrap

Lines Matching refs:RES

1010 void ML_(buf_and_len_post_check) ( ThreadId tid, SysRes res,
1013 if (!sr_isError(res) && VG_(tdict).track_post_mem_write) {
1236 SysRes res,
1240 SysRes r = res;
1243 vg_assert(!sr_isError(res)); /* guaranteed by caller */
1263 ML_(generic_POST_sys_socket) ( ThreadId tid, SysRes res )
1265 SysRes r = res;
1266 vg_assert(!sr_isError(res)); /* guaranteed by caller */
1267 if (!ML_(fd_allowed)(sr_Res(res), "socket", tid, True)) {
1268 VG_(close)(sr_Res(res));
1272 ML_(record_fd_open_nameless)(tid, sr_Res(res));
1308 SysRes res,
1311 SysRes r = res;
1312 vg_assert(!sr_isError(res)); /* guaranteed by caller */
1313 if (!ML_(fd_allowed)(sr_Res(res), "accept", tid, True)) {
1314 VG_(close)(sr_Res(res));
1320 ML_(buf_and_len_post_check) ( tid, res, addr_p, addrlen_p,
1323 ML_(record_fd_open_nameless)(tid, sr_Res(res));
1382 SysRes res,
1391 vg_assert(!sr_isError(res)); /* guaranteed by caller */
1393 ML_(buf_and_len_post_check) ( tid, res, from_p, fromlen_p,
1417 UWord res,
1420 if (res >= 0 && arg1 != 0) {
1470 SysRes res,
1475 vg_assert(!sr_isError(res)); /* guaranteed by caller */
1476 ML_(buf_and_len_post_check) ( tid, res, name_p, namelen_p,
1497 SysRes res,
1502 vg_assert(!sr_isError(res)); /* guaranteed by caller */
1503 ML_(buf_and_len_post_check) ( tid, res, name_p, namelen_p,
1566 SysRes res;
1576 res = VG_(do_syscall4)(__NR_semctl, semid, 0, VKI_IPC_STAT, *(UWord *)&arg);
1578 res = VG_(do_syscall5)(__NR_ipc, 3 /* IPCOP_semctl */, semid, 0,
1581 if (sr_isError(res))
1658 UWord res,
1768 UWord res,
1788 d = VG_(am_notify_client_shmat)( res, segmentSize, prot );
1792 VG_TRACK( new_mem_mmap, res, segmentSize, True, True, False,
1795 VG_(discard_translations)( (Addr64)res,
1811 ML_(generic_POST_sys_shmdt) ( ThreadId tid, UWord res, UWord arg0 )
1895 UWord res,
2224 if (RES == 0 && ctrl && ctrl->len > 0) {
2227 if (RES == 0 && data && data->len > 0) {
2463 if (RES > 0) {
2464 POST_MEM_WRITE( ARG2, RES );
2528 SysRes res;
2585 res = VG_(pre_exec_check)((const Char*)ARG1, NULL, setuid_allowed);
2586 if (sr_isError(res)) {
2587 SET_STATUS_Failure( sr_Err(res) );
2909 if (!ML_(fd_allowed)(RES, "dup", tid, True)) {
2910 VG_(close)(RES);
2914 ML_(record_fd_open_named)(tid, RES);
2930 ML_(record_fd_open_named)(tid, RES);
2991 // RES is 0 for child, non-0 (the child's PID) for parent.
2992 is_child = ( RES == 0 ? True : False );
2993 child_pid = ( is_child ? -1 : RES );
2995 // RES is the child's pid. RESHI is 1 for child, 0 for parent.
2997 child_pid = RES;
3091 if (RES > 0)
3092 POST_MEM_WRITE( ARG2, RES );
3108 if (RES > 0)
3109 POST_MEM_WRITE( ARG2, RES );
3123 if (ARG1 > 0 && RES > 0)
3124 POST_MEM_WRITE( ARG2, RES * sizeof(vki_gid_t) );
3143 if (RES != (Addr)NULL)
3144 POST_MEM_WRITE( ARG1, RES );
3251 if (RES == 0)
3270 if (RES == 0) {
3341 void ML_(POST_unknown_ioctl)(ThreadId tid, UInt res, UWord request, UWord arg)
3355 && res == 0
3645 if (!ML_(fd_allowed)(RES, "open", tid, True)) {
3646 VG_(close)(RES);
3650 ML_(record_fd_open_with_given_name)(tid, RES, (Char*)ARG1);
3670 POST_MEM_WRITE( ARG2, RES );
3703 if (!ML_(fd_allowed)(RES, "creat", tid, True)) {
3704 VG_(close)(RES);
3708 ML_(record_fd_open_with_given_name)(tid, RES, (Char*)ARG1);
3740 if (RES >= 0) {
3783 if (SUCCESS && RES > 0)
3784 POST_MEM_WRITE( ARG2, RES );
3814 if (RES > 0) {
3817 Int remains = RES;
3819 /* RES holds the number of bytes read. */
4183 if (RES == 0 && ARG2 != 0)