summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'misc' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2014-09-223-17/+6Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'misc' of git://github.com/kerolasa/lelux-utiliteetit: textual: share crypt() error message in sulogin and newgrp newgrp: avoid use of obsolete getpass() function newgrp: use libc function to read gshadow if it is available setarch: use personality() system call when it is available setarch: reindent code hwclock: remove referal to deprecated keyboard interface eject: make open_device() and select_speed() to use struct eject_control eject: add struct eject_control to remove global variables mountpoint: simplify if statement mkfs.minix: fix couple compiler warnings mountpoint: add struct mountpoint_control last: improve code readability by renaming variable names last: make is_phantom() when kernel config does not include audit support lib: remove xgetpass() include: simplify fputc_careful() in carefulputc.h libuuid: add extern qualifiers to uuid/uuid.h system header
| * lib: remove xgetpass()Sami Kerola2014-09-192-7/+0Star
| | | | | | | | | | | | | | This function is not in use, and it has reference to obsoleted getpass(). Reference: http://man7.org/linux/man-pages/man3/getpass.3.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * include: simplify fputc_careful() in carefulputc.hSami Kerola2014-09-191-10/+6Star
| | | | | | | | | | | | | | New version of comparisions does the same thing as the old without being quite as difficult to understand. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | swapon: split swapon-common.cKarel Zak2014-09-223-29/+10Star
|/ | | | | | | | | | | swapon - requires libmount and libblkid swapoff - requires libmount swaplabel - requires libblkid This patch add lib/swapprober.c with blkid stuff for swap. It allows to use and link libblkid only when necessary. Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: fixing FTBFS on !linux (Debian util-linux 2.20.1-1.2)Christoph Egger2014-09-171-0/+40
| | | | | | | Handle vc flags missing on FreeBSD Fix tty creation on kFreeBSD taking patch from 2.19 Addresses-Debian-Bug: #650185
* include/optutils: fix typoKarel Zak2014-08-281-1/+1
| | | | | Reported-by: Rafael Ferreira <rafael.f.f1@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: move string trim function to strutils.hKarel Zak2014-08-251-0/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/debug: allow to speficy empty masknamesKarel Zak2014-08-131-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/debug: cleanup masksKarel Zak2014-08-131-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/debug: make masknames optionalKarel Zak2014-08-131-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libs/debug: accept human readable names for _DEBUG=Ondrej Oprala2014-08-131-1/+41
| | | | | | | | | | For example $ LIBMOUNT_DEBUG=tab,cache findmnt to debug only TAB and CACHE subsystem. Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add function to return color from schemeKarel Zak2014-08-131-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: remove some inconsistent periods from error messagesBenno Schulenberg2014-08-111-4/+4
| | | | | | While doing so, also improve translatability and some wordings. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lib/sysfs: allow to write to sysfs attributesKarel Zak2014-08-011-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swaplabel: move swapon-common to include directorySami Kerola2014-07-282-0/+29
| | | | | | | | | | This fixes the following compiler warning. disk-utils/swaplabel.c:175:2: warning: implicit declaration of function 'get_swap_prober' [-Wimplicit-function-declaration] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* Fix typo "ioclt" in various files.Lauri Nurmi2014-07-112-2/+2
|
* build-sys: support ./configure ADJTIME_PATH=Karel Zak2014-06-191-0/+4
| | | | | | | .. to override the default /etc/adjtime path. Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/fileutils: xalloc stuff in library-like codeKarel Zak2014-06-181-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove obsolete wholedisk.cKarel Zak2014-06-172-9/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/sysfs: add sysfs_devno_is_wholedisk()Karel Zak2014-06-171-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/sysfs: add sysfs_devno_is_lvm_private() from libblkidKarel Zak2014-06-171-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/fileutils: add stripoff_last_component() from libmountKarel Zak2014-06-091-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/fileutils: add mkdir_p() from libmountKarel Zak2014-06-091-0/+2
|
* lslogins: add readtump.h headerOndrej Oprala2014-05-151-0/+28
|
* lslogins: add functionalityOndrej Oprala2014-05-151-0/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* lib/colors: support schemes customizationKarel Zak2014-05-131-6/+13
| | | | | | | | | | | | | | | | * parse terminal-colors.d/*.scheme files, expected format is <name> <color-sequence> * supported color sequences: - color name (e.g. "red") - dir_colors compatible xx;yy (e.g. 01;31) where the sequence may contains control chars like \e \a ..etc. * scheme is parsed on demand Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: allow to temporary disable colorsKarel Zak2014-05-131-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add support for @term and /home/kzakKarel Zak2014-05-131-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/boottime: add a new fileKarel Zak2014-05-061-0/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/timeutils: remove get_boot_time from libcommonKarel Zak2014-05-062-1/+1
| | | | | | | | clock_gettime() needs -lrt, so let's keep this stuff outside libcommon.la Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* include/c: do not gettextize a wordless stringBenno Schulenberg2014-05-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* include/carefulputc: remove a duplicate includeBenno Schulenberg2014-05-061-4/+5
| | | | | | Also tweak a comment. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* include/c: remove a duplicate includeBenno Schulenberg2014-05-061-10/+7Star
| | | | | | Also tweak some comments. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* swapon, swapheader, mkswap: move swap signature to headerSami Kerola2014-05-061-0/+2
| | | | | | | | | | Both swapon and mkswap need to know what is valid device signature, so share the value. [kzak@redhat.com: - use SWAP_SIGNATURE_SZ properly in write_signature()] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* include/swapheader.h: ensure type sizesSami Kerola2014-05-061-5/+7
| | | | | | Use consistently the same type sizes as in libblkid and kernel. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkswap: remove legacy swap structureSami Kerola2014-05-061-10/+2Star
| | | | | | | | | | | If software archeolgists want to know how the old, and unused, swap header looked they can dig it from the revision history. [kzak@redhat.com: - use sizeof() for SWAP_HEADER_SIZE] Reference: 4c85aa3a4c26f2a2c33bf16960b548d5bbd5b4bf Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkswap, swaplabel: move version number to headerSami Kerola2014-05-041-0/+1
| | | | | | | Corrently only the swap version 1 is supported, which is a magic value so move it to header. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* include/c.h: add macro to print definitions as stringSami Kerola2014-05-041-0/+9
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: move get_boot_time() to lib/timeutilsSami Kerola2014-05-041-0/+1
| | | | | | In future the last(1) will use get_boot_time() as well. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lib/mbalign: report also size in bytesKarel Zak2014-04-151-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/mbsalign: split mbs_safe_encode()Karel Zak2014-04-151-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/tt.c: Goodbye!Ondrej Oprala2014-04-032-116/+0Star
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* include/carefulputc: cleanup and add fputs_{quoted,nonblank}()Karel Zak2014-04-031-3/+42
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mcookie: use lib/randutilsSami Kerola2014-03-261-0/+1
| | | | | | | | | The mcookie should reuse existing code, and there is definitely no need to prefer /dev/random for this utility. See reference for explanation about later statement. References: http://www.2uo.de/myths-about-urandom/ Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* include/debug: add another debug macrosKarel Zak2014-03-211-1/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/debug: fix coding styleKarel Zak2014-03-211-21/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'common_debug' of https://github.com/ooprala/util-linuxKarel Zak2014-03-212-0/+67
|\ | | | | | | | | | | | | | | | | | | | | | | * 'common_debug' of https://github.com/ooprala/util-linux: clean up redundant macros and defines libfdisk: use include/debug.h libblkid: use include/debug.h libmount: further debug.h integration libcommon: don't mention lib versions in debug macros libcommon: define more debugging macros libmount: use macros from include/debug.h libcommon: add common debugging routines
| * clean up redundant macros and definesOndrej Oprala2014-03-131-8/+0Star
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
| * libcommon: don't mention lib versions in debug macrosOndrej Oprala2014-03-131-3/+0Star
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
| * libcommon: define more debugging macrosOndrej Oprala2014-03-121-0/+7
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>