-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.h
36 lines (30 loc) · 955 Bytes
/
defs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Set default values for any constants that should be in include files but
* aren't, or that have wacky values.
*
* Services is copyright (c) 1996-1999 Andrew Church.
* E-mail: <achurch@dragonfire.net>
* Services is copyright (c) 1999-2000 Andrew Kempe.
* E-mail: <theshadow@shadowfire.org>
* This program is free but copyrighted software; see the file COPYING for
* details.
*/
/*************************************************************************/
#ifndef NAME_MAX
# define NAME_MAX 255
#endif
#ifndef BUFSIZ
# define BUFSIZ 256
#else
# if BUFSIZ < 256
# define BUFSIZ 256
# endif
#endif
/* Length of an array: */
#define lenof(a) (sizeof(a) / sizeof(*(a)))
/* Telling compilers about printf()-like functions: */
#ifdef __GNUC__
# define FORMAT(type,fmt,start) __attribute__((format(type,fmt,start)))
#else
# define FORMAT(type,fmt,start)
#endif
/*************************************************************************/