Commit Graph

3134 Commits

Author SHA1 Message Date
Sami Kerola 309e6a4915 docs: uuidgen.1 mention long options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 14:29:06 +02:00
Sami Kerola 0379a55d9f uuidgen: add long options
Affects to help output as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 14:28:56 +02:00
Sami Kerola 094678122e wipefs: add version printing & compiler warning
The --version option is added, and a storage type is fixed to
correct a compiler warnings.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 14:28:17 +02:00
Sami Kerola 5f51b8b25d write: maintenance fixes
Use libc error printing facilities, remove void casting, clean up
unused headers and alignt coding style with README.devel.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 14:25:40 +02:00
Sami Kerola aa44b95f12 write: long options & new usage
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 14:24:16 +02:00
Sami Kerola 4aa9d65bfa build-sys: move write to term-utils directory
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:54:31 +02:00
Sami Kerola 8839c0f60f misc-utils: remove misleading README files
Clean up of files which primarily caused confusion.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:45:27 +02:00
Sami Kerola 03b3d715de docs: rename.1 verbose, long options and warning
Add new verbose and long options to manual page. I also added
warning section which hopefully gets read by people who run the
command first time.

It might be good idea to make the rename such that it would not
overwrite by default, and have a --force option if an use wants
that. In current state the rename is somewhat dangerous.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:45:27 +02:00
Sami Kerola d200a926df rename: verbose option & maintenance fixes
The rename has new verbose option which will print which files
where renamed. Maintenance fixes includes long options, coding
style and freeing memory after usage.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:45:27 +02:00
Sami Kerola 4b5a1ab8e4 docs: inform about cal long options
The parameters section is now split per a parameter, which I
found more readable than the previous layout. In addition the
nroff syntax is changed to be closer what help2man is suggesting
it should be.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:45:26 +02:00
Sami Kerola 33c1735400 cal: clean up few coding style issues
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:44:12 +02:00
Sami Kerola 21ba9798fb cal: fix compiler warnings
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:43:14 +02:00
Sami Kerola 022df321b1 cal: argument checking, long options and argument checking
Check numeric user inputs with strtol_on_err. Add long options
with nice looking usage.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:38:47 +02:00
Sami Kerola 30ad62d06f whereis: coding style
Changes only placement of braces, spacing, tabs etc.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:29:59 +02:00
Sami Kerola 32ae96aecf whereis: warnings, exit values, braces and returns
Compiler type mismatch warning fixed, symbolic exit value taken
in use where missing, unnecessary single statement 'block' braces
removed and return is not a function bracing fixed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:29:30 +02:00
Sami Kerola 12b806427d whereis: remove goto statements
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:29:22 +02:00
Sami Kerola 5851336376 whereis: new usage output & version printing
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 13:20:01 +02:00
Sami Kerola e6ebab66d4 mcookie: change coding style
Now in align with README.devel.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:37:43 +02:00
Sami Kerola 177f48fa0c docs: inform about mcookie long options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:37:38 +02:00
Sami Kerola e40f84b9d0 mcookie: use warnx, long options and help screen
Help and version options added. Additionally one compiler warning
got to be fixed.

mcookie.c:115:18: warning: comparison of integers of different signs: 'int' and 'unsigned long'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:37:37 +02:00
Sami Kerola 5a0d925569 namei: fix to argument handling
Missing pathname argument can only be checked after options are
parsed. Earlier for example 'namei -l' print nothing and was
successful.

The option parsing is changed to be less POSIXLY_CORRECT and
continue if nonoption argument is found, which allows users to
define options and arguments in the order they prefer.

Unknown short options, which earlier matched case '?' that was
help option alias, are now made to indicate failure in return
value.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:37:37 +02:00
Sami Kerola b977951749 namei: use xalloc.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:37:37 +02:00
Sami Kerola 64718fe7d9 namei: add --version option
Add to namei.1 man also the --help option along with the new
--version.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:37:04 +02:00
Sami Kerola 27ce277264 login-utils: include fix
Add missing and remove unneeded includes as reported by:
http://code.google.com/p/include-what-you-use/

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:36:38 +02:00
Sami Kerola 406ae26354 checktty: fix unused parameters
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:27:43 +02:00
Sami Kerola 3b08f597c6 docs: tell mount/* is in maintenance mode
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25 12:11:50 +02:00
Sami Kerola be55702e35 Merge branch 'master', remote-tracking branch 'upstream/master' 2011-06-23 22:04:24 +02:00
Karel Zak 2576b4e782 libmount: allow to convert /dev/loopN to backing filename
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-23 16:06:27 +02:00
Karel Zak 117545721a libmount: cleanup return codes in mount sample
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-23 15:19:37 +02:00
Karel Zak 9f7472b0b8 libmount: add support for mount -a
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-23 15:07:55 +02:00
Karel Zak 679f59dde2 libmount: fix fstype caching
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-23 12:29:00 +02:00
Karel Zak 171b0fb491 libmount: rename in cache.c
* don't use mnt_ prefix for static functions

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-23 12:24:02 +02:00
Karel Zak 8eef6df790 libmount: clean up cache.c
* rename fields in the cache entry to be more readable...

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-23 12:19:30 +02:00
Karel Zak e5c5abaee3 libmount: add generic function to read table for context
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-22 13:34:47 +02:00
Karel Zak d84508cfbd libmount: allow to set parser callback to context
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-21 14:58:37 +02:00
Karel Zak 0164c24595 mountpoint: add new command
This is libmount based re-implementation of the mountpoint(1) command.
The original implementation is maintained in sysvinit suite.

The mountpoint(1) in util-linux is not enabled by default (for now) --
use --enable-mountpoint to enable the util.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-21 11:46:36 +02:00
Karel Zak 5499b0d388 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-21 09:56:22 +02:00
Sami Kerola 5fd18db818 Merge branch 'master', remote-tracking branch 'upstream/master' 2011-06-20 19:54:39 +02:00
Karel Zak 70db6c7ef4 blkid: list all known filesystems/RAIDs (add -k option)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 16:42:03 +02:00
Karel Zak f3464ff4ed libblkid: add debug message
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 16:11:04 +02:00
Karel Zak e9c1a1fea7 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 16:10:36 +02:00
Karel Zak 4ef2674615 lib: [procutils.c] improve robustness
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 13:58:41 +02:00
Karel Zak 58a111bdb2 build-sys: move BUILD_SCHEDUTILS to top-level Makefile
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 13:51:26 +02:00
Karel Zak 85d5acb8d2 lib: [linux_version.c] simplify version parsing
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 13:48:40 +02:00
Stephen Hemminger 99fbc877e5 lscpu: detect VMware hypervisor
Add detection of VMware.
Tested on VMware Workstation 7.1.4

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
2011-06-20 12:53:28 +02:00
Samuel Thibault 4585ec0b29 misc: hurd build fixes
* Make blkdev_is_misaligned return 0 when BLKALIGNOFF is not available.
* Make procutils.c include c.h to get a PATH_MAX replacement.
* Provide agetty.c USE_SYSLOG, DEFAULT_VCTERM and DEFAULT_STERM
  defaults for Hurd.
* Make agetty.c only deal with OFDEL, XCASE and VSWTCH if they are
  available.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-20 12:48:35 +02:00
Sami Kerola 156bfbb775 Merge branch 'master', remote-tracking branch 'upstream/master' 2011-06-16 21:44:49 +02:00
Karel Zak 8c20c0ad4a mount: add ufstype=ufs2 to mount.8
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=691338
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-14 23:30:29 +02:00
Karel Zak 2d0b729208 login: fix typos in man page
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=675181
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-14 23:20:12 +02:00
Sami Kerola 376df2c9e6 Merge branch 'master', remote-tracking branch 'upstream/master' 2011-06-14 20:26:37 +02:00