summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-04-14 19:21:57 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-04-14 19:21:57 -0400
commit9b8066c9e3a8de098ab93d9cec0a814cc99e4d66 (patch)
tree0179aa11e448aa434bbb0436807c94c3a0929544 /src/shared/util.h
parent47fefe304092f07bf89c1fc3d0614da5b0dbee3d (diff)
shared: add random-util.[ch]
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 0f97873d8b..c5e535069c 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -160,10 +160,6 @@ bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pu
bool hidden_file(const char *filename) _pure_;
-int dev_urandom(void *p, size_t n);
-void random_bytes(void *p, size_t n);
-void initialize_srand(void);
-
/* For basic lookup tables with strictly enumerated entries */
#define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope) \
scope const char *name##_to_string(type i) { \
@@ -234,6 +230,7 @@ int flush_fd(int fd);
int fopen_temporary(const char *path, FILE **_f, char **_temp_path);
ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll);
+int loop_read_exact(int fd, void *buf, size_t nbytes, bool do_poll);
char* dirname_malloc(const char *path);