diff options
author | Karel Zak | 2006-12-07 00:25:39 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:39 +0100 |
commit | 7eda085c41faa3445b4b168ce78ab18dab87d98a (patch) | |
tree | eb8da4baebd0af68fa84818d3d51b4a3714667fc /sys-utils/ipcrm.c | |
parent | Imported from util-linux-2.9i tarball. (diff) | |
download | kernel-qcow2-util-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.tar.gz kernel-qcow2-util-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.tar.xz kernel-qcow2-util-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.zip |
Imported from util-linux-2.9v tarball.
Diffstat (limited to 'sys-utils/ipcrm.c')
-rw-r--r-- | sys-utils/ipcrm.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c index c04b7fd44..4dcd081b4 100644 --- a/sys-utils/ipcrm.c +++ b/sys-utils/ipcrm.c @@ -1,5 +1,9 @@ /* * krishna balasubramanian 1993 + * + * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> + * - added Native Language Support + * */ #include <stdio.h> @@ -12,6 +16,8 @@ #include <sys/shm.h> #include <sys/msg.h> #include <sys/sem.h> +#include "nls.h" + #if defined (__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) /* union semun is defined by including <sys/sem.h> */ #else @@ -30,10 +36,14 @@ int main(int argc, char **argv) int id; union semun arg; - arg.val = 0; + arg.val = 0; + + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); if (argc != 3 || strlen(argv[1]) < 3) { - printf ("usage: %s [shm | msg | sem] id\n", argv[0]); + printf (_("usage: %s [shm | msg | sem] id\n"), argv[0]); exit (1); } id = atoi (argv[2]); @@ -57,10 +67,10 @@ int main(int argc, char **argv) exit (1); default: - printf ("usage: %s [-shm | -msg | -sem] id\n", argv[0]); + printf (_("usage: %s [-shm | -msg | -sem] id\n"), argv[0]); exit (1); } - printf ("resource deleted\n"); + printf (_("resource deleted\n")); return 0; } |