Home | History | Annotate | Download | only in m_syswrap

Lines Matching defs:arg1

1078 // Always use with low-numbered arg first (e.g. LOHI64(ARG1,ARG2) )
1116 PRINT("ioctl ( %lu, 0x%lx )", ARG1, ARG2);
1121 PRINT("ioctl ( %lu, 0x%lx, %#lx )", ARG1, ARG2, ARG3);
1555 PRINT("fcntl ( %lu, %lu )", ARG1,ARG2);
1564 PRINT("fcntl[ARG3=='arg'] ( %lu, %lu, %lu )", ARG1,ARG2,ARG3);
1573 PRINT("fcntl[ARG3=='lock'] ( %lu, %lu, %#lx )", ARG1,ARG2,ARG3);
1583 PRINT("fcntl[ARG3=='locktimeout'] ( %lu, %lu, %#lx )", ARG1,ARG2,ARG3);
1599 PRINT("fcntl ( %lu, %s, %lu )", ARG1, name_for_fcntl(ARG1), ARG2);
1605 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1626 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1634 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1651 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1662 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1672 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1682 PRINT("fcntl ( %lu, %s, %#lx '%s')", ARG1, name_for_fcntl(ARG2), ARG3,
1691 PRINT("fcntl ( %lu, %s )", ARG1, name_for_fcntl(ARG2));
1710 PRINT("fcntl ( %lu, %s, %#lx )", ARG1, name_for_fcntl(ARG2), ARG3);
1741 PRINT("fcntl ( %lu, %lu [??] )", ARG1, ARG2);
1805 if (!ML_(fd_allowed)(ARG1, "futimes", tid, False)) {
1825 ML_(generic_PRE_sys_semop)(tid, ARG1,ARG2,ARG3);
1854 ML_(generic_PRE_sys_semctl)(tid, ARG1,ARG2,ARG3,ARG4);
1858 ML_(generic_POST_sys_semctl)(tid, RES,ARG1,ARG2,ARG3,ARG4);
1866 ARG1, (HChar*)ARG1, SARG2, ARG3, ARG4);
1872 PRINT("sem_open ( %#lx(%s), %ld )", ARG1, (HChar*)ARG1, SARG2);
1876 PRE_MEM_RASCIIZ( "sem_open(name)", ARG1 );
1884 PRINT("sem_close( %#lx )", ARG1);
1890 PRINT("sem_unlink( %#lx(%s) )", ARG1, (HChar*)ARG1);
1892 PRE_MEM_RASCIIZ( "sem_unlink(name)", ARG1 );
1897 PRINT("sem_post( %#lx )", ARG1);
1904 PRINT("sem_destroy( %#lx )", ARG1);
1906 PRE_MEM_READ("sem_destroy(sem)", ARG1, sizeof(vki_sem_t));
1911 PRINT("sem_init( %#lx, %ld, %lu )", ARG1, SARG2, ARG3);
1914 PRE_MEM_WRITE("sem_init(sem)", ARG1, sizeof(vki_sem_t));
1919 POST_MEM_WRITE(ARG1, sizeof(vki_sem_t));
1924 PRINT("sem_wait( %#lx )", ARG1);
1931 PRINT("sem_trywait( %#lx )", ARG1);
1956 ARG1, ARG2);
1962 ARG1, (char*)ARG1, ARG2, ARG3, ARG4);
1968 ARG1, ARG2);
1986 ARG1, ARG2);
1992 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
1998 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8);
2004 ARG1, ARG2, ARG3);
2069 PRINT("bsdthread_register( %#lx, %#lx, %lu )", ARG1, ARG2, ARG3);
2073 pthread_starter = ARG1;
2076 ARG1 = (Word)&pthread_hijack_asm;
2105 PRINT("workq_ops( %ld(%s), %#lx, %ld )", SARG1, workqop_name(ARG1), ARG2,
2110 switch (ARG1) {
2141 VG_(printf)("UNKNOWN workq_ops option %ld\n", ARG1);
2149 switch (ARG1) {
2166 ARG1, (HChar*)ARG1, SARG2, ARG3);
2197 VG_(threads)[t].os_state.exitcode = ARG1;
2229 VG_(do_sys_sigaction)(ARG1, (const vki_sigaction_toK_t *)ARG2,
2243 PRINT("__pthread_kill ( %#lx, %ld )", ARG1, SARG2);
2251 UWord arg1;
2260 /* Massage ARG1 ('how'). If ARG2 (the new mask) is NULL then the
2270 arg1 = ARG1;
2272 && ARG1 != VKI_SIG_BLOCK
2273 && ARG1 != VKI_SIG_UNBLOCK && ARG1 != VKI_SIG_SETMASK) {
2274 arg1 = VKI_SIG_SETMASK;
2277 VG_(do_sys_sigprocmask) ( tid, arg1, (vki_sigset_t*)ARG2,
2297 PRINT("__pthread_canceled ( %#lx )", ARG1);
2298 PRE_REG_READ1(long, "__pthread_canceled", void*, arg1);
2305 PRINT("__pthread_markcancel ( %#lx )", ARG1);
2306 PRE_REG_READ1(long, "__pthread_markcancel", void*, arg1);
2333 PRINT("__pthread_chdir ( %#lx(%s) )", ARG1, (HChar*)ARG1);
2335 PRE_MEM_RASCIIZ( "__pthread_chdir(path)", ARG1 );
2342 PRINT("__pthread_fchdir ( %lu )", ARG1);
2354 int,"code", int,"arg1", int,"arg2",
2362 PRINT("seteuid(%lu)", ARG1);
2369 PRINT("setegid(%lu)", ARG1);
2375 PRINT("settid(%lu, %lu)", ARG1, ARG2);
2390 PRINT("watchevent(%#lx, %#lx)", ARG1, ARG2);
2394 PRE_MEM_READ("watchevent(event)", ARG1, sizeof(vki_eventreq));
2402 PRINT("waitevent(%#lx, %#lx)", ARG1, ARG2);
2405 PRE_MEM_WRITE("waitevent(event)", ARG1, sizeof(vki_eventreq));
2417 POST_MEM_WRITE(ARG1, sizeof(vki_eventreq));
2422 PRINT("modwatch(%#lx, %#lx)", ARG1, ARG2);
2426 PRE_MEM_READ("modwatch(event)", ARG1, sizeof(vki_eventreq));
2433 ARG1, (HChar *)ARG1, ARG2, (HChar *)ARG2, ARG3, ARG4, ARG5, SARG6);
2438 PRE_MEM_RASCIIZ("getxattr(path)", ARG1);
2472 ARG1, (HChar *)ARG1, ARG2, (HChar*)ARG2, ARG3, ARG4, ARG5, SARG6 );
2477 PRE_MEM_RASCIIZ( "setxattr(path)", ARG1 );
2499 ARG1, (HChar*)ARG1, ARG2, (HChar*)ARG2, SARG3 );
2502 PRE_MEM_RASCIIZ( "removexattr(path)", ARG1 );
2520 ARG1, (HChar *)ARG1, ARG2, ARG3, SARG4 );
2525 PRE_MEM_RASCIIZ( "listxattr(path)", ARG1 );
2561 arg2tmp = ML_(generic_PRE_sys_shmat)(tid, ARG1,ARG2,ARG3);
2569 ML_(generic_POST_sys_shmat)(tid, RES,ARG1,ARG2,ARG3);
2577 ML_(generic_PRE_sys_shmctl)(tid, ARG1,ARG2,ARG3);
2581 ML_(generic_POST_sys_shmctl)(tid, RES,ARG1,ARG2,ARG3);
2586 PRINT("shmdt ( %#lx )",ARG1);
2588 if (!ML_(generic_PRE_sys_shmdt)(tid, ARG1))
2593 ML_(generic_POST_sys_shmdt)(tid, RES,ARG1);
2604 PRINT("shm_open(%#lx(%s), %ld, %lu)", ARG1, (HChar *)ARG1, SARG2, ARG3);
2608 PRE_MEM_RASCIIZ( "shm_open(filename)", ARG1 );
2620 ML_(record_fd_open_with_given_name)(tid, RES, (HChar*)ARG1);
2627 PRINT("shm_unlink ( %#lx(%s) )", ARG1, (HChar*)ARG1);
2629 PRE_MEM_RASCIIZ( "shm_unlink(pathname)", ARG1 );
2643 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4);
2646 PRE_MEM_RASCIIZ( "stat_extended(file_name)", ARG1 );
2664 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4);
2667 PRE_MEM_RASCIIZ( "lstat_extended(file_name)", ARG1 );
2705 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4);
2708 PRE_MEM_RASCIIZ( "stat64_extended(file_name)", ARG1 );
2726 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4);
2729 PRE_MEM_RASCIIZ( "lstat64_extended(file_name)", ARG1 );
2769 ARG1, ARG2, ARG3, ARG4, ARG5);
2790 ARG1, ARG1 ? (HChar*)ARG1 : "(null)", ARG2, ARG3, ARG4, ARG5);
2797 PRE_MEM_RASCIIZ("chmod_extended(path)", ARG1);
2812 ARG1, ARG1 ? (HChar*)ARG1 : "(null)",
2821 PRE_MEM_RASCIIZ("open_extended(path)", ARG1);
2856 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4);
2862 PRE_MEM_READ("access_extended(entries)", ARG1, ARG2 );
2875 struct vki_accessx_descriptor* entries = (struct vki_accessx_descriptor*)ARG1;
2916 PRINT("chflags ( %#lx(%s), %lu )", ARG1, (HChar *)ARG1, ARG2);
2918 PRE_MEM_RASCIIZ("chflags(path)", ARG1);
2933 PRINT("stat64 ( %#lx(%s), %#lx )", ARG1, (HChar *)ARG1, ARG2);
2935 PRE_MEM_RASCIIZ("stat64(path)", ARG1);
2945 PRINT("lstat64 ( %#lx(%s), %#lx )", ARG1, (HChar *)ARG1, ARG2);
2947 PRE_MEM_RASCIIZ("lstat64(path)", ARG1);
2957 PRINT("fstat64 ( %lu, %#lx )", ARG1,ARG2);
2968 PRINT("getfsstat(%#lx, %ld, %ld)", ARG1, SARG2, SARG3);
2971 if (ARG1) {
2973 PRE_MEM_WRITE("getfsstat(buf)", ARG1, ARG2);
2978 if (ARG1) {
2980 POST_MEM_WRITE(ARG1, RES * sizeof(struct vki_statfs));
2986 PRINT("getfsstat64(%#lx, %ld, %ld)", ARG1, SARG2, SARG3);
2989 if (ARG1) {
2991 PRE_MEM_WRITE("getfsstat64(buf)", ARG1, ARG2);
2996 if (ARG1) {
2998 POST_MEM_WRITE(ARG1, RES * sizeof(struct vki_statfs64));
3009 ARG1, (HChar*)ARG1, ARG2, (HChar*)ARG2, ARG3, ARG4);
3013 PRE_MEM_RASCIIZ( "mount(type)", ARG1);
3199 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4, ARG5);
3203 PRE_MEM_RASCIIZ("getattrlist(path)", ARG1);
3227 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4, ARG5);
3231 PRE_MEM_RASCIIZ("setattrlist(path)", ARG1);
3282 ARG1, (HChar*)ARG1, ARG2, (HChar*)ARG2, ARG3);
3285 PRE_MEM_RASCIIZ( "exchangedata(path1)", ARG1 );
3292 ARG1, (HChar *)ARG1, ARG2, ARG3, ARG4);
3297 PRE_MEM_RASCIIZ( "fsctl(path)", ARG1 );
3350 PRINT("initgroups(%s, %#lx, %lu)", (HChar *)ARG1, ARG2, ARG3);
3353 PRE_MEM_READ("gidset", ARG2, ARG1 * sizeof(vki_gid_t));
3418 ARG1, ARG2, ARG2 ? (HChar*)ARG2 : "(null)", ARG3, ARG4, ARG5 );
3424 PRE_MEM_WRITE("posix_spawn(pid)", ARG1, sizeof(vki_pid_t) );
3436 ARG1, ARG2, ARG2 ? (HChar*)ARG2 : "(null)", ARG3, ARG4, ARG5 );
3600 if (ARG1 != 0) {
3601 POST_MEM_WRITE( ARG1, sizeof(vki_pid_t) );
3628 ML_(generic_PRE_sys_setsockopt)(tid, ARG1,ARG2,ARG3,ARG4,ARG5);
3673 ML_(generic_PRE_sys_connect)(tid, ARG1,ARG2,ARG3);
3683 ML_(generic_PRE_sys_accept)(tid, ARG1,ARG2,ARG3);
3691 ARG1,ARG2,ARG3);
3698 PRINT("mkfifo ( %#lx(%s), %lx )", ARG1, (HChar *)ARG1, ARG2);
3700 PRE_MEM_RASCIIZ( "mkfifo(path)", ARG1 );
3711 ML_(record_fd_open_with_given_name)(tid, RES, (HChar*)ARG1);
3724 ML_(generic_PRE_sys_sendto)(tid, ARG1,ARG2,ARG3,ARG4,ARG5,ARG6);
3772 ML_(generic_PRE_sys_recvfrom)(tid, ARG1,ARG2,ARG3,ARG4,ARG5,ARG6);
3779 ARG1,ARG2,ARG3,ARG4,ARG5,ARG6);
3820 ML_(generic_PRE_sys_bind)(tid, ARG1,ARG2,ARG3);
3836 ML_(generic_PRE_sys_getsockname)(tid, ARG1,ARG2,ARG3);
3843 ARG1,ARG2,ARG3);
3852 ML_(generic_PRE_sys_getpeername)(tid, ARG1,ARG2,ARG3);
3859 ARG1,ARG2,ARG3);
3868 ML_(generic_PRE_sys_socketpair)(tid, ARG1,ARG2,ARG3,ARG4);
3875 ARG1,ARG2,ARG3,ARG4);
3881 PRINT("gethostuuid ( %#lx, %#lx )", ARG1, ARG2);
3886 PRE_MEM_WRITE("uuid_buf", ARG1, 16);
3895 POST_MEM_WRITE(ARG1, 16);
3928 PRINT("getlogin ( %#lx, %lu )", ARG1, ARG2);
3932 PRE_MEM_WRITE("getlogin(namebuf)", ARG1, ARG2);
3937 POST_MEM_WRITE(ARG1, ARG2);
3975 PRINT("lseek ( %lu, %ld, %ld )", ARG1, SARG2, SARG3);
3984 PRINT("pathconf(%#lx(%s), %ld)", ARG1, (HChar *)ARG1, SARG2);
3986 PRE_MEM_RASCIIZ("pathconf(path)", ARG1);
3995 if (!ML_(fd_allowed)(ARG1, "fpathconf", tid, False))
4044 PRINT("statfs64 ( %#lx(%s), %#lx )", ARG1, (HChar *)ARG1, ARG2);
4046 PRE_MEM_RASCIIZ( "statfs64(path)", ARG1 );
4057 PRINT("fstatfs64 ( %lu, %#lx )", ARG1, ARG2);
4078 if (!ARG1 || VG_(getpid)() == ARG1) {
4098 switch (ARG1) {
4149 VG_(message)(Vg_UserMsg, "UNKNOWN auditon cmd %ld\n", ARG1);
4155 switch (ARG1) {
4210 PRINT("getaudit_addr(%#lx, %ld)", ARG1, SARG2);
4212 PRE_MEM_WRITE("getaudit_addr(auditinfo_addr)", ARG1, ARG2);
4216 POST_MEM_WRITE(ARG1, ARG2);
4227 ARG1, ARG2, SARG3, SARG4, SARG5, LOHI64(ARG6, ARG7) );
4233 // r = ML_(generic_PRE_sys_mmap)( tid, ARG1, ARG2, ARG3, ARG4, ARG5,
4237 ARG1, ARG2, SARG3, SARG4, SARG5, SARG6 );
4241 // r = ML_(generic_PRE_sys_mmap)( tid, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6 );
4327 UWord name = ARG1;
4383 PRINT( "sigpending ( %#lx )", ARG1 );
4385 PRE_MEM_WRITE( "sigpending(set)", ARG1, sizeof(vki_sigset_t));
4389 POST_MEM_WRITE( ARG1, sizeof(vki_sigset_t) ) ;
4395 UWord arg1;
4404 /* Massage ARG1 ('how'). If ARG2 (the new mask) is NULL then the
4414 arg1 = ARG1;
4416 && ARG1 != VKI_SIG_BLOCK
4417 && ARG1 != VKI_SIG_UNBLOCK && ARG1 != VKI_SIG_SETMASK) {
4418 arg1 = VKI_SIG_SETMASK;
4421 VG_(do_sys_sigprocmask) ( tid, arg1, (vki_sigset_t*)ARG2,
4445 PRINT("sigsuspend ( mask=0x%08lx )", ARG1 );
4468 (Int)ARG1, (Int)ARG2, (UInt)ARG3, LOHI64(ARG4,ARG5), ARG6, (Int)ARG7);
4477 (Int)ARG1, (Int)ARG2, (UInt)ARG3, (ULong)ARG4, ARG5, (Int)ARG6);
4492 if (ARG1 == 5 && ARG3 == 2 && LOHI64(ARG4,ARG5) == 0 )
4511 if (ARG1 == 5 && ARG3 == 2 && ARG4 == 0 )
4551 struct vki_aiocb* aiocbp = (struct vki_aiocb*)ARG1;
4554 PRINT( "aio_return ( %#lx )", ARG1 );
4568 struct vki_aiocb* aiocbp = (struct vki_aiocb*)ARG1;
4578 PRINT( "aio_suspend ( %#lx )", ARG1 );
4583 PRE_MEM_READ("aio_suspend(list)", ARG1, ARG2 * sizeof(struct vki_aiocb *));
4592 PRINT( "aio_error ( %#lx )", ARG1 );
4598 struct vki_aiocb* aiocbp = (struct vki_aiocb*)ARG1;
4600 PRINT( "aio_read ( %#lx )", ARG1 );
4602 ARG1, sizeof(struct vki_aiocb));
4620 struct vki_aiocb* aiocbp = (struct vki_aiocb*)ARG1;
4630 struct vki_aiocb* aiocbp = (struct vki_aiocb*)ARG1;
4632 PRINT( "aio_write ( %#lx )", ARG1 );
4634 PRE_MEM_READ( "aio_write(aiocbp)", ARG1, sizeof(struct vki_aiocb));
4913 Reply *reply = (Reply *)ARG1;
4929 Request *req = (Request *)ARG1;
4948 Reply *reply = (Reply *)ARG1;
4977 Reply *reply = (Reply *)ARG1;
4991 // Request *req = (Request *)ARG1;
5011 Reply *reply = (Reply *)ARG1;
5027 Request *req = (Request *)ARG1;
5049 Request *req = (Request *)ARG1;
5084 Request *req = (Request *)ARG1;
5105 Reply *reply = (Reply *)ARG1;
5123 Request *req = (Request *)ARG1;
5179 Reply *reply = (Reply *)ARG1;
5242 Request *req = (Request *)ARG1;
5309 Request *req = (Request *)ARG1;
5333 Request *req = (Request *)ARG1;
5354 Reply *reply = (Reply *)ARG1;
5370 Request *req = (Request *)ARG1;
5390 Reply *reply = (Reply *)ARG1;
5417 Request *req = (Request *)ARG1;
5442 Reply *reply = (Reply *)ARG1;
5468 Request *req = (Request *)ARG1;
5491 Reply *reply = (Reply *)ARG1;
5513 Request *req = (Request *)ARG1;
5540 Reply *reply = (Reply *)ARG1;
5567 Request *req = (Request *)ARG1;
5591 // Reply *reply = (Reply *)ARG1;
5608 Request *req = (Request *)ARG1;
5632 Reply *reply = (Reply *)ARG1;
5652 Request *req = (Request *)ARG1;
5677 Reply *reply = (Reply *)ARG1;
5708 Request *req = (Request *)ARG1;
5738 Request *req = (Request *)ARG1;
5773 Request *req = (Request *)ARG1;
5802 Request *req = (Request *)ARG1;
5829 Request *req = (Request *)ARG1;
5854 Request *req = (Request *)ARG1;
5879 Request *req = (Request *)ARG1;
5928 Reply *reply = (Reply *)ARG1;
5975 Request *req = (Request *)ARG1;
5995 Reply *reply = (Reply *)ARG1;
6014 Request *req = (Request *)ARG1;
6035 Reply *reply = (Reply *)ARG1;
6055 Request *req = (Request *)ARG1;
6076 Reply *reply = (Reply *)ARG1;
6095 Request *req = (Request *)ARG1;
6112 Reply *reply = (Reply *)ARG1;
6134 // Request *req = (Request *)ARG1;
6151 Reply *reply = (Reply *)ARG1;
6167 // Request *req = (Request *)ARG1;
6188 // Reply *reply = (Reply *)ARG1;
6203 Request *req = (Request *)ARG1;
6222 Reply *reply = (Reply *)ARG1;
6242 Request *req = (Request *)ARG1;
6259 Reply *reply = (Reply *)ARG1;
6274 // Request *req = (Request *)ARG1;
6296 Reply *reply = (Reply *)ARG1;
6356 Request *req = (Request *)ARG1;
6380 Reply *reply = (Reply *)ARG1;
6413 Request *req = (Request *)ARG1;
6440 Reply *reply = (Reply *)ARG1;
6471 Request *req = (Request *)ARG1;
6497 Reply *reply = (Reply *)ARG1;
6532 Request *req = (Request *)ARG1;
6553 Reply *reply = (Reply *)ARG1;
6576 Request *req = (Request *)ARG1;
6602 // Reply *reply = (Reply *)ARG1;
6623 Request *req = (Request *)ARG1;
6648 // Reply *reply = (Reply *)ARG1;
6669 Request *req = (Request *)ARG1;
6695 Reply *reply = (Reply *)ARG1;
6725 Request *req = (Request *)ARG1;
6750 Reply *reply = (Reply *)ARG1;
6785 Request *req = (Request *)ARG1;
6812 Reply *reply = (Reply *)ARG1;
6848 Request *req = (Request *)ARG1;
6867 // arg1 is task
6889 Reply *reply = (Reply *)ARG1;
6923 Request *req = (Request *)ARG1;
6944 Reply *reply = (Reply *)ARG1;
6965 Request *req = (Request *)ARG1;
6987 Reply *reply = (Reply *)ARG1;
7008 Request *req = (Request *)ARG1;
7030 Reply *reply = (Reply *)ARG1;
7051 Request *req = (Request *)ARG1;
7075 Reply *reply = (Reply *)ARG1;
7107 Request *req = (Request *)ARG1;
7134 Reply *reply = (Reply *)ARG1;
7165 Request *req = (Request *)ARG1;
7190 Reply *reply = (Reply *)ARG1;
7223 Request *req = (Request *)ARG1;
7243 Reply *reply = (Reply *)ARG1;
7266 Request *req = (Request *)ARG1;
7272 // arg1 is task
7291 Reply *reply = (Reply *)ARG1;
7315 Request *req = (Request *)ARG1;
7335 Reply *reply = (Reply *)ARG1;
7369 Request *req = (Request *)ARG1;
7399 Reply *reply = (Reply *)ARG1;
7439 Request *req = (Request *)ARG1;
7466 Reply *reply = (Reply *)ARG1;
7494 Request *req = (Request *)ARG1;
7518 Reply *reply = (Reply *)ARG1;
7544 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
7629 req = (Request *)ARG1;
7654 Reply *reply = (Reply *)ARG1;
7666 ARG1, ARG2, ARG3, ARG4, ARG5);
7721 ARG1, ARG2, name_for_port(ARG3), name_for_port(ARG4));
7729 if (ARG1 && ARG2) {
7730 ML_(notify_core_and_tool_of_munmap)(ARG1, ARG2);
7734 VG_(do_syscall2)(__NR_munmap, ARG1, ARG2);
7736 vm_deallocate(mach_task_self(), (vm_address_t)ARG1, (vm_size_t)ARG2);
7755 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
7782 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
7815 Reply *reply = (Reply *)ARG1;
7839 Request *req = (Request *)ARG1;
7860 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
7879 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
7893 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
7924 Reply *reply = (Reply *)ARG1;
7943 Request *req = (Request *)ARG1;
7975 Reply *reply = (Reply *)ARG1;
7999 Request *req = (Request *)ARG1;
8017 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8029 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8045 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8068 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8110 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8306 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8364 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8589 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8621 mach_msg_header_t *mh = (mach_msg_header_t *)ARG1;
8689 name_for_port(ARG1), SARG2, SARG3);
8699 PRINT("semaphore_signal(%s)", name_for_port(ARG1));
8706 PRINT("semaphore_signal_all(%s)", name_for_port(ARG1));
8714 name_for_port(ARG1), name_for_port(ARG2));
8722 PRINT("semaphore_wait(%s)", name_for_port(ARG1));
8732 name_for_port(ARG1), name_for_port(ARG2));
8744 name_for_port(ARG1), ARG2+ARG3/1000000000.0);
8757 name_for_port(ARG1), name_for_port(ARG2), ARG3+ARG4/1000000000.0);
8774 name_for_port(ARG1), name_for_port(ARG2), SARG3, SARG4, SARG5, SARG6);
8791 // name_for_port(ARG1), name_for_port(ARG2), ARG3, ARG4, ARG5);
8806 PRINT("task_for_pid(%s, %ld, %#lx)", name_for_port(ARG1), SARG2, ARG3);
8827 PRINT("pid_for_task(%s, %#lx)", name_for_port(ARG1), ARG2);
8845 PRINT("mach_timebase_info(%#lx)", ARG1);
8847 PRE_MEM_WRITE("mach_timebase_info(info)", ARG1, sizeof(struct vki_mach_timebase_info));
8852 POST_MEM_WRITE(ARG1, sizeof(struct vki_mach_timebase_info));
8859 PRINT("mach_wait_until(%lu)", ARG1);
8863 PRINT("mach_wait_until(%llu)", LOHI64(ARG1, ARG2));
8885 PRINT("mk_timer_destroy(%s)", name_for_port(ARG1));
8896 record_port_destroy(ARG1);
8903 PRINT("mk_timer_arm(%s, %lu)", name_for_port(ARG1), ARG2);
8907 PRINT("mk_timer_arm(%s, %llu)", name_for_port(ARG1), LOHI64(ARG2, ARG3));
8916 PRINT("mk_timer_cancel(%s, %#lx)", name_for_port(ARG1), ARG2);
8935 name_for_port(ARG1), ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8);
9007 PRINT("sigreturn ( uctx=%#lx, infostyle=%#lx )", ARG1, ARG2);
9046 the integer regs) from the ucontext in ARG1 (and do all the
9050 temporarily copy ARG1 into this thread's guest_EBX (or any
9056 pointed to by ARG1.
9087 PRINT("thread_fast_set_cthread_self ( %#lx )", ARG1);
9103 ldt[6].LdtEnt.Bits.BaseLow = ARG1 & 0xffff;
9104 ldt[6].LdtEnt.Bits.BaseMid = (ARG1 >> 16) & 0xff;
9105 ldt[6].LdtEnt.Bits.BaseHi = (ARG1 >> 24) & 0xff;
9112 tst->os_state.pthread = ARG1;
9133 tst->os_state.pthread = ARG1;
9134 tst->arch.vex.guest_GS_CONST = ARG1;
9236 ARG1, ARG2, ARG3,
9245 ARG1, ARG2, ARG3,
9253 PRE_MEM_WRITE("fsgetpath(buf)", ARG1, ARG2);
9258 POST_MEM_WRITE(ARG1, RES);
9302 indicates that, in a 64 bit process, the args are: ARG1 ARG2 ARG3
9303 ARG4 ARG5, but in a 32 bit process they are: ARG1 ARG3:ARG2
9309 UWord aRG1, UWord aRG2, UWord aRG3, UWord aRG4)
9312 *a1 = aRG1; *a2 = aRG2; *a3 = LOHI64(aRG3,aRG4);
9314 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3;
9319 UWord aRG1, UWord aRG2, UWord aRG3,
9323 *a1 = aRG1; *a2 = LOHI64(aRG2,aRG3); *a3 = LOHI64(aRG4,aRG5);
9325 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3;
9330 UWord aRG1, UWord aRG2, UWord aRG3,
9334 *a1 = aRG1; *a2 = aRG2; *a3 = LOHI64(aRG3,aRG4); *a4 = aRG5;
9336 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3; *a4 = aRG4;
9341 UWord aRG1, UWord aRG2, UWord aRG3,
9345 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3; *a4 = LOHI64(aRG4,aRG5);
9347 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3; *a4 = aRG4;
9352 UWord aRG1, UWord aRG2, UWord aRG3,
9356 *a1 = aRG1; *a2 = LOHI64(aRG2,aRG3); *a3 = LOHI64(aRG4,aRG5);
9359 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3; *a4 = aRG4; *a5 = aRG5;
9365 UWord aRG1, UWord aRG2, UWord aRG3, UWord aRG4,
9369 *a1 = aRG1; *a2 = aRG2;
9373 *a1 = aRG1; *a2 = aRG2; *a3 = aRG3; *a4 = aRG4; *a5 = aRG5; *a6 = aRG6;
9382 munge_wwlw(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
9392 munge_wwlw(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
9413 munge_wll(&a1, &a2, &a3, ARG1, ARG2, ARG3, ARG4, ARG5);
9420 munge_wll(&a1, &a2, &a3, ARG1, ARG2, ARG3, ARG4, ARG5);
9432 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7);
9441 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7);
9452 ARG1, ARG2);
9467 PRINT("kernelrpc_mach_port_destroy_trap(task:%#lx, name:%#lx)", ARG1, ARG2);
9475 ARG1, ARG2);
9487 ARG1, ARG2, ARG3, ARG4);
9495 ARG1, ARG2, ARG3);
9502 "(%lx,%lx,%lx,%lx)", ARG1, ARG2, ARG3, ARG4);
9509 "(%lx,%lx,%lx)", ARG1, ARG2, ARG3);
9516 "(%lx,%lx,%lx)", ARG1, ARG2, ARG3);
9522 PRINT("iopolicysys(FIXME)(0x%lx, 0x%lx, 0x%lx)", ARG1, ARG2, ARG3);
9536 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7);
9557 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8);
9568 ARG1, ARG2, ARG3, ARG4, ARG5, ARG6, ARG7, ARG8);
9582 munge_wwlw(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
9590 munge_wwwl(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
9598 munge_wwlw(&a1, &a2, &a3, &a4, ARG1, ARG2, ARG3, ARG4, ARG5);
9607 munge_wwl(&a1, &a2, &a3, ARG1, ARG2, ARG3, ARG4);
9625 PRINT("necp_match_policy(FIXME)(%lx,%lu, %lx)", ARG1, ARG2, ARG3);
9629 PRE_MEM_READ("necp_match_policy(returned_result)", ARG1, ARG2);
9638 UWord name = ARG1;
9715 ARG1, ARG2, (HChar*)ARG2, ARG3, ARG4);
9723 ARG1, ARG2, (HChar*)ARG2, ARG3, ARG4);
9744 SET_STATUS_from_SysRes( VG_(do_syscall4)(saved, ARG1, ARG2, ARG3, ARG4));
9753 // int bsdthread_ctl(user_addr_t cmd, user_addr_t arg1,
9755 PRINT("bsdthread_ctl(FIXME)(%lx,%lx,%lx,%lx)", ARG1, ARG2, ARG3, ARG4);
9757 void*, cmd, void*, arg1, void*, arg2, void*, arg3);
9762 PRINT("csrctl(op:%ld, useraddr:%#lx, usersize:%#lx) FIXME", ARG1, ARG2, ARG3);
9772 ARG1, (HChar*)ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
9778 ARG1, ARG2, ARG3, (ULong)ARG4);
9784 ARG1, ARG2, ARG3, (ULong)ARG4, (Long)ARG5);
9790 ARG1, ARG2, ARG3, (ULong)ARG4);
9804 PRINT("getentropy(buffer:%#lx, size:%ld) FIXME", ARG1, ARG2);
9812 ARG1, ARG2, ARG3);
9822 ARG1, ARG2, ARG3, ARG4);
9839 // Request *req = (Request *)ARG1;
9856 Reply *reply = (Reply *)ARG1;
9875 // Request *req = (Request *)ARG1;
9893 Reply *reply = (Reply *)ARG1;