summaryrefslogtreecommitdiff
path: root/schedutils
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:26:58 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:26:58 +0100
commitbaf39af15b1fe8570e6430788ec7cd4959fbc5d9 (patch)
tree296fc44adb3751a15c4cf3038af8c308358e4004 /schedutils
parent48d7b13a1eab85fab91c8d6c5ddf298f733c74f5 (diff)
downloadutil-linux-old-baf39af15b1fe8570e6430788ec7cd4959fbc5d9.tar.gz
Imported from util-linux-2.13-pre2 tarball.
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/Makefile.am2
-rw-r--r--schedutils/Makefile.in139
-rw-r--r--schedutils/chrt.c4
-rw-r--r--schedutils/taskset.c4
4 files changed, 45 insertions, 104 deletions
diff --git a/schedutils/Makefile.am b/schedutils/Makefile.am
index 33235f2f..03e3080b 100644
--- a/schedutils/Makefile.am
+++ b/schedutils/Makefile.am
@@ -2,7 +2,7 @@ include $(top_srcdir)/config/include-Makefile.am
if BUILD_SCHEDUTILS
-usrbin_PROGRAMS = chrt ionice taskset
+usrbinexec_PROGRAMS = chrt ionice taskset
man_MANS = chrt.1 ionice.1 taskset.1
endif
diff --git a/schedutils/Makefile.in b/schedutils/Makefile.in
index 8d6d468d..48cefd8e 100644
--- a/schedutils/Makefile.in
+++ b/schedutils/Makefile.in
@@ -38,8 +38,8 @@ build_triplet = @build@
host_triplet = @host@
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(top_srcdir)/config/include-Makefile.am
-@BUILD_SCHEDUTILS_TRUE@usrbin_PROGRAMS = chrt$(EXEEXT) ionice$(EXEEXT) \
-@BUILD_SCHEDUTILS_TRUE@ taskset$(EXEEXT)
+@BUILD_SCHEDUTILS_TRUE@usrbinexec_PROGRAMS = chrt$(EXEEXT) \
+@BUILD_SCHEDUTILS_TRUE@ ionice$(EXEEXT) taskset$(EXEEXT)
subdir = schedutils
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
@@ -52,9 +52,9 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
-am__installdirs = "$(DESTDIR)$(usrbindir)" "$(DESTDIR)$(man1dir)"
-usrbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-PROGRAMS = $(usrbin_PROGRAMS)
+am__installdirs = "$(DESTDIR)$(usrbinexecdir)" "$(DESTDIR)$(man1dir)"
+usrbinexecPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(usrbinexec_PROGRAMS)
chrt_SOURCES = chrt.c
chrt_OBJECTS = chrt.$(OBJEXT)
chrt_LDADD = $(LDADD)
@@ -68,12 +68,8 @@ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = chrt.c ionice.c taskset.c
DIST_SOURCES = chrt.c ionice.c taskset.c
man1dir = $(mandir)/man1
@@ -86,7 +82,6 @@ ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
-AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
@@ -126,21 +121,14 @@ CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
DEPDIR = @DEPDIR@
-ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
-F77 = @F77@
-FFLAGS = @FFLAGS@
GMSGFMT = @GMSGFMT@
HAVE_BLKID_FALSE = @HAVE_BLKID_FALSE@
HAVE_BLKID_TRUE = @HAVE_BLKID_TRUE@
@@ -175,8 +163,6 @@ LIBICONV = @LIBICONV@
LIBINTL = @LIBINTL@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@
LTLIBINTL = @LTLIBINTL@
LTLIBOBJS = @LTLIBOBJS@
@@ -209,16 +195,11 @@ USE_TTY_GROUP_FALSE = @USE_TTY_GROUP_FALSE@
USE_TTY_GROUP_TRUE = @USE_TTY_GROUP_TRUE@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
-ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_F77 = @ac_ct_F77@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
@@ -252,15 +233,15 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-usrbindir = $(prefix)/usr/bin
-usrsbindir = $(prefix)/usr/sbin
-AM_CPPFLAGS = -include ../config.h -I$(top_srcdir)/include
+usrbinexecdir = $(prefix)/usr/bin
+usrsbinexecdir = $(prefix)/usr/sbin
+AM_CPPFLAGS = -include $(top_srcdir)/config.h -I$(top_srcdir)/include
DEFAULT_INCLUDES =
@BUILD_SCHEDUTILS_TRUE@man_MANS = chrt.1 ionice.1 taskset.1
all: all-am
.SUFFIXES:
-.SUFFIXES: .c .lo .o .obj
+.SUFFIXES: .c .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/config/include-Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
@@ -290,50 +271,29 @@ $(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-install-usrbinPROGRAMS: $(usrbin_PROGRAMS)
+install-usrbinexecPROGRAMS: $(usrbinexec_PROGRAMS)
@$(NORMAL_INSTALL)
- test -z "$(usrbindir)" || $(mkdir_p) "$(DESTDIR)$(usrbindir)"
- @list='$(usrbin_PROGRAMS)'; for p in $$list; do \
+ test -z "$(usrbinexecdir)" || $(mkdir_p) "$(DESTDIR)$(usrbinexecdir)"
+ @list='$(usrbinexec_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
- || test -f $$p1 \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(usrbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(usrbindir)/$$f'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(usrbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(usrbindir)/$$f" || exit 1; \
+ echo " $(INSTALL_PROGRAM_ENV) $(usrbinexecPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(usrbinexecdir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(usrbinexecPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(usrbinexecdir)/$$f" || exit 1; \
else :; fi; \
done
-uninstall-usrbinPROGRAMS:
+uninstall-usrbinexecPROGRAMS:
@$(NORMAL_UNINSTALL)
- @list='$(usrbin_PROGRAMS)'; for p in $$list; do \
+ @list='$(usrbinexec_PROGRAMS)'; for p in $$list; do \
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- echo " rm -f '$(DESTDIR)$(usrbindir)/$$f'"; \
- rm -f "$(DESTDIR)$(usrbindir)/$$f"; \
+ echo " rm -f '$(DESTDIR)$(usrbinexecdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(usrbinexecdir)/$$f"; \
done
-clean-usrbinPROGRAMS:
- @list='$(usrbin_PROGRAMS)'; for p in $$list; do \
- f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f $$p $$f"; \
- rm -f $$p $$f ; \
- done
-
-installcheck-usrbinPROGRAMS: $(usrbin_PROGRAMS)
- bad=0; pid=$$$$; list="$(usrbin_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(usrbindir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
+clean-usrbinexecPROGRAMS:
+ -test -z "$(usrbinexec_PROGRAMS)" || rm -f $(usrbinexec_PROGRAMS)
chrt$(EXEEXT): $(chrt_OBJECTS) $(chrt_DEPENDENCIES)
@rm -f chrt$(EXEEXT)
$(LINK) $(chrt_LDFLAGS) $(chrt_OBJECTS) $(chrt_LDADD) $(LIBS)
@@ -367,22 +327,6 @@ distclean-compile:
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
-
-.c.lo:
-@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
-@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-distclean-libtool:
- -rm -f libtool
uninstall-info-am:
install-man1: $(man1_MANS) $(man_MANS)
@$(NORMAL_INSTALL)
@@ -510,7 +454,7 @@ check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS) $(MANS)
installdirs:
- for dir in "$(DESTDIR)$(usrbindir)" "$(DESTDIR)$(man1dir)"; do \
+ for dir in "$(DESTDIR)$(usrbinexecdir)" "$(DESTDIR)$(man1dir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: install-am
@@ -539,14 +483,13 @@ maintainer-clean-generic:
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
-clean-am: clean-generic clean-libtool clean-usrbinPROGRAMS \
- mostlyclean-am
+clean-am: clean-generic clean-usrbinexecPROGRAMS mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
- distclean-libtool distclean-tags
+ distclean-tags
dvi: dvi-am
@@ -558,15 +501,15 @@ info: info-am
info-am:
-install-data-am: install-man install-usrbinPROGRAMS
+install-data-am: install-man
-install-exec-am:
+install-exec-am: install-usrbinexecPROGRAMS
install-info: install-info-am
install-man: install-man1
-installcheck-am: installcheck-usrbinPROGRAMS
+installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
@@ -575,8 +518,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
pdf: pdf-am
@@ -586,23 +528,22 @@ ps: ps-am
ps-am:
-uninstall-am: uninstall-info-am uninstall-man uninstall-usrbinPROGRAMS
+uninstall-am: uninstall-info-am uninstall-man \
+ uninstall-usrbinexecPROGRAMS
uninstall-man: uninstall-man1
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
- clean-libtool clean-usrbinPROGRAMS ctags distclean \
- distclean-compile distclean-generic distclean-libtool \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-exec \
- install-exec-am install-info install-info-am install-man \
- install-man1 install-strip install-usrbinPROGRAMS installcheck \
- installcheck-am installcheck-usrbinPROGRAMS installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
- pdf pdf-am ps ps-am tags uninstall uninstall-am \
- uninstall-info-am uninstall-man uninstall-man1 \
- uninstall-usrbinPROGRAMS
+ clean-usrbinexecPROGRAMS ctags distclean distclean-compile \
+ distclean-generic distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-exec install-exec-am install-info \
+ install-info-am install-man install-man1 install-strip \
+ install-usrbinexecPROGRAMS installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
+ ps ps-am tags uninstall uninstall-am uninstall-info-am \
+ uninstall-man uninstall-man1 uninstall-usrbinexecPROGRAMS
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index b61ed52a..7adff1c4 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -32,7 +32,7 @@
static void show_usage(const char *cmd)
{
- fprintf(stderr, "chrt version " VERSION "\n");
+ fprintf(stderr, "chrt (%s)\n", PACKAGE_STRING);
fprintf(stderr, "usage: %s [options] [prio] [pid | cmd [args...]]\n",
cmd);
fprintf(stderr, "manipulate real-time attributes of a process\n");
@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
verbose = 1;
break;
case 'V':
- printf("chrt version " VERSION "\n");
+ printf("chrt (%s)\n", PACKAGE_STRING);
return 0;
case 'h':
ret = 0;
diff --git a/schedutils/taskset.c b/schedutils/taskset.c
index 5932620e..2590d995 100644
--- a/schedutils/taskset.c
+++ b/schedutils/taskset.c
@@ -39,7 +39,7 @@
static void show_usage(const char *cmd)
{
- fprintf(stderr, "taskset version " VERSION "\n");
+ fprintf(stderr, "taskset (%s)\n", PACKAGE_STRING);
fprintf(stderr, "usage: %s [options] [mask | cpu-list] [pid |"\
" cmd [args...]]\n", cmd);
fprintf(stderr, "set or get the affinity of a process\n\n");
@@ -254,7 +254,7 @@ int main(int argc, char *argv[])
c_opt = 1;
break;
case 'V':
- printf("taskset version " VERSION "\n");
+ printf("taskset (%s)\n", PACKAGE_STRING);
return 0;
case 'h':
ret = 0;