* fuser prints F instead of f is access is write, thanks to Tet.
* pstree checks to see it is a real tty Debian #326500
* pstree shows child threads with {commandname} Debian #230924
+ * better capitalisation with usage SF# 1150042
+
+ * Applied psmisc-21.4-alt-progname to find pstrees name
+ * configure.in checks for tinfo library
+ * both above fixes from ALTLinux
+
+
Changes in 21.6
===============
AC_SUBST([SELINUX_LIB])
dnl Checks for libraries.
-AC_CHECK_LIB([ncurses], [tgetent], [TERMCAP_LIB=-lncurses], [
- AC_CHECK_LIB([termcap], [tgetent], [TERMCAP_LIB=-ltermcap], [
- AC_MSG_ERROR([Cannot find ncurses or termcap libraries]) ]) ])
+AC_CHECK_LIB(tinfo, tgetent, TERMCAP_LIB=-ltinfo,
+ AC_CHECK_LIB(ncurses, tgetent, TERMCAP_LIB=-lncurses,
+ AC_CHECK_LIB(termcap, tgetent, TERMCAP_LIB=-ltermcap,
+ AC_MSG_ERROR(Cannot find tinfo, ncurses or termcap libraries) ) ) )
AC_SUBST([TERMCAP_LIB])
dnl Checks for header files.
fprintf(stderr, "%s\n", errormsg);
fprintf (stderr, _(
- "usage: fuser [ -a | -s | -c ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
- " [ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...\n"
+ "Usage: fuser [ -a | -s | -c ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...\n"
+ " [ - ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...\n"
" fuser -l\n"
- " fuser -V\n\n"
+ " fuser -V\n"
+ "Show which processes use the named files, sockets, or filesystems.\n\n "
" -a display unused files too\n"
" -c mounted FS\n"
" -f silently ignored (for POSIX compatibility)\n"
- " -k kill processes accessing that file\n"
" -i ask before killing (ignored without -k)\n"
- " -l list signal names\n"
- " -m mounted FS\n"
- " -n space search in the specified name space (file, udp, or tcp)\n"
+ " -k kill processes accessing the named file\n"
+ " -l list available signal names\n"
+ " -m show all processes using the named filesystems\n"
+ " -n SPACE search in this name space (file, udp, or tcp)\n"
" -s silent operation\n"
- " -signal send signal instead of SIGKILL\n"
- " -u display user ids\n"
+ " -SIGNAL send this signal instead of SIGKILL\n"
+ " -u display user IDs\n"
" -v verbose output\n"
" -V display version information\n"
" -4 search IPv4 sockets only\n"
void print_version()
{
- fprintf(stderr, _("fuser (psmisc) %s\n"), VERSION);
+ fprintf(stderr, _("fuser (PSmisc) %s\n"), VERSION);
fprintf(stderr, _(
"Copyright (C) 1993-2005 Werner Almesberger and Craig Small\n\n"));
fprintf(stderr, _(
"Usage: killall [-Z CONTEXT] [ -egiqvw ] [ -SIGNAL ] NAME...\n"));
#else /*WITH_SELINUX*/
fprintf(stderr, _(
- "Usage: killall [OPTIONS]... [--] NAME...\n"));
+ "Usage: killall [OPTION]... [--] NAME...\n"));
#endif /*WITH_SELINUX*/
fprintf(stderr, _(
" killall -l, --list\n"
#include <selinux/selinux.h>
#endif /*WITH_SELINUX*/
+extern const char *__progname;
+
#ifndef MAX_DEPTH
#define MAX_DEPTH 100
#endif
textdomain(PACKAGE);
#endif
- if ( (tmpstr = strrchr(argv[0],'/'))) {
- tmpstr++;
- if (strcmp(tmpstr, "pstree.x11") ==0)
- wait_end=1;
- }
+ if (!strcmp(__progname, "pstree.x11"))
+ wait_end=1;
/*
* Attempt to figure out a good default symbol set. Will be overriden by