Lines Matching refs:tcp
111 sys_mount(tcp)
112 struct tcb *tcp;
114 if (entering(tcp)) {
115 printpath(tcp, tcp->u_arg[0]);
117 printpath(tcp, tcp->u_arg[1]);
119 if ((tcp->u_arg[3] & (MS_BIND|MS_MOVE|MS_REMOUNT)) == 0)
120 printpath(tcp, tcp->u_arg[2]);
122 tprintf("%#lx", tcp->u_arg[2]);
124 printflags(mount_flags, tcp->u_arg[3], "MS_???");
125 tprintf(", %#lx", tcp->u_arg[4]);
131 sys_umount2(tcp)
132 struct tcb *tcp;
134 if (entering(tcp)) {
135 printstr(tcp, tcp->u_arg[0], -1);
137 if (tcp->u_arg[1] & 1)
173 sys_personality(tcp)
174 struct tcb *tcp;
176 if (entering(tcp))
177 printxval(personality_options, tcp->u_arg[0], "PER_???");
205 sys_reboot(tcp)
206 struct tcb *tcp;
208 if (entering(tcp)) {
209 printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
211 printflags(bootflags2, tcp->u_arg[1], "LINUX_REBOOT_MAGIC_???");
213 printflags(bootflags3, tcp->u_arg[2], "LINUX_REBOOT_CMD_???");
214 if (tcp->u_arg[2] == LINUX_REBOOT_CMD_RESTART2) {
216 printstr(tcp, tcp->u_arg[3], -1);
250 sys_cacheflush(tcp)
251 struct tcb *tcp;
253 if (entering(tcp)) {
255 tprintf("%#lx, ", tcp->u_arg[0]);
257 printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
260 printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
262 tprintf(", %lu", tcp->u_arg[3]);
285 sys_sync(tcp)
286 struct tcb *tcp;
307 sys_reboot(tcp)
308 struct tcb *tcp;
310 if (entering(tcp)) {
311 printflags(bootflags, tcp->u_arg[0], "RB_???");
312 if (tcp->u_arg[0] & RB_STRING) {
313 printstr(tcp, tcp->u_arg[1], -1);
320 sys_sysacct(tcp)
321 struct tcb *tcp;
323 if (entering(tcp)) {
324 printstr(tcp, tcp->u_arg[0], -1);
330 sys_swapon(tcp)
331 struct tcb *tcp;
333 if (entering(tcp)) {
334 printstr(tcp, tcp->u_arg[0], -1);
340 sys_nfs_svc(tcp)
341 struct tcb *tcp;
343 if (entering(tcp)) {
344 printsock(tcp, tcp->u_arg[0]);
395 sys_mount(tcp)
396 struct tcb *tcp;
400 if (entering(tcp)) {
401 if (!(tcp->u_arg[2] & M_NEWTYPE) || umovestr(tcp,
402 tcp->u_arg[0], sizeof type, type) < 0) {
403 tprintf("OLDTYPE:#%lx", tcp->u_arg[0]);
407 printstr(tcp, tcp->u_arg[1], -1);
409 printflags(mountflags, tcp->u_arg[2] & ~M_NEWTYPE, "M_???");
414 if (umove(tcp, tcp->u_arg[3], &a) < 0)
416 printstr(tcp, (int)a.fspec, -1);
419 if (umove(tcp, tcp->u_arg[3], &a) < 0)
421 printstr(tcp, (int)a.fsdir, -1);
424 if (umove(tcp, tcp->u_arg[3], &a) < 0)
427 printsock(tcp, (int) a.addr);
433 printstr(tcp, (int)a.hostname, -1);
439 printstr(tcp, (int) a.netname, -1);
446 if (umove(tcp, tcp->u_arg[3], &a) < 0)
449 printstr(tcp, (int)a.rmtfs, -1);
450 if (umove(tcp, (int)a.token, &t) < 0)
455 if (umove(tcp, tcp->u_arg[3], &a) < 0)
457 printstr(tcp, (int)a.fspec, -1);
464 sys_unmount(tcp)
465 struct tcb *tcp;
467 if (entering(tcp)) {
468 printstr(tcp, tcp->u_arg[0], -1);
474 sys_umount(tcp)
475 struct tcb *tcp;
477 return sys_unmount(tcp);
481 sys_auditsys(tcp)
482 struct tcb *tcp;
485 return printargs(tcp);
495 sys_exportfs(tcp)
496 struct tcb *tcp;
501 if (entering(tcp)) {
502 printstr(tcp, tcp->u_arg[0], -1);
503 if (umove(tcp, tcp->u_arg[1], &e) < 0) {
504 tprintf("%#lx", tcp->u_arg[1]);
512 printsock(tcp,
517 printsock(tcp,
523 printsock(tcp,
563 sys_sysconf(tcp)
564 struct tcb *tcp;
566 if (entering(tcp)) {
567 printxval(sysconflimits, tcp->u_arg[0], "_SC_???");
608 sys_pathconf(tcp)
609 struct tcb *tcp;
611 if (entering(tcp)) {
612 printstr(tcp, tcp->u_arg[0], -1);
614 printxval(pathconflimits, tcp->u_arg[1], "_PC_???");
620 sys_fpathconf(tcp)
621 struct tcb *tcp;
623 if (entering(tcp)) {
624 tprintf("%lu, ", tcp->u_arg[0]);
625 printxval(pathconflimits, tcp->u_arg[1], "_PC_???");
722 sys_sysconfig(tcp)
723 struct tcb *tcp;
725 if (entering(tcp))
726 printxval(sysconfig_options, tcp->u_arg[0], "_CONFIG_???");
756 sys_sysinfo(tcp)
757 struct tcb *tcp;
759 if (entering(tcp)) {
760 printxval(sysinfo_options, tcp->u_arg[0], "SI_???");
765 if (syserror(tcp))
766 tprintf("%#lx", tcp->u_arg[1]);
768 printpath(tcp, tcp->u_arg[1]);
769 tprintf(", %lu", tcp->u_arg[2]);
1141 sys_syssgi(tcp)
1142 struct tcb *tcp;
1146 if (entering(tcp)) {
1147 printxval(syssgi_options, tcp->u_arg[0], "SGI_???");
1148 switch (tcp->u_arg[0]) {
1150 for (i = 1; i < tcp->u_nargs; i++)
1151 tprintf(", %#lx", tcp->u_arg[i]);
1214 sys_mount(tcp)
1215 struct tcb *tcp;
1217 if (entering(tcp)) {
1218 printpath(tcp, tcp->u_arg[0]);
1220 printpath(tcp, tcp->u_arg[1]);
1222 printflags(mount_flags, tcp->u_arg[2], "MS_???");
1223 if (tcp->u_arg[2] & (MS_FSS | MS_DATA)) {
1225 tprintf("%ld", tcp->u_arg[3]);
1227 if (tcp->u_arg[2] & MS_DATA) {
1231 if (tcp->u_arg[3] == nfs_type) {
1233 if (umove(tcp, tcp->u_arg[4], &args) < 0)
1234 tprintf("%#lx", tcp->u_arg[4]);
1237 printsock(tcp, (int) args.addr);
1241 printstr(tcp, (int) args.hostname, -1);
1246 tprintf("%#lx", tcp->u_arg[4]);
1247 tprintf(", %ld", tcp->u_arg[5]);
1325 sys_mount(tcp)
1326 struct tcb *tcp;
1328 if (entering(tcp)) {
1330 printpath(tcp, tcp->u_arg[0]);
1332 printpath(tcp, tcp->u_arg[1]);
1334 printflags(mount_flags, tcp->u_arg[2], "MS_???");
1339 if (tcp->u_arg[2] & (MS_FSS | MS_DATA)) {
1340 if (umovestr(tcp, tcp->u_arg[3], FSTYPSZ, fstyp) < 0) {
1342 tprintf(", %ld", tcp->u_arg[3]);
1347 if (tcp->u_arg[2] & MS_DATA) {
1354 if (umove(tcp, tcp->u_arg[4], &args) < 0)
1355 tprintf("%#lx", tcp->u_arg[4]);
1361 printstr (tcp,
1374 printstr (tcp, tcp->u_arg[4], -1);
1379 if (umove(tcp, tcp->u_arg[4], &args) < 0)
1380 tprintf("%#lx", tcp->u_arg[4]);
1384 if (umove (tcp, (int) args.addr, &addr) < 0) {
1388 printsock(tcp, (int) addr.buf, addr.len);
1393 printstr(tcp, (int) args.hostname, -1);
1398 tprintf("%#lx", tcp->u_arg[4]);
1399 tprintf(", %ld", tcp->u_arg[5]);
1408 sys_mount(tcp)
1409 struct tcb *tcp;
1411 if (entering(tcp)) {
1412 printpath(tcp, tcp->u_arg[0]);
1414 printpath(tcp, tcp->u_arg[1]);
1460 sys_capget(tcp)
1461 struct tcb *tcp;
1466 if(!entering(tcp)) {
1470 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1477 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1482 if (!tcp->u_arg[0])
1484 else if (!verbose(tcp))
1485 tprintf("%#lx", tcp->u_arg[0]);
1486 else if (umoven(tcp, tcp->u_arg[0], sizeof(*arg0), (char *) arg0) < 0)
1492 if (!tcp->u_arg[1])
1494 else if (!verbose(tcp))
1495 tprintf("%#lx", tcp->u_arg[1]);
1496 else if (umoven(tcp, tcp->u_arg[1], sizeof(*arg1), (char *) arg1) < 0)
1512 sys_capset(tcp)
1513 struct tcb *tcp;
1518 if(entering(tcp)) {
1522 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1529 tprintf("%#lx, %#lx", tcp->u_arg[0], tcp->u_arg[1]);
1534 if (!tcp->u_arg[0])
1536 else if (!verbose(tcp))
1537 tprintf("%#lx", tcp->u_arg[0]);
1538 else if (umoven(tcp, tcp->u_arg[0], sizeof(*arg0), (char *) arg0) < 0)
1544 if (!tcp->u_arg[1])
1546 else if (!verbose(tcp))
1547 tprintf("%#lx", tcp->u_arg[1]);
1548 else if (umoven(tcp, tcp->u_arg[1], sizeof(*arg1), (char *) arg1) < 0)
1565 int sys_capget(tcp)
1566 struct tcb *tcp;
1568 return printargs(tcp);
1571 int sys_capset(tcp)
1572 struct tcb *tcp;
1574 return printargs(tcp);
1820 sys_sysctl(tcp)
1821 struct tcb *tcp;
1827 if (umove (tcp, tcp->u_arg[0], &info) < 0)
1828 return printargs(tcp);
1833 umoven(tcp, (unsigned long) info.name, size, (char *) name) < 0) {
1835 if (entering(tcp))
1842 if (entering(tcp)) {
1933 max_cnt = abbrev(tcp) ? max_strlen : info.nlen;
1941 if (umove(tcp, (size_t)info.oldlenp, &oldlen) >= 0
1953 printpath(tcp, (size_t)info.oldval);
1957 else if (syserror(tcp))
1960 printpath(tcp, (size_t)info.newval);
1973 int sys_sysctl(tcp)
1974 struct tcb *tcp;
1976 return printargs(tcp);
1983 int sys___sysctl(tcp)
1984 struct tcb *tcp;
1991 if (entering(tcp)) {
1992 if (tcp->u_arg[1] < 0 || tcp->u_arg[1] > CTL_MAXNAME ||
1993 (umoven(tcp, tcp->u_arg[0], tcp->u_arg[1] * sizeof(int),
2005 if (sysctl(qoid, tcp->u_arg[1] + 2, ctl, &i, 0, 0) >= 0) {
2006 numeric = !abbrev(tcp);
2011 for (i = 0; i < tcp->u_arg[1]; i++)
2015 tprintf("%lu, ", tcp->u_arg[1]);
2018 if (!syserror(tcp) && (umove(tcp, tcp->u_arg[3], &len) >= 0)) {
2019 printstr(tcp, tcp->u_arg[2], len);
2022 tprintf("%#lx, %#lx, ", tcp->u_arg[2], tcp->u_arg[3]);
2023 printstr(tcp, tcp->u_arg[4], tcp->u_arg[5]);
2024 tprintf(", %lu", tcp->u_arg[5]);
2043 sys_getksym(tcp)
2044 struct tcb *tcp;
2046 if (entering (tcp)) {
2047 printstr(tcp, tcp->u_arg[0], -1);
2051 if (syserror(tcp)) {
2053 tcp->u_arg[1], tcp->u_arg[2]);
2057 printnum (tcp, tcp->u_arg[1], "%#lx");
2059 if (umove(tcp, tcp->u_arg[2], &val) < 0) {
2060 tprintf("%#lx", tcp->u_arg[2]);
2125 int sys_ssisys (tcp)
2126 struct tcb *tcp;
2132 if (entering (tcp)) {
2134 if (tcp->u_arg[1] != sizeof iov ||
2135 umove (tcp, tcp->u_arg[0], &iov) < 0)
2137 tprintf ("%#lx, %ld", tcp->u_arg[0], tcp->u_arg[1]);
2146 umove (tcp, (long) iov.tio_udatain, &trc) < 0)
2153 umove (tcp, (long) iov.tio_udatain, &cni) < 0)
2167 if (tcp->u_arg[1] != sizeof iov ||
2168 umove (tcp, tcp->u_arg[0], &iov) < 0)
2173 umove (tcp, (long) iov.tio_udatain, &cni) < 0)
2177 umove (tcp, (long) iov.tio_udataout, &info) < 0)
2192 tprintf ("}, %ld", tcp->u_arg[1]);
2216 int sys_sysmips(tcp)
2217 struct tcb *tcp;
2219 if (entering(tcp)) {
2220 printxval(sysmips_operations, tcp->u_arg[0], "???");
2221 if (!verbose(tcp)) {
2222 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);
2223 } else if (tcp->u_arg[0]==SETNAME) {
2225 if (umovestr(tcp, tcp->u_arg[1], (__NEW_UTS_LEN + 1), nodename) < 0)
2226 tprintf(", %#lx", tcp->u_arg[1]);
2229 } else if (tcp->u_arg[0] == MIPS_ATOMIC_SET) {
2230 tprintf(", %#lx, 0x%lx", tcp->u_arg[1], tcp->u_arg[2]);
2231 } else if (tcp->u_arg[0] == MIPS_FIXADE) {
2232 tprintf(", 0x%lx", tcp->u_arg[1]);
2234 tprintf("%ld, %ld, %ld", tcp->u_arg[1], tcp->u_arg[2], tcp->u_arg[3]);