summaryrefslogtreecommitdiffstats
path: root/include/all-io.h
Commit message (Collapse)AuthorAgeFilesLines
* include/all-io: const cleanupKarel Zak2018-07-201-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/all-io: read_all() don't retry on EOFKarel Zak2015-07-201-3/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/c.h: prefer nanosleep() over usleep()Karel Zak2014-01-241-3/+5
| | | | | | | | | | | | | | Let's use nanosleep() although if usleep() exists. The nanosleep function does no interact with signals and other timers. The patch introduces xusleep() as replacement to libc (or our fallback) usleep(). Yes, we don't want to use struct timespec + nanosleep() everywhere in code as nano-time resolution is useless for us. The patch also enlarges delays in some busy wait loops. It seems enough to try read/write 4x per second. Signed-off-by: Karel Zak <kzak@redhat.com>
* include: cleanup copyright headersKarel Zak2013-01-081-0/+8
| | | | | | | We use the code from include/ and lib/ on many places, so use public domain if possible or LGPL for code copied from libs. Signed-off-by: Karel Zak <kzak@redhat.com>
* include/c: move usleep() fallback to c.hKarel Zak2012-10-221-0/+2
| | | | | | To make it available everywhere in code. Signed-off-by: Karel Zak <kzak@redhat.com>
* include: fix void pointer arithmetics warningsSami Kerola2012-06-111-2/+2
| | | | | | | all-io.h:18:9: warning: pointer of type 'void *' used in arithmetic [-pedantic] all-io.h:38:9: warning: pointer of type 'void *' used in arithmetic [-pedantic] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libuuid: move read_all to include/all-io.hPetr Uzel2012-05-151-0/+25
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* include: rename writeall.h to all-io.hPetr Uzel2012-05-151-0/+47
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>