summaryrefslogtreecommitdiff
path: root/src/basic/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-26 16:41:43 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:55 +0100
commite4e73a632524c382139034d4271f53b6089ab4cb (patch)
tree48e286e7dbac59a562431ad05d506833db968f6e /src/basic/util.h
parent6bedfcbb2970e06a4d3280c8fb62083d252ede73 (diff)
util-lib: split out hex/dec/oct encoding/decoding into its own file
Diffstat (limited to 'src/basic/util.h')
-rw-r--r--src/basic/util.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index d51b824294..6c3449a706 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -95,17 +95,6 @@ char *file_in_same_dir(const char *path, const char *filename);
int rmdir_parents(const char *path, const char *stop);
-char hexchar(int x) _const_;
-int unhexchar(char c) _const_;
-char octchar(int x) _const_;
-int unoctchar(char c) _const_;
-char decchar(int x) _const_;
-int undecchar(char c) _const_;
-char base32hexchar(int x) _const_;
-int unbase32hexchar(char c) _const_;
-char base64char(int x) _const_;
-int unbase64char(char c) _const_;
-
bool dirent_is_file(const struct dirent *de) _pure_;
bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pure_;
@@ -398,15 +387,6 @@ static inline void *mempset(void *s, int c, size_t n) {
return (uint8_t*)s + n;
}
-char *hexmem(const void *p, size_t l);
-int unhexmem(const char *p, size_t l, void **mem, size_t *len);
-
-char *base32hexmem(const void *p, size_t l, bool padding);
-int unbase32hexmem(const char *p, size_t l, bool padding, void **mem, size_t *len);
-
-char *base64mem(const void *p, size_t l);
-int unbase64mem(const char *p, size_t l, void **mem, size_t *len);
-
void* greedy_realloc(void **p, size_t *allocated, size_t need, size_t size);
void* greedy_realloc0(void **p, size_t *allocated, size_t need, size_t size);
#define GREEDY_REALLOC(array, allocated, need) \
@@ -559,8 +539,6 @@ const char *personality_to_string(unsigned long);
uint64_t physical_memory(void);
-void hexdump(FILE *f, const void *p, size_t s);
-
union file_handle_union {
struct file_handle handle;
char padding[sizeof(struct file_handle) + MAX_HANDLE_SZ];