1 #include <stdio.h>
2 #include <ctype.h>
3 #include <string.h>
4 #include <signal.h>
5 #include <sys/types.h>
6 #include <sys/stat.h>
7
8 #include "libcnews.h"
9 #include "config.h"
10 #include "fgetfln.h"
11 #include "history.h"
12
13 #include "batch.h"
14 #include "msgs.h"
15 #include "debug.h"
16 #include "netdata.h"
17 #include "log.h"
18
19 #define NULLSTR ((char *) NULL)
20
21 /* NOTE: x *MUST* be an array or you'll only get 3 chars */
22 #define SAY(x, y) \
23 if (net_ackwrite((x), sizeof (x) - 1, (y), stdout) == 0) \
24 ; \
25 else \
26 unlock(), error("net_ackwrite(%s) failed", (x))
27
28 /* imports */
29 extern char *mktemp();
30 extern int postarts, postfail;
31 extern unsigned int debug;
32 extern FILE *dfp;
33
34 void
postarticle(fp,ndp)35 postarticle(fp, ndp)
36 FILE *fp;
37 struct netdata *ndp;
38 {
39 SAY(NNTP_NOPOST, NULLSTR);
40 postfail++;
41 }
42