diff options
author | sin <sin@2f30.org> | 2019-08-02 15:43:07 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2019-08-03 22:28:36 +0100 |
commit | 50592339bf450037972b85777d1c524e35545aa8 (patch) | |
tree | dc1fcea3d52e382b37f50c45d16cb9dc9b5a8036 /util.h | |
parent | 47d659c5fc930f0815c2bf5a24b3c2228b13695e (diff) | |
download | noice-50592339bf450037972b85777d1c524e35545aa8.tar.gz |
Implement nopen(1)
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,12 +1,6 @@ /* See LICENSE file for copyright and license details. */ -#undef strlcat -size_t strlcat(char *, const char *, size_t); -#undef strlcpy -size_t strlcpy(char *, const char *, size_t); -#undef dprintf -int dprintf(int, const char *, ...); -#undef strverscmp -int strverscmp(const char *, const char *); +#define LEN(x) (sizeof(x) / sizeof(*(x))) +#define NR_ARGS 32 #ifdef DEBUG #define DEBUG_FD 8 @@ -22,3 +16,14 @@ int strverscmp(const char *, const char *); #define DPRINTF_P(x) #define DPRINTF_LLU(x) #endif /* DEBUG */ + +#undef strlcat +size_t strlcat(char *, const char *, size_t); +#undef strlcpy +size_t strlcpy(char *, const char *, size_t); +#undef dprintf +int dprintf(int, const char *, ...); + +int strverscmp(const char *, const char *); +void spawnvp(char *, char *, char *[]); +void spawnlp(char *, char *, char *, ...); |