Zbigniew Jędrzejewski-Szmek
5224c2c706
basic/random-util: add new header for getrandom()
...
There's some confusion: older man pages specify that linux/random.h
contains getrandom, but newer glibc has it in sys/random.h. Detect if
the newer header is available and include it. We still need the older
header for the flags.
2017-04-21 12:05:55 -04:00
Alex Gaynor
f045931a73
Fixed a small typo in a comment ( #3514 )
2016-06-12 16:42:13 +02:00
Lennart Poettering
ad6b1fa287
basic: getauxval(AT_RANDOM) is apparently not necessarily aligned
...
Let's make sure we read it in a way compatible with non-aligned memory.
Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812928
2016-01-28 17:00:38 +01:00
Thomas Hindoe Paaboel Andersen
11c3a36649
basic: include only what we use
...
This is a cleaned up result of running iwyu but without forward
declarations on src/basic.
2015-11-30 21:51:03 +01:00
Lennart Poettering
c004493cde
util-lib: split out IO related calls to io-util.[ch]
2015-10-26 01:24:38 +01:00
Lennart Poettering
3ffd4af220
util-lib: split out fd-related operations into fd-util.[ch]
...
There are more than enough to deserve their own .c file, hence move them
over.
2015-10-25 13:19:18 +01:00
Kay Sievers
a095315b3c
build-sys: split internal basic/ library from shared/
...
basic/ can be used by everything
cannot use anything outside of basic/
libsystemd/ can use basic/
cannot use shared/
shared/ can use libsystemd/
2015-06-11 10:52:46 +02:00