Changes in ??
=============
+2007-06-21 Tomas Smetana
+ * Added support for x86_64 architecture for peekfd
+
2007-06-13 Craig Small
* Added Chinese simplified po file
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_TYPE_UID_T
-AC_CHECK_MEMBERS([struct user_regs_struct.orig_eax, struct user_regs_struct.eax, struct user_regs_struct.ebx, struct user_regs_struct.ecx, struct user_regs_struct.edx], [],[], [#include <linux/user.h>])
-AM_CONDITIONAL(WANT_PEEKFD,
+AC_CHECK_MEMBERS([struct user_regs_struct.orig_eax,
+ struct user_regs_struct.eax,
+ struct user_regs_struct.ebx,
+ struct user_regs_struct.ecx,
+ struct user_regs_struct.edx,
+ struct user_regs_struct.orig_rax,
+ struct user_regs_struct.rax,
+ struct user_regs_struct.rdi,
+ struct user_regs_struct.rsi,
+ struct user_regs_struct.rdx], [],[], [#include <linux/user.h>])
+AM_CONDITIONAL(WANT_PEEKFD_I386,
test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
test $ac_cv_member_struct_user_regs_struct_eax = yes &&
test $ac_cv_member_struct_user_regs_struct_ebx = yes &&
test $ac_cv_member_struct_user_regs_struct_ecx = yes &&
test $ac_cv_member_struct_user_regs_struct_edx = yes )
+AM_CONDITIONAL(WANT_PEEKFD_X86_64,
+ test $ac_cv_member_struct_user_regs_struct_orig_rax = yes &&
+ test $ac_cv_member_struct_user_regs_struct_rax = yes &&
+ test $ac_cv_member_struct_user_regs_struct_rdi = yes &&
+ test $ac_cv_member_struct_user_regs_struct_rsi = yes &&
+ test $ac_cv_member_struct_user_regs_struct_rdx = yes )
dnl Check for language stuff
AM_GNU_GETTEXT([external])
msgstr ""
"Project-Id-Version: psmisc 22.2pre1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2006-03-07 11:49+0200\n"
"Last-Translator: Anton Zinoviev <zinoviev@debian.org>\n"
"Language-Team: Bulgarian <dict@fsa-bg.org>\n"
"Copyright © 1993-2005 Werner Almesberger и Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Не може да бъде намерен номерът на устройството на гнездото.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 21.6cvs\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2004-12-08 12:46+0100\n"
"Last-Translator: Guillem Jover <guillem@debian.org>\n"
"Language-Team: Catalan <debian-l10n-catalan@lists.debian.org>\n"
"Copyright (C) 1993-2002 Werner Almesberger i Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "no s'ha pogut trobar el nombre de dispositiu del sòcol"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 20.1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2004-11-02 13:36-0500\n"
"Last-Translator: Wolfgang Schorer <wcc@wolfgangs.com>\n"
"Language-Team: woolfy <woolfy@users.sourceforge.net>\n"
"Copyright (C) 1993-2002 Werner Almesberger und Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Kann die Gerätenummer der Sockets nicht finden"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "fuser (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 21.6pre1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2005-02-23 14:55+0100\n"
"Last-Translator: Mikel Olasagasti <hey_neken@mundurat.net>\n"
"Language-Team: Basque <translation-team-eu@lists.sourceforge.net>\n"
"Copyright (C) 1993-2002 Werner Almesberger eta Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "ezin da socket gailu zenbakia aurkitu"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 21.5\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2004-10-29 15:14+0300\n"
"Last-Translator: Lars Wirzenius <liw@iki.fi>\n"
"Language-Team: Finnish <fi@li.org>\n"
"Copyright (C) 1993-2002 Werner Almesberger and Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, fuzzy, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "pistokkeen laitenumeroa ei löydy"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 20.1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2002-04-12 21:33+1000\n"
"Last-Translator: Marc Léger <sorata@users.sourceforge.net>\n"
"Language-Team: French <fr@li.org>\n"
"\n"
msgstr ""
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, fuzzy, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "ne peut pas trouver le numéro du périphérique des sockets"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "fuser (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.2\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2006-08-05 02:34+0200\n"
"Last-Translator: Miklos Vajna <vmiklos@frugalware.org>\n"
"Language-Team: Hungarian <translation-team-hu@lists.sourceforge.net>\n"
"Copyright (C) 1993-2005 Werner Almesberger és Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Nem sikerült megtalálni a socket eszközszámát.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.5\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2007-05-30 17:17+0100\n"
"Last-Translator: Marco Colombo <m.colombo@ed.ac.uk>\n"
"Language-Team: Italian <tp@lists.linux.it>\n"
"Copyright (C) 1993-2005 Werner Almesberger e Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Impossibile trovare il numero di dispositivo del socket.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr "Errore nel collegarsi al pid %i\n"
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "peekfd (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
# FIXME
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.2pre1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2006-03-20 10:31+0900\n"
"Last-Translator: GOTO Masanori <gotom@debian.or.jp>\n"
"Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
"Copyright (C) 1993-2005 Werner Almesberger and Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "¥½¥±¥Ã¥È¤Î¥Ç¥Ð¥¤¥¹Èֹ椬¸«¤Ä¤«¤ê¤Þ¤»¤ó.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.2pre1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2006-03-07 12:01+0100\n"
"Last-Translator: Trond Endrestøl <Trond.Endrestol@fagskolen.gjovik.no>\n"
"Language-Team: Norwegian Bokmaal <i18n-nb@lister.ping.uio.no>\n"
"Copyright (C) 1993-2005 Werner Almesberger og Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Kan ikke finne socketens enhetsnummer.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.5\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2007-05-31 14:03+0200\n"
"Last-Translator: Benno Schulenberg <benno@vertaalt.nl>\n"
"Language-Team: Dutch <vertaling@vrijschrift.org>\n"
"Copyright (C) 1993-2005 Werner Almesberger and Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Kan apparaatnummer van socket niet vinden.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr "Fout tijdens aanhechten aan PID %i\n"
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "peekfd (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"Copyright (C) 2007 Trent Waddington\n"
"\n"
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.5\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2007-05-30 17:34+0200\n"
"Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n"
"Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
"Copyright (C) 1993-2005 Werner Almesberger i Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Nie mo¿na odnale¼æ numeru urz±dzenia gniazda.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr "B³±d podczas pod³±czania do procesu %i\n"
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "peekfd (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"Copyright (C) 2007 Trent Waddington\n"
"\n"
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"\n"
msgstr ""
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr ""
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr ""
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 1.0\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2001-10-28 22:14-0200\n"
"Last-Translator: Edesio Costa e Silva <edesio+psmisc@ieee.org>\n"
"Language-Team: Portuguese <pt@li.org>\n"
"\n"
msgstr ""
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, fuzzy, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "não pode achar o número de dispositivo do socket"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "fuser (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc-21.6pre1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2005-02-24 12:00-0500\n"
"Last-Translator: Laurentiu Buzdugan <lbuz@rolix.org>\n"
"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n"
"Copyright (C) 1993-2002 Werner Almesberger ºi Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "nu pot gãsi numerele dispozitivelor socket-urilor"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 20.6\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2005-03-15 02:53+0300\n"
"Last-Translator: Ilya Evseev <evseev@altlinux.ru>\n"
"Language-Team: woolfy <woolfy@users.sourceforge.net>\n"
"\n"
msgstr ""
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "ÎÅ ÍÏÇÕ ÎÁÊÔÉ ÎÏÍÅÒ ÕÓÔÒÏÊÓÔ×Á ÓÏËÅÔÁ"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "fuser (psmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.2pre1\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2006-05-04 00:08+0100\n"
"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
"Copyright 1993-2005 Werner Almesberger och Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Kunde inte hitta uttagets enhetsnummer.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr ""
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, fuzzy, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "pstree (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"\n"
msgstr ""
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.5\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2007-05-31 18:04+0930\n"
"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
"Bản quyền © 1993-2005 Werner Almesberger và Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "Không tìm thấy số hiệu thiết bị ổ cắm.\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr "Gặp lỗi khi đính kèm đến PID %i\n"
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "peekfd (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"Tác quyền © năm 2007 của Trent Waddington\n"
"\n"
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
msgstr ""
"Project-Id-Version: psmisc 22.5\n"
"Report-Msgid-Bugs-To: csmall@small.dropbear.id.au\n"
-"POT-Creation-Date: 2007-05-31 08:31+1000\n"
+"POT-Creation-Date: 2007-06-21 10:12+1000\n"
"PO-Revision-Date: 2007-06-13 03:56+0800\n"
"Last-Translator: LI Daobing <lidaobing@gmail.com>\n"
"Language-Team: Chinese (simplified) <translation-team-zh-cn@lists."
"版权所有 © 1993-2005 Werner Almesberger 和 Craig Small\n"
"\n"
-#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:61 src/pstree.c:782
+#: src/killall.c:556 src/fuser.c:124 src/peekfd.c:76 src/pstree.c:782
#, c-format
msgid ""
"PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
msgid "Cannot find socket's device number.\n"
msgstr "无法找到 socket 的设备号。\n"
-#: src/peekfd.c:49
+#: src/peekfd.c:64
#, c-format
msgid "Error attaching to pid %i\n"
msgstr "帮定%i号进程时发生错误\n"
-#: src/peekfd.c:57
+#: src/peekfd.c:72
#, c-format
msgid "peekfd (PSmisc) %s\n"
msgstr "peekfd (PSmisc) %s\n"
-#: src/peekfd.c:59
+#: src/peekfd.c:74
#, c-format
msgid ""
"Copyright (C) 2007 Trent Waddington\n"
"版权所有 © 2007 Trent Waddington\n"
"\n"
-#: src/peekfd.c:69
+#: src/peekfd.c:84
#, c-format
msgid ""
"Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
AM_CFLAGS = -Wall -DLOCALEDIR=\"/usr/share/locale\"
bin_PROGRAMS = fuser killall pstree oldfuser
-if WANT_PEEKFD
+if WANT_PEEKFD_I386
bin_PROGRAMS += peekfd
+ AM_CFLAGS += -DI386
+endif
+if WANT_PEEKFD_X86_64
+ bin_PROGRAMS += peekfd
+ AM_CFLAGS += -DX86_64
endif
oldfuser_SOURCES = oldfuser.c comm.h signals.c signals.h loop.h i18n.h
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include <sys/syscall.h>
#include <linux/user.h>
#include <stdlib.h>
#include <getopt.h>
#include "i18n.h"
+#ifdef I386
+ #define REG_ORIG_ACCUM orig_eax
+ #define REG_ACCUM eax
+ #define REG_PARAM1 ebx
+ #define REG_PARAM2 ecx
+ #define REG_PARAM3 edx
+#elif X86_64
+ #define REG_ORIG_ACCUM orig_rax
+ #define REG_ACCUM rax
+ #define REG_PARAM1 rdi
+ #define REG_PARAM2 rsi
+ #define REG_PARAM3 rdx
+#endif
+
#define MAX_ATTACHED_PIDS 1024
int num_attached_pids = 0;
pid_t attached_pids[MAX_ATTACHED_PIDS];
ptrace(PTRACE_GETREGS, pid, 0, ®s);
/*unsigned int b = ptrace(PTRACE_PEEKTEXT, pid, regs.eip, 0);*/
-
- if (follow_forks && (regs.orig_eax == 2 || regs.orig_eax == 120)) {
- if (regs.eax > 0)
- attach(regs.eax);
+ if (follow_forks && (regs.REG_ORIG_ACCUM == SYS_fork || regs.REG_ORIG_ACCUM == SYS_clone)) {
+ if (regs.REG_ACCUM > 0)
+ attach(regs.REG_ACCUM);
}
- if ((regs.orig_eax == 3 || regs.orig_eax == 4) && (regs.edx == regs.eax)) {
+ if ((regs.REG_ORIG_ACCUM == SYS_read || regs.REG_ORIG_ACCUM == SYS_write) && (regs.REG_PARAM3 == regs.REG_ACCUM)) {
for (i = 0; i < numfds; i++)
- if (fds[i] == regs.ebx)
+ if (fds[i] == regs.REG_PARAM1)
break;
if (i != numfds || numfds == 0) {
- if (regs.ebx != lastfd || regs.orig_eax != lastdir) {
- lastfd = regs.ebx;
- lastdir = regs.orig_eax;
+ if (regs.REG_PARAM1 != lastfd || regs.REG_ORIG_ACCUM != lastdir) {
+ lastfd = regs.REG_PARAM1;
+ lastdir = regs.REG_ORIG_ACCUM;
if (!no_headers)
- printf("\n%sing fd %i:\n", regs.orig_eax == 3 ? "read" : "writ", lastfd);
+ printf("\n%sing fd %i:\n", regs.REG_ORIG_ACCUM == SYS_read ? "read" : "writ", lastfd);
}
if (!remove_duplicates || lastbuf == NULL
- || last_buf_size != regs.edx ||
- bufdiff(pid, lastbuf, regs.ecx, regs.edx)) {
+ || last_buf_size != regs.REG_PARAM3 ||
+ bufdiff(pid, lastbuf, regs.REG_PARAM2, regs.REG_PARAM3)) {
if (remove_duplicates) {
if (lastbuf)
free(lastbuf);
- lastbuf = malloc(regs.edx);
- last_buf_size = regs.edx;
+ lastbuf = malloc(regs.REG_PARAM3);
+ last_buf_size = regs.REG_PARAM3;
}
- for (i = 0; i < regs.edx; i++) {
- unsigned int a = ptrace(PTRACE_PEEKTEXT, pid, regs.ecx + i, 0);
+ for (i = 0; i < regs.REG_PARAM3; i++) {
+ unsigned int a = ptrace(PTRACE_PEEKTEXT, pid, regs.REG_PARAM2 + i, 0);
if (remove_duplicates)
lastbuf[i] = a & 0xff;