summaryrefslogtreecommitdiff
path: root/usr.bin/truss/syscalls.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2017-08-30 07:30:06 +0000
committerEd Schouten <ed@FreeBSD.org>2017-08-30 07:30:06 +0000
commitb53b978a6c4ee0681ccb6a797cae760c7ba0da64 (patch)
treee65940e93dfe0d1d7decd121282c35a5539ba42d /usr.bin/truss/syscalls.c
parent2b12718be6bf382e36850a71bab54700bca69588 (diff)
downloadsrc-test2-b53b978a6c4ee0681ccb6a797cae760c7ba0da64.tar.gz
src-test2-b53b978a6c4ee0681ccb6a797cae760c7ba0da64.zip
Notes
Diffstat (limited to 'usr.bin/truss/syscalls.c')
-rw-r--r--usr.bin/truss/syscalls.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index f12ac46fb990..49cbf30cf533 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -628,13 +628,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { CloudABISignal, 0 } } },
{ .name = "cloudabi_sys_random_get", .ret_type = 1, .nargs = 2,
.args = { { BinString | OUT, 0 }, { Int, 1 } } },
- { .name = "cloudabi_sys_sock_accept", .ret_type = 1, .nargs = 2,
- .args = { { Int, 0 }, { CloudABISockStat | OUT, 1 } } },
{ .name = "cloudabi_sys_sock_shutdown", .ret_type = 1, .nargs = 2,
.args = { { Int, 0 }, { CloudABISDFlags, 1 } } },
- { .name = "cloudabi_sys_sock_stat_get", .ret_type = 1, .nargs = 3,
- .args = { { Int, 0 }, { CloudABISockStat | OUT, 1 },
- { CloudABISSFlags, 2 } } },
{ .name = "cloudabi_sys_thread_exit", .ret_type = 1, .nargs = 2,
.args = { { Ptr, 0 }, { CloudABIMFlags, 1 } } },
{ .name = "cloudabi_sys_thread_yield", .ret_type = 1, .nargs = 0 },
@@ -753,25 +748,6 @@ static struct xlat cloudabi_clockid[] = {
XEND
};
-static struct xlat cloudabi_errno[] = {
- X(E2BIG) X(EACCES) X(EADDRINUSE) X(EADDRNOTAVAIL)
- X(EAFNOSUPPORT) X(EAGAIN) X(EALREADY) X(EBADF) X(EBADMSG)
- X(EBUSY) X(ECANCELED) X(ECHILD) X(ECONNABORTED) X(ECONNREFUSED)
- X(ECONNRESET) X(EDEADLK) X(EDESTADDRREQ) X(EDOM) X(EDQUOT)
- X(EEXIST) X(EFAULT) X(EFBIG) X(EHOSTUNREACH) X(EIDRM) X(EILSEQ)
- X(EINPROGRESS) X(EINTR) X(EINVAL) X(EIO) X(EISCONN) X(EISDIR)
- X(ELOOP) X(EMFILE) X(EMLINK) X(EMSGSIZE) X(EMULTIHOP)
- X(ENAMETOOLONG) X(ENETDOWN) X(ENETRESET) X(ENETUNREACH)
- X(ENFILE) X(ENOBUFS) X(ENODEV) X(ENOENT) X(ENOEXEC) X(ENOLCK)
- X(ENOLINK) X(ENOMEM) X(ENOMSG) X(ENOPROTOOPT) X(ENOSPC)
- X(ENOSYS) X(ENOTCONN) X(ENOTDIR) X(ENOTEMPTY) X(ENOTRECOVERABLE)
- X(ENOTSOCK) X(ENOTSUP) X(ENOTTY) X(ENXIO) X(EOVERFLOW)
- X(EOWNERDEAD) X(EPERM) X(EPIPE) X(EPROTO) X(EPROTONOSUPPORT)
- X(EPROTOTYPE) X(ERANGE) X(EROFS) X(ESPIPE) X(ESRCH) X(ESTALE)
- X(ETIMEDOUT) X(ETXTBSY) X(EXDEV) X(ENOTCAPABLE)
- XEND
-};
-
static struct xlat cloudabi_fdflags[] = {
X(FDFLAG_APPEND) X(FDFLAG_DSYNC) X(FDFLAG_NONBLOCK)
X(FDFLAG_RSYNC) X(FDFLAG_SYNC)
@@ -833,16 +809,6 @@ static struct xlat cloudabi_signal[] = {
XEND
};
-static struct xlat cloudabi_ssflags[] = {
- X(SOCKSTAT_CLEAR_ERROR)
- XEND
-};
-
-static struct xlat cloudabi_ssstate[] = {
- X(SOCKSTATE_ACCEPTCONN)
- XEND
-};
-
static struct xlat cloudabi_ulflags[] = {
X(UNLINK_REMOVEDIR)
XEND
@@ -2262,21 +2228,6 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
case CloudABISignal:
fputs(xlookup(cloudabi_signal, args[sc->offset]), fp);
break;
- case CloudABISockStat: {
- cloudabi_sockstat_t ss;
- if (get_struct(pid, (void *)args[sc->offset], &ss, sizeof(ss))
- != -1) {
- fprintf(fp, "%s, ", xlookup(
- cloudabi_errno, ss.ss_error));
- fprintf(fp, "%s }", xlookup_bits(
- cloudabi_ssstate, ss.ss_state));
- } else
- fprintf(fp, "0x%lx", args[sc->offset]);
- break;
- }
- case CloudABISSFlags:
- fputs(xlookup_bits(cloudabi_ssflags, args[sc->offset]), fp);
- break;
case CloudABITimestamp:
fprintf(fp, "%lu.%09lus", args[sc->offset] / 1000000000,
args[sc->offset] % 1000000000);