aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
blob: ca6db51ab211511d0d376dc99ce2f3f8edb5ef2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* See LICENSE file for copyright and license details. */
#include <libcontacts.h>
#include <libsimple.h>
#include <libsimple-arg.h>


#ifndef BUFSIZ
# define BUFSIZ 4096
#endif


#ifdef MULTICALL_BINARY
# undef NUSAGE
# define NUSAGE(STATUS, SYNOPSIS)\
	static _LIBSIMPLE_NORETURN void\
	usage(void)\
	{\
		const char *syn = SYNOPSIS ? SYNOPSIS : "";\
		fprintf(stderr, "usage: %s%s%s\n", argv0, *syn ? " " : "", syn);\
		exit(STATUS);\
	}\
	extern char *argv0
#endif