1 /* SPDX-License-Identifier: GPL-2.0 */
3 __must_check __malloc
void *dss_realloc(void *p
, size_t size
);
4 __must_check __malloc
void *dss_malloc(size_t size
);
5 __must_check __malloc
void *dss_calloc(size_t size
);
6 __must_check __printf_1_2 __malloc
char *make_message(const char *fmt
, ...);
7 __must_check __malloc
char *dss_strdup(const char *s
);
8 __must_check __malloc
char *get_homedir(void);
9 int dss_atoi64(const char *str
, int64_t *value
);
10 __must_check __malloc
char *dss_logname(void);
11 unsigned split_args(char *args
, char *** const argv_ptr
);
14 /** \cond LLONG_MAX and LLONG_LIN might not be defined. */
16 #define LLONG_MAX (1 << (sizeof(long) - 1))
19 #define LLONG_MIN (-LLONG_MAX - 1LL)