summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/i386-fbsd.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-01-05 07:30:26 +0000
committercharnier <charnier@FreeBSD.org>1998-01-05 07:30:26 +0000
commit50a2f19faf04789c616b36d4189518348133defd (patch)
treeed1c8227c4302868a3fab2c3c3407212a3d23ba1 /usr.bin/truss/i386-fbsd.c
parentc6e23310826f8815f9a35abdb657254ef4e47d66 (diff)
downloadFreeBSD-src-50a2f19faf04789c616b36d4189518348133defd.zip
FreeBSD-src-50a2f19faf04789c616b36d4189518348133defd.tar.gz
Sort Xrefs. Use err(3). Remove uneeded #include.
Correct usage: one of {-p pid, command} is required. Open output file when command line is fully analyzed: incorrect `truss -o f' command does not create an empty file anymore.
Diffstat (limited to 'usr.bin/truss/i386-fbsd.c')
-rw-r--r--usr.bin/truss/i386-fbsd.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/usr.bin/truss/i386-fbsd.c b/usr.bin/truss/i386-fbsd.c
index 57d7d88..e141e2c 100644
--- a/usr.bin/truss/i386-fbsd.c
+++ b/usr.bin/truss/i386-fbsd.c
@@ -27,9 +27,13 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
/*
* FreeBSD/386-specific system call handling. This is probably the most
* complex part of the entire truss program, although I've got lots of
@@ -37,17 +41,13 @@
* automatically, thanks to /usr/src/sys/kern/syscalls.master. The
* names used for the various structures are confusing, I sadly admit.
*/
-/*
- * $Id: i386-fbsd.c,v 1.1 1997/12/06 05:22:50 sef Exp $
- */
+#include <errno.h>
+#include <fcntl.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <errno.h>
-#include <err.h>
-#include <signal.h>
-#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/pioctl.h>
@@ -113,7 +113,6 @@ i386_syscall_entry(int pid, int nargs) {
struct reg regs = { 0 };
int syscall;
int i;
- int memfd;
unsigned int parm_offset;
struct syscall *sc;
@@ -190,7 +189,6 @@ i386_syscall_entry(int pid, int nargs) {
*/
if (fsc.name) {
- char *tmp;
#if DEBUG
fprintf(stderr, "syscall %s(", fsc.name);
OpenPOWER on IntegriCloud