summaryrefslogtreecommitdiff
path: root/include/all-io.h
AgeCommit message (Collapse)AuthorFilesLines
2014-01-24include/c.h: prefer nanosleep() over usleep()Karel Zak1-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>
2013-01-08include: cleanup copyright headersKarel Zak1-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>
2012-10-22include/c: move usleep() fallback to c.hKarel Zak1-0/+2
To make it available everywhere in code. Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-11include: fix void pointer arithmetics warningsSami Kerola1-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>
2012-05-15libuuid: move read_all to include/all-io.hPetr Uzel1-0/+25
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-15include: rename writeall.h to all-io.hPetr Uzel1-0/+47
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>