summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/i386-linux.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-linux.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-linux.c')
-rw-r--r--usr.bin/truss/i386-linux.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.bin/truss/i386-linux.c b/usr.bin/truss/i386-linux.c
index fc1f9b0..0cb7c22 100644
--- a/usr.bin/truss/i386-linux.c
+++ b/usr.bin/truss/i386-linux.c
@@ -27,24 +27,25 @@
* 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 */
+
/*
* Linux/i386-specific system call handling. Given how much of this code
* is taken from the freebsd equivalent, I can probably put even more of
* it in support routines that can be used by any personality support.
*/
-/*
- * $Id: i386-linux.c,v 1.1 1997/12/06 05:22:54 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>
@@ -91,7 +92,6 @@ i386_linux_syscall_entry(int pid, int nargs) {
struct reg regs = { 0 };
int syscall;
int i;
- int memfd;
struct syscall *sc;
if (fd == -1 || pid != cpid) {
@@ -149,7 +149,6 @@ i386_linux_syscall_entry(int pid, int nargs) {
lsc.sc = sc;
if (lsc.name) {
- char *tmp;
#ifdef DEBUG
fprintf(stderr, "syscall %s(", lsc.name);
OpenPOWER on IntegriCloud