msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-10-18 08:05+1000\n"
+"POT-Creation-Date: 2001-10-18 12:43+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"
msgid "Killed %s(%s%d) with signal %d\n"
msgstr "Killed %s(%s%d) with signal %d\n"
-#: src/killall.c:261
+#: src/fuser.c:452 src/killall.c:261
#, c-format
msgid "%s is empty (not mounted ?)\n"
msgstr "%s is empty (not mounted ?)\n"
#, c-format
msgid "Maximum number of names is %d\n"
msgstr "Maximum number of names is %d\n"
+
+#: src/fuser.c:211
+#, c-format
+msgid "-4 flag used but proc file %s is not readable\n"
+msgstr "-4 flag used but proc file %s is not readable\n"
+
+#: src/fuser.c:220
+#, c-format
+msgid "-6 flag used but proc file %s is not readable\n"
+msgstr "-6 flag used but proc file %s is not readable\n"
+
+#: src/fuser.c:536
+#, c-format
+msgid "Kill process %d ? (y/n) "
+msgstr "Kill process %d ? (y/n) "
+
+#: src/fuser.c:566
+#, c-format
+msgid "kill %d"
+msgstr "kill %d"
+
+#: src/fuser.c:570 src/fuser.c:574
+#, c-format
+msgid "No automatic removal. Please use umount %s\n"
+msgstr "No automatic removal. Please use umount %s\n"
+
+#: src/fuser.c:578
+#, c-format
+msgid "No automatic removal. Please use swapoff %s\n"
+msgstr "No automatic removal. Please use swapoff %s\n"
+
+#: src/fuser.c:680
+#, c-format
+msgid "Internal error (type %d)\n"
+msgstr "Internal error (type %d)\n"
+
+#: src/fuser.c:710
+msgid "kernel mount "
+msgstr "kernel mount "
+
+#: src/fuser.c:713
+msgid "kernel loop "
+msgstr "kernel loop "
+
+#: src/fuser.c:716
+msgid "kernel swap "
+msgstr "kernel swap "
+
+#: src/fuser.c:736
+msgid "No process references; use -v for the complete list\n"
+msgstr "No process references; use -v for the complete list\n"
+
+#: src/fuser.c:869
+msgid "can't find sockets' device number"
+msgstr "can't find sockets' device number"
+
+#: src/fuser.c:877
+msgid "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
+msgstr "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
+
+#: src/fuser.c:878
+#, c-format
+msgid "%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
+msgstr ""
+
+#: src/fuser.c:879
+msgid " fuser -l\n"
+msgstr ""
+
+#: src/fuser.c:880
+msgid ""
+" fuser -V\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:881
+msgid " -a display unused files too\n"
+msgstr ""
+
+#: src/fuser.c:882
+msgid " -k kill processes accessing that file\n"
+msgstr ""
+
+#: src/fuser.c:883
+msgid " -i ask before killing (ignored without -k)\n"
+msgstr ""
+
+#: src/fuser.c:884
+msgid " -l list signal names\n"
+msgstr ""
+
+#: src/fuser.c:885
+msgid " -m mounted FS\n"
+msgstr ""
+
+#: src/fuser.c:886
+msgid " -n space search in the specified name space (file, udp, or tcp)\n"
+msgstr ""
+
+#: src/fuser.c:887
+msgid " -s silent operation\n"
+msgstr ""
+
+#: src/fuser.c:888
+msgid " -signal send signal instead of SIGKILL\n"
+msgstr ""
+
+#: src/fuser.c:889
+msgid " -u display user ids\n"
+msgstr ""
+
+#: src/fuser.c:890
+msgid " -v verbose output\n"
+msgstr ""
+
+#: src/fuser.c:891
+msgid " -V display version information\n"
+msgstr ""
+
+#: src/fuser.c:892
+msgid " -4 search IPv4 sockets only\n"
+msgstr ""
+
+#: src/fuser.c:893
+msgid " -6 search IPv6 sockets only\n"
+msgstr ""
+
+#: src/fuser.c:894
+msgid ""
+" - reset options\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:895
+msgid ""
+" udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:901
+#, c-format
+msgid "fuser (psmisc) %s\n"
+msgstr ""
+
+#: src/fuser.c:902
+msgid ""
+"Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:903
+msgid "PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
+msgstr ""
+
+#: src/fuser.c:904
+msgid ""
+"This is free software, and you are welcome to redistribute it under the "
+"terms\n"
+msgstr ""
+
+#: src/fuser.c:905
+msgid "of the GNU General Public License.\n"
+msgstr ""
+
+#: src/fuser.c:906
+msgid ""
+"For more information about these matters, see the files named COPYING.\n"
+msgstr ""
+
+#: src/fuser.c:1082
+#, c-format
+msgid "ignoring -m in name space \"%s\"\n"
+msgstr ""
+
+#: src/fuser.c:1090
+#, c-format
+msgid "%1%s/%2%s: invalid specificiation\n"
+msgstr ""
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-10-18 08:05+1000\n"
+"POT-Creation-Date: 2001-10-18 12:43+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"
msgid "Killed %s(%s%d) with signal %d\n"
msgstr ""
-#: src/killall.c:261
+#: src/fuser.c:452 src/killall.c:261
#, c-format
msgid "%s is empty (not mounted ?)\n"
msgstr ""
#, c-format
msgid "Maximum number of names is %d\n"
msgstr ""
+
+#: src/fuser.c:211
+#, c-format
+msgid "-4 flag used but proc file %s is not readable\n"
+msgstr ""
+
+#: src/fuser.c:220
+#, c-format
+msgid "-6 flag used but proc file %s is not readable\n"
+msgstr ""
+
+#: src/fuser.c:536
+#, c-format
+msgid "Kill process %d ? (y/n) "
+msgstr ""
+
+#: src/fuser.c:566
+#, c-format
+msgid "kill %d"
+msgstr ""
+
+#: src/fuser.c:570 src/fuser.c:574
+#, c-format
+msgid "No automatic removal. Please use umount %s\n"
+msgstr ""
+
+#: src/fuser.c:578
+#, c-format
+msgid "No automatic removal. Please use swapoff %s\n"
+msgstr ""
+
+#: src/fuser.c:680
+#, c-format
+msgid "Internal error (type %d)\n"
+msgstr ""
+
+#: src/fuser.c:710
+msgid "kernel mount "
+msgstr ""
+
+#: src/fuser.c:713
+msgid "kernel loop "
+msgstr ""
+
+#: src/fuser.c:716
+msgid "kernel swap "
+msgstr ""
+
+#: src/fuser.c:736
+msgid "No process references; use -v for the complete list\n"
+msgstr ""
+
+#: src/fuser.c:869
+msgid "can't find sockets' device number"
+msgstr ""
+
+#: src/fuser.c:877
+msgid "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
+msgstr ""
+
+#: src/fuser.c:878
+#, c-format
+msgid "%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
+msgstr ""
+
+#: src/fuser.c:879
+msgid " fuser -l\n"
+msgstr ""
+
+#: src/fuser.c:880
+msgid ""
+" fuser -V\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:881
+msgid " -a display unused files too\n"
+msgstr ""
+
+#: src/fuser.c:882
+msgid " -k kill processes accessing that file\n"
+msgstr ""
+
+#: src/fuser.c:883
+msgid " -i ask before killing (ignored without -k)\n"
+msgstr ""
+
+#: src/fuser.c:884
+msgid " -l list signal names\n"
+msgstr ""
+
+#: src/fuser.c:885
+msgid " -m mounted FS\n"
+msgstr ""
+
+#: src/fuser.c:886
+msgid " -n space search in the specified name space (file, udp, or tcp)\n"
+msgstr ""
+
+#: src/fuser.c:887
+msgid " -s silent operation\n"
+msgstr ""
+
+#: src/fuser.c:888
+msgid " -signal send signal instead of SIGKILL\n"
+msgstr ""
+
+#: src/fuser.c:889
+msgid " -u display user ids\n"
+msgstr ""
+
+#: src/fuser.c:890
+msgid " -v verbose output\n"
+msgstr ""
+
+#: src/fuser.c:891
+msgid " -V display version information\n"
+msgstr ""
+
+#: src/fuser.c:892
+msgid " -4 search IPv4 sockets only\n"
+msgstr ""
+
+#: src/fuser.c:893
+msgid " -6 search IPv6 sockets only\n"
+msgstr ""
+
+#: src/fuser.c:894
+msgid ""
+" - reset options\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:895
+msgid ""
+" udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:901
+#, c-format
+msgid "fuser (psmisc) %s\n"
+msgstr ""
+
+#: src/fuser.c:902
+msgid ""
+"Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n"
+"\n"
+msgstr ""
+
+#: src/fuser.c:903
+msgid "PSmisc comes with ABSOLUTELY NO WARRANTY.\n"
+msgstr ""
+
+#: src/fuser.c:904
+msgid ""
+"This is free software, and you are welcome to redistribute it under the "
+"terms\n"
+msgstr ""
+
+#: src/fuser.c:905
+msgid "of the GNU General Public License.\n"
+msgstr ""
+
+#: src/fuser.c:906
+msgid ""
+"For more information about these matters, see the files named COPYING.\n"
+msgstr ""
+
+#: src/fuser.c:1082
+#, c-format
+msgid "ignoring -m in name space \"%s\"\n"
+msgstr ""
+
+#: src/fuser.c:1090
+#, c-format
+msgid "%1%s/%2%s: invalid specificiation\n"
+msgstr ""
#include <arpa/inet.h>
#include <linux/kdev_t.h> /* for MKDEV */
#include <linux/major.h> /* for LOOP_MAJOR */
+#include <libintl.h>
+#include <locale.h>
+#define _(String) gettext (String)
#include "comm.h"
#include "loop.h" /* for loop_info */
sprintf (buffer, PROC_BASE "/net/%s", dsc->name);
if (stat(buffer, &statbuf) != 0) {
if (ipv4only)
- fprintf(stderr, "-4 flag used but proc file %s is not readable/\n", buffer);
+ fprintf(stderr, _("-4 flag used but proc file %s is not readable\n"), buffer);
} else {
parse_net_file (dsc, buffer, &last );
}
sprintf (buffer, PROC_BASE "/net/%s6", dsc->name);
if (stat(buffer, &statbuf) != 0) {
if (ipv6only)
- fprintf(stderr, "-6 flag used but proc file %s is not readable/\n", buffer);
+ fprintf(stderr, _("-6 flag used but proc file %s is not readable\n"), buffer);
} else {
parse_net_file (dsc, buffer, &last );
}
(void) closedir (dir);
if (empty)
{
- fprintf (stderr, PROC_BASE " is empty (not mounted ?)\n");
+ fprintf (stderr, _("%s is empty (not mounted ?)\n"),PROC_BASE);
exit (1);
}
}
fflush (stdout);
do
{
- fprintf (stderr, "Kill process %d ? (y/n) ", pid);
+ fprintf (stderr, _("Kill process %d ? (y/n) "), pid);
fflush (stderr);
do
if ((ch = getchar ()) == EOF)
return;
if (kill (item->u.proc.pid, file->sig_num) >= 0)
break;
- sprintf (tmp, "kill %d", item->u.proc.pid);
+ sprintf (tmp, _("kill %d"), item->u.proc.pid);
perror (tmp);
break;
case it_mount:
- fprintf (stderr, "No automatic removal. Please use umount %s\n",
+ fprintf (stderr, _("No automatic removal. Please use umount %s\n"),
item->u.misc.path);
break;
case it_loop:
- fprintf (stderr, "No automatic removal. Please use umount %s\n",
+ fprintf (stderr, _("No automatic removal. Please use umount %s\n"),
item->u.misc.path);
break;
case it_swap:
- fprintf (stderr, "No automatic removal. Please use swapoff %s\n",
+ fprintf (stderr, _("No automatic removal. Please use swapoff %s\n"),
file->name);
break;
}
uid = 0;
break;
default:
- fprintf (stderr, "Internal error (type %d)\n",
+ fprintf (stderr, _("Internal error (type %d)\n"),
item->type);
exit (1);
}
!(item->u.proc.ref_set & REF_EXE) ? 'm' : '.');
break;
case it_mount:
- printf ("kernel mount ");
+ printf (_("kernel mount "));
break;
case it_loop:
- printf ("kernel loop ");
+ printf (_("kernel loop "));
break;
case it_swap:
- printf ("kernel swap ");
+ printf (_("kernel swap "));
break;
}
if (name)
if (!(file->flags & FLAG_VERB) || first)
putchar ('\n');
if (first)
- fprintf (stderr, "No process references; use -v for the complete"
- " list\n");
+ fprintf (stderr, _("No process references; use -v for the complete list\n"));
if (file->flags & FLAG_KILL)
for (item = file->items; item; item = item->next)
kill_item (file, item);
}
if (fd >= 0)
close(fd);
- fprintf(stderr,"can't find sockets' device number");
+ fprintf(stderr,_("can't find sockets' device number"));
}
static void
usage (void)
{
- fprintf (stderr, "usage: fuser [ -a | -s ] [ -n space ] [ -signal ] "
- "[ -kimuv ] name ...\n%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] "
- "name ...\n", "");
- fprintf (stderr, " fuser -l\n");
- fprintf (stderr, " fuser -V\n\n");
- fprintf (stderr, " -a display unused files too\n");
- fprintf (stderr, " -k kill processes accessing that file\n");
- fprintf (stderr, " -i ask before killing (ignored without -k)\n");
- fprintf (stderr, " -l list signal names\n");
- fprintf (stderr, " -m mounted FS\n");
- fprintf (stderr, " -n space search in the specified name space (file, "
- "udp, or tcp)\n");
- fprintf (stderr, " -s silent operation\n");
- fprintf (stderr, " -signal send signal instead of SIGKILL\n");
- fprintf (stderr, " -u display user ids\n");
- fprintf (stderr, " -v verbose output\n");
- fprintf (stderr, " -V display version information\n");
- fprintf (stderr, " -4 search IPv4 sockets only\n");
- fprintf (stderr, " -6 search IPv6 sockets only\n");
- fprintf (stderr, " - reset options\n\n");
- fprintf (stderr, " udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]"
- "\n\n");
+ fprintf (stderr, _("usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"));
+ fprintf (stderr, _("%13s[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"), "");
+ fprintf (stderr, _(" fuser -l\n"));
+ fprintf (stderr, _(" fuser -V\n\n"));
+ fprintf (stderr, _(" -a display unused files too\n"));
+ fprintf (stderr, _(" -k kill processes accessing that file\n"));
+ fprintf (stderr, _(" -i ask before killing (ignored without -k)\n"));
+ fprintf (stderr, _(" -l list signal names\n"));
+ fprintf (stderr, _(" -m mounted FS\n"));
+ fprintf (stderr, _(" -n space search in the specified name space (file, udp, or tcp)\n"));
+ fprintf (stderr, _(" -s silent operation\n"));
+ fprintf (stderr, _(" -signal send signal instead of SIGKILL\n"));
+ fprintf (stderr, _(" -u display user ids\n"));
+ fprintf (stderr, _(" -v verbose output\n"));
+ fprintf (stderr, _(" -V display version information\n"));
+ fprintf (stderr, _(" -4 search IPv4 sockets only\n"));
+ fprintf (stderr, _(" -6 search IPv6 sockets only\n"));
+ fprintf (stderr, _(" - reset options\n\n"));
+ fprintf (stderr, _(" udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n\n"));
exit (1);
}
void print_version()
{
- fprintf(stderr, "fuser (psmisc) %s\n", VERSION);
- fprintf(stderr, "Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n\n");
- fprintf(stderr, "PSmisc comes with ABSOLUTELY NO WARRANTY.\n");
- fprintf(stderr, "This is free software, and you are welcome to redistribute it under the terms\n");
- fprintf(stderr, "of the GNU General Public License.\n");
- fprintf(stderr, "For more information about these matters, see the files named COPYING.\n");
+ fprintf(stderr, _("fuser (psmisc) %s\n"), VERSION);
+ fprintf(stderr, _("Copyright (C) 1993-2000 Werner Almesberger and Craig Small\n\n"));
+ fprintf(stderr, _("PSmisc comes with ABSOLUTELY NO WARRANTY.\n"));
+ fprintf(stderr, _("This is free software, and you are welcome to redistribute it under the terms\n"));
+ fprintf(stderr, _("of the GNU General Public License.\n"));
+ fprintf(stderr, _("For more information about these matters, see the files named COPYING.\n"));
}
sig_number = SIGKILL;
name_space = name_spaces;
no_files = 1;
+
+ /* Setup the i18n */
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
if (argc < 2)
usage ();
if (argc == 2 && !strcmp (argv[1], "-l"))
if (flags & FLAG_DEV)
{
- fprintf (stderr, "ignoring -m in name space \"%s\"\n",
+ fprintf (stderr, _("ignoring -m in name space \"%s\"\n"),
this_name_space->name);
flags &= ~FLAG_DEV;
}
if (!parse_inet (*argv, this_name_space->name, &lcl_port,
&rmt_addr, &rmt_port))
{
- fprintf (stderr, "%s/%s: invalid specificiation\n", *argv,
+ fprintf (stderr, _("%1%s/%2%s: invalid specificiation\n"), *argv,
this_name_space->name);
continue;
}