-To build all programs in psmisc, simply execute
+Installation instructions for psmisc package
+============================================
- make
+To compile this program you will need ncurses.
-To install fuser, killall, pstree, and their man pages, run (as root)
+To build this, type
+ ./configure
+ make
- make install
+To install fuser, killall, pstree and their man pagess, type:
+ make install
-fuser is installed in /bin, killall and pstree are installed in /usr/bin
+To get pidof, link killall to pidof:
+ ln -s killall pidof
-pidof is not installed by make install because different versions of
-pidof exist and a different one may already be installed. If you want to
-install the pidof that comes with psmisc (and its man page), simply run
-(as root)
-
- make install-pidof
EG before version 20 you would do killall -HUP 123 now do
killall -s HUP 123
+The license has changed to GPL for version 20 onwards with permission
+of the original authors. People who want to use these programs under
+the previous license will have to look at psmisc 19 or below.
-psmisc, version 19
+psmisc, version 20
==================
This package contains four little utilities that use the proc FS:
+++ /dev/null
-Begin3
-Title: psmisc
-Version: 19
-Entered-date: 25OCT99
-Description: miscellaneous proc FS tools: fuser, killall, pidof, and pstree
-Keywords: psmisc, fuser, killall, pidof, pstree
-Author: Werner Almesberger <Werner.Almesberger@epfl.ch>
-Maintained-by: Werner Almesberger <Werner.Almesberger@epfl.ch>
-Primary-site: lrcftp.epfl.ch /pub/linux/local/psmisc
- 21 kB psmisc-19.tar.gz
-Alternate-site: sunsite.unc.edu /pub/Linux/system/status/ps
-Platforms: Should work with most kernels. Requires /proc
-Copying-policy: BSD-like
-End
bin_PROGRAMS = fuser killall pstree
-fuser_SOURCES = fuser.c comm.h signals.c signals.h signames.h
+fuser_SOURCES = fuser.c comm.h signals.c signals.h signames.h loop.h
killall_SOURCES = killall.c comm.h signals.c signals.h signames.h
bin_PROGRAMS = fuser killall pstree
-fuser_SOURCES = fuser.c comm.h signals.c signals.h signames.h
+fuser_SOURCES = fuser.c comm.h signals.c signals.h signames.h loop.h
killall_SOURCES = killall.c comm.h signals.c signals.h signames.h
--- /dev/null
+/*
+ * include/linux/loop.h
+ *
+ * Written by Theodore Ts'o, 3/29/93.
+ *
+ * Copyright 1993 by Theodore Ts'o. Redistribution of this file is
+ * permitted under the GNU Public License.
+ */
+
+#define LO_NAME_SIZE 64
+#define LO_KEY_SIZE 32
+
+struct loop_info {
+ int lo_number; /* ioctl r/o */
+ dev_t lo_device; /* ioctl r/o */
+ unsigned long lo_inode; /* ioctl r/o */
+ dev_t lo_rdevice; /* ioctl r/o */
+ int lo_offset;
+ int lo_encrypt_type;
+ int lo_encrypt_key_size; /* ioctl w/o */
+ int lo_flags; /* ioctl r/o */
+ char lo_name[LO_NAME_SIZE];
+ unsigned char lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */
+ unsigned long lo_init[2];
+ char reserved[4];
+};
+
+#define LO_CRYPT_NONE 0
+#define LO_CRYPT_XOR 1
+#define LO_CRYPT_DES 2
+#define LO_CRYPT_IDEA 3
+#define MAX_LO_CRYPT 4
+
+#define LOOP_SET_FD 0x4C00
+#define LOOP_CLR_FD 0x4C01
+#define LOOP_SET_STATUS 0x4C02
+#define LOOP_GET_STATUS 0x4C03