summaryrefslogtreecommitdiff
path: root/sys-utils
AgeCommit message (Collapse)AuthorFilesLines
2009-03-11flock: add NLS support, remove tailing white-spacesKarel Zak1-18/+24
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-11flock: fix printf format error in usage()Karel Zak1-5/+5
flock.c: In function ‘usage’: flock.c:75: warning: too few arguments for format Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-11flockc: segfaults when file name is not givenKarel Zak1-1/+8
$ flock -s Segmentation fault ltrace: __libc_start_main(0x8048870, 2, 0xbfe9f404, 0x8049070, 0x8049060 <unfinished ...> getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = 115 getopt_long(2, 0xbfe9f404, "+sexnouw:hV?", 0x80494e0, 0xbfe9f354) = -1 strtol(0, 0xbfe9f34c, 10, 0x80494e0, 0xbfe9f354 <unfinished ...> --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ Addresses-Red-Had-Bugzilla: #489672 Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09renice: add -n option for compatibility with POSIXKarel Zak2-4/+15
The -n option is required by POSIX.1-200x. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-01-29rtcwake: add mising .RE to the man pageKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-01-26rtcwake: explain supported modes in rtcwake.8Karel Zak1-3/+26
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-01-26rtcwake: support not suspendingMarco d'Itri2-6/+10
People usually want to use pm-utils to suspend the system instead of the raw kernel interface, so I added an option to just exit after configuring the wakeup time. Actually I think that all the suspend code should be removed from rtcwake, since it does not really belong there. Signed-off-by: Marco d'Itri <md@linux.it>
2009-01-16dmesg: Add -r (raw) option.Adam Jackson2-3/+10
Useful for debugging which kernel messages are ruining your quiet bootup. Signed-off-by: Adam Jackson <ajax@redhat.com>
2008-12-03flock: Allow lock directoryAlexey Gladkov2-4/+11
With this patch, you can lock directory. Additionally, lockfile opens with O_NOCTTY. Try to open file with O_CREAT flag first, and without it if open fails with EISDIR. Suggested by H. Peter Anvin. Signed-off-by: Alexey Gladkov <legion@altlinux.org>
2008-11-26rdev: cleanup includesKarel Zak1-10/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-19pivot_root: clean upKarel Zak1-15/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-19build-sys: move pivot_root(8) to sys-utilsKarel Zak4-14/+120
This patch moves pivot_root.{8,c) from mount/ to sys-utils/ directory. There is not ant relation between pivot_root source code and the rest of code in the mount. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-10-22lscpu: return EXIT_SUCCESS at the endMatthias Koenig1-1/+1
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
2008-10-22lscpu: add Hypervisor detectionKarel Zak2-20/+166
This patch adds two new fields: * "Hypervisor vendor" -- based on CPUID and hypervisor specific PCI devices. lscpu(1) supports KVM, XEN, Microsoft HV now. * "Virtualization type" - "none" = Xen dom0 - "full" = full virtualization (KVM, Xen, ...) - "para" = Xen paravirtualization Co-Author: Ky Srinivasan <ksrinivasan@novell.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-10-07ipcs: fix exit codes, remove tailing white-spacesKarel Zak1-76/+61
Addresses-Red-Hat-Bugzilla: #465911 Signed-off-by: Karel Zak <kzak@redhat.com>
2008-10-03readprofile: several strings without gettext callsPedro Ribeiro1-3/+3
Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-09-10ipcmk: add NLS supportKarel Zak1-10/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-09-10ipcmk: fix error codes and error messagesKarel Zak1-14/+32
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-09-10ipcmk: new commandHayden James6-3/+185
Small patch to create an application that can easily create ad-hoc ipc resources, along with man page. [kzak@redhat.com: - rename from ipccreat to ipcmk - minor coding style changes] Signed-off-by: Hayden James <hayden.james@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-08-20ipcs: adjust some field positions and widths for correct alignmentBenno Schulenberg1-5/+5
[kzak@redhat.com: - note that "ipcs -m -t" did not work correctly on terminal with 80 columns - the change of output alignment should be mentioned in the Release Notes] Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2008-08-20ipcs: ungettextize the spacing of the table headersBenno Schulenberg1-15/+15
It makes no sense to allow translators to adjust the spacing when they cannot adjust the spacing of the actual data too. Adjusting such spacing is not really a translator's task. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2008-08-14lscpu: --sysroot option and stable cache outputCai Qian1-34/+60
This patch added a --sysroot command-line option for testing purpose. It also sorted cache names, and displayed cache information in a sorted manner instead of randomly before. In addition, it had some other minor fixes. Signed-off-by: Cai Qian <qcai@redhat.com>
2008-08-06rtcwake: cleanup return codesKarel Zak1-14/+14
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-08-06rtcwake: prefer RTC_WKALM_SET over RTC_ALM_SETGabriel Burt1-18/+17
rtcwake: Prefer RTC_WKALM_SET over RTC_ALM_SET, fixing bug with not waking up with new RTCs. Also, return error if unable to set the alarm. Signed-off-by: Gabriel Burt <gburt@novell.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-08-05Fix dmesg.1 installationAlexey Gladkov1-1/+1
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
2008-07-30use getpagesize()maximilian attems1-1/+1
getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE) to anything Linux. this patch helps klibc porting effort as the sysconf multiplex API is not supported there. also remove comment of the switch to sysconf in mkswap.c. Signed-off-by: maximilian attems <max@stro.at>
2008-07-28remove CVS keywordsmaximilian attems3-3/+1
this patch removes old CVS keywords from comments. mount(8) works for newer Linux then 0.99 ;) Signed-off-by: maximilian attems <max@stro.at>
2008-07-28dmesg: nuke old glibc 5 supportmaximilian attems1-13/+2
dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘klogctl’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘type’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘b’ dmesg.c:42: error: expected declaration specifiers or ‘...’ before ‘len’ without belows compat section dmesg just compiles fine against klibc. as bonus reorder the includes. Signed-off-by: maximilian attems <max@stro.at>
2008-07-28ldattach: don't compile for non-linux systemsSamuel Thibault1-4/+4
There is just ldattach which doesn't compile because line disciplines are not implemented that way on the Hurd. Is TIOCSETD any kind of standard? Else I guess the patch below would be fine. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2008-07-22build-sys: cleanup sys-utils/Makefile.amKarel Zak1-19/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-07-18lscpu: new commandCai Qian4-2/+561
Add a lscpu(1) utility program. [kzak@redhat.com: - indent by linux-2.6/scripts/Lindent - add lscpu.{c,1} to sys-utils/Makefile.am - add NLS suport - complete code refactoring ] Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Cai Qian <qcai@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-06-09rtcwake: fix the default mode to "standby"Paulius Zaleckas1-1/+1
Writing "suspend" to /sys/power/state does nothing. Even "man rtcwake" says that default should be "standby" :) Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-05-13setarch: add fallback for linux/personalityKarel Zak1-0/+32
setarch.c:248: error: 'ADDR_NO_RANDOMIZE' undeclared (first use in this function) setarch.c:248: error: (Each undeclared identifier is reported only once setarch.c:248: error: for each function it appears in.) setarch.c:251: error: 'FDPIC_FUNCPTRS' undeclared (first use in this function) setarch.c:257: error: 'ADDR_COMPAT_LAYOUT' undeclared (first use in this function) setarch.c:260: error: 'READ_IMPLIES_EXEC' undeclared (first use in this function) Linux gzp1 2.4.36.1-gzp1 #1 SMP Tue Feb 19 10:23:48 CET 2008 i686 GNU/Linux Reported-By: Gabor Z. Papp <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-16setarch: provide backwards compatibilityDmitry V. Levin1-1/+1
The getopt_long(3) use introduced by commit 8df90dec2bfd8c876ddd4cea010f40550d4e24aa broke backwards compatibility. Old behavior: $ i386 uname -m i686 New behavior: $ i386 uname -m i386: invalid option -- m Linux Traditional method to fix it is to disable program arguments reordering by prefixing getopt_long's optstring with '+' character. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-14build-sys: update .gitignore filesKarel Zak1-1/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-14build-sys: ignore a bunch of generated files, mostly binariesJames Youngman1-0/+16
Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-09ldattach: use glibc termiosKarel Zak1-110/+36
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-25ldattach: add NLS supportKarel Zak1-14/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-10ldattach: new commandTilman Schmidt3-2/+459
Add an ldattach(8) utility program similar to the one in OpenBSD. Signed-off-by: Tilman Schmidt <tilman@imap.cc>
2008-02-15rtcwake: fix typo SATE -> STATEMike Frysinger1-3/+3
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-02-15rtcwake: include libgen.h for basename prototypeMike Frysinger1-0/+1
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-02-08rtcwake: fix UTC time usageDavid Brownell1-1/+11
Timezone handling is broken in this version since it's always passing UTC time into the kernel, even on systems where the RTC uses the local timezone. I think that bug must come from bugs in how the system used to to originally develop this code handled the RTC timezone. Both RTCs should have been kept in UTC ... but only one of them was. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2008-02-08ipcs: add information about POSIX compatibility to ipcs.1Karel Zak1-0/+14
Addresses-Suse-Bug: #274338 Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-29renice: detect errors in arguments, add -v, -h and long optionsLaMont Jones2-26/+55
* renice was using atoi(), which does no error detection, meaning that: "renice +20 blah" was accepted as valid. * add -h | --help * add -v | --version * add long options for -p, -u and -g * cleanup coding style Addresses-Debian-Bug: #385245 Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: LaMont Jones <lamont@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-14sys-utils: correct setarch.8 manpage link creationFrédéric Bothamy1-2/+2
At least on Debian, .so commands are relative to the man directory (e.g., /usr/share/man), not to the subdirectory: % man i386 man: can't open /usr/share/man/setarch.8: No such file or directory No manual entry for i386 See also http://bugs.debian.org/453245 Addresses-Debian-Bug: #453245 Signed-off-by: Frédéric Bothamy <frederic.bothamy@free.fr> Signed-off-by: LaMont Jones <lamont@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-17build-sys: simplify code around RDEV_LINKS and SETARCH_LINKSStepan Kasal4-18/+9
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-12-17build-sys: use portable $(VAR:=) instead of gmake-specific $(addsuffix)Stepan Kasal1-1/+1
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-12-17build-sys: use dist_man_MANS instead of man_MANSStepan Kasal1-5/+5
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-12-03setarch: add missing alpha subarchsOliver Falk1-0/+4
Signed-off-by: Oliver Falk <oliver@linux-kernel.at> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-03rtcwake: misc cleanupsDavid Brownell2-23/+36
Cleanups for rtcwake: - Minor doc updates: highlight the framebuffer problem, give correct history of this code - Improve debug output - Fix some linelength bugs Note that this code predated the sysfs "wakealarm" mechanism, and works around several now-fixed bugs in the kernel RTC framework. Nowadays it would make sense to make this program use only the sysfs interface to the RTC, using "since_epoch" instead of RTC_RD_TIME and "wakealarm" instead of the four other ioctls. That could simplify the mess involved in timezone handling. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Karel Zak <kzak@redhat.com>