File: main.h

package info (click to toggle)
netkit-ftp-ssl 0.17.12%2B0.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 430
  • sloc: ansic: 6,068; makefile: 87; sh: 6
file content (33 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (8)
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
#include <obstack.h>
#include <signal.h>

extern int suppressint;
extern volatile int intpending;
extern int intrnewline;
extern struct obstack mainobstack;
extern struct obstack lineobstack;

#ifdef __GNUC__
void intr(int) __attribute__ ((noreturn));
#else
void intr(int);
#endif

#define INTOFF suppressint++;
#define INTON do { if (--suppressint == 0 && intpending) intr(SIGINT); } \
	      while(0)
#define CHECKINT do { if (suppressint == 1 && intpending) { \
		 suppressint = 0; intr(SIGINT); }} while(0)

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#ifndef MAXPATHLEN
#define MAXPATHLEN 4096
#endif

#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
#endif