summaryrefslogtreecommitdiff
path: root/usr.bin/fstat
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-04-25 19:18:42 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-04-25 19:18:42 +0000
commit4062b0215b25e686705f4c911a09c7846f636b05 (patch)
tree8b99e86e63b0ee67601da0b6267d0523cc31a1dc /usr.bin/fstat
parent2fb4663dc61adf57692df987743135ee0d9fe628 (diff)
remove systrace support
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r--usr.bin/fstat/fstat.19
-rw-r--r--usr.bin/fstat/fstat.c20
2 files changed, 3 insertions, 26 deletions
diff --git a/usr.bin/fstat/fstat.1 b/usr.bin/fstat/fstat.1
index b51e2a6fae1..1ab5782c395 100644
--- a/usr.bin/fstat/fstat.1
+++ b/usr.bin/fstat/fstat.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fstat.1,v 1.51 2015/01/31 19:33:45 jmc Exp $
+.\" $OpenBSD: fstat.1,v 1.52 2016/04/25 19:18:41 tedu Exp $
.\"
.\" Copyright (c) 1987, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)fstat.1 8.3 (Berkeley) 2/25/94
.\"
-.Dd $Mdocdate: January 31 2015 $
+.Dd $Mdocdate: April 25 2016 $
.Dt FSTAT 1
.Os
.Sh NAME
@@ -273,11 +273,6 @@ Each
is printed with some information as to queue length.
Since these things are normally serviced quickly, it is likely that
nothing of real importance can be discerned.
-.Sh SYSTRACE
-Each
-.Xr systrace 4
-device is printed with only the kernel address of the
-device private data.
.Sh SEE ALSO
.Xr netstat 1 ,
.Xr nfsstat 1 ,
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index 281527019f2..2d79265868c 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fstat.c,v 1.86 2016/01/02 13:22:52 semarie Exp $ */
+/* $OpenBSD: fstat.c,v 1.87 2016/04/25 19:18:41 tedu Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -120,7 +120,6 @@ void print_inet6_details(struct kinfo_file *);
#endif
void print_sock_details(struct kinfo_file *);
void socktrans(struct kinfo_file *);
-void systracetrans(struct kinfo_file *);
void vtrans(struct kinfo_file *);
const char *inet6_addrstr(struct in6_addr *);
int signame_to_signum(char *);
@@ -386,10 +385,6 @@ fstat_dofile(struct kinfo_file *kf)
if (checkfile == 0)
kqueuetrans(kf);
break;
- case DTYPE_SYSTRACE:
- if (checkfile == 0)
- systracetrans(kf);
- break;
default:
if (vflg) {
warnx("unknown file type %d for file %d of pid %ld",
@@ -539,19 +534,6 @@ kqueuetrans(struct kinfo_file *kf)
return;
}
-void
-systracetrans(struct kinfo_file *kf)
-{
- PREFIX(kf->fd_fd);
-
- printf(" ");
-
- printf("systrace ");
- hide((void *)(uintptr_t)kf->f_data);
- printf(" npol %d\n", kf->str_npolicies);
- return;
-}
-
#ifdef INET6
const char *
inet6_addrstr(struct in6_addr *p)