]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/wipefs.c
lib: [strutils] general purpose string handling functions
authorDavidlohr Bueso <dave@gnu.org>
Tue, 16 Nov 2010 13:47:35 +0000 (10:47 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Nov 2010 20:06:49 +0000 (21:06 +0100)
commit8abcf2900297c6d53ead867c42f7c1688e8d52ca
tree77e2d666cd76d9d4c37e1c1864415c1e52d37926
parente8fc977aba09ddbd89b25276fd777c3f0eef9299
lib: [strutils] general purpose string handling functions

This patch replaces a few functions used throughout the source:
* Renames getnum (from schedutils) to strtol_or_err
* Moves strtosize (from lib/strtosize.c)
* Moves xstrncpy (from include/xstrncpy.h)
* Adds strnlen, strnchr and strndup if not available (remove it from libmount utils)

A few Makefile.am files were modified to compile accordingly along with trivial renaming
in schedutils source code.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
35 files changed:
disk-utils/mkswap.c
disk-utils/swaplabel.c
fdisk/cfdisk.c
include/Makefile.am
include/strtosize.h [deleted file]
include/strutils.h [new file with mode: 0644]
include/xstrncpy.h [deleted file]
lib/Makefile.am
lib/strutils.c [moved from lib/strtosize.c with 64% similarity]
login-utils/agetty.c
login-utils/checktty.c
login-utils/chfn.c
login-utils/login.c
login-utils/shutdown.c
login-utils/simpleinit.c
login-utils/vipw.c
login-utils/wall.c
misc-utils/Makefile.am
misc-utils/blkid.c
misc-utils/wipefs.c
mount/Makefile.am
mount/lomount.c
mount/mount.c
mount/umount.c
schedutils/Makefile.am
schedutils/chrt.c
schedutils/ionice.c
schedutils/schedutils.c [deleted file]
schedutils/schedutils.h [deleted file]
schedutils/taskset.c
shlibs/mount/src/mountP.h
shlibs/mount/src/utils.c
sys-utils/Makefile.am
sys-utils/fallocate.c
text-utils/more.c