summaryrefslogtreecommitdiffstats
path: root/include/env.h
diff options
context:
space:
mode:
authorSami Kerola2012-10-17 21:16:06 +0200
committerKarel Zak2012-10-19 14:50:27 +0200
commit1ee4dff7246949cbebef884d84ccdc127450bee0 (patch)
tree1af3a454706d0179a407f1813734a8b6ec2b1c57 /include/env.h
parentfdisk: gpt: use swap_efi_guid for new partitions (diff)
downloadkernel-qcow2-util-linux-1ee4dff7246949cbebef884d84ccdc127450bee0.tar.gz
kernel-qcow2-util-linux-1ee4dff7246949cbebef884d84ccdc127450bee0.tar.xz
kernel-qcow2-util-linux-1ee4dff7246949cbebef884d84ccdc127450bee0.zip
include/c: add get_hostname_max() inline function
Using sysconf(_SC_HOST_NAME_MAX) does not work everywhere. At such even header values for hostname length should be preferred, and if nothing else works guess the maxium being 64 bytes. Based-on-code-by: Karel Zak <kzak@redhat.com> CC: Mike Frysinger <vapier@gentoo.org> References: http://www.spinics.net/lists/util-linux-ng/msg07050.html Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/env.h')
0 files changed, 0 insertions, 0 deletions