run: Don't kill children twice.
[dss.git] / str.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2
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, const char *delim);
12
13
14 /** \cond LLONG_MAX and LLONG_LIN might not be defined. */
15 #ifndef LLONG_MAX
16 #define LLONG_MAX (1 << (sizeof(long) - 1))
17 #endif
18 #ifndef LLONG_MIN
19 #define LLONG_MIN (-LLONG_MAX - 1LL)
20 #endif
21 /** \endcond */
22