leafnode.h (leafnode-1.11.12.tar.bz2) | : | leafnode.h (leafnode-1.12.0.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 48 | skipping to change at line 48 | |||
* length limits here */ | * length limits here */ | |||
#include <limits.h> | #include <limits.h> | |||
#ifndef PATH_MAX | #ifndef PATH_MAX | |||
/* just some random limit - we'll use this as a starting point | /* just some random limit - we'll use this as a starting point | |||
* for dynamically growing memory only */ | * for dynamically growing memory only */ | |||
#define PATH_MAX 4096 | #define PATH_MAX 4096 | |||
#endif | #endif | |||
#define PORTFILENAMECSET "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01 23456789._-" | #define PORTFILENAMECSET "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01 23456789._-" | |||
#include <pcre.h> | #define PCRE2_CODE_UNIT_WIDTH 0 /* let's fail unless explicitly using the | |||
_8() functions */ | ||||
#include <pcre2.h> | ||||
#include <stdarg.h> /* va_list */ | #include <stdarg.h> /* va_list */ | |||
#include <stdio.h> /* FILE * */ | #include <stdio.h> /* FILE * */ | |||
#include <setjmp.h> /* sigjmp_buf */ | #include <setjmp.h> /* sigjmp_buf */ | |||
#include "system.h" /* time.h */ | #include "system.h" /* time.h */ | |||
#ifdef HAVE_AP_CONFIG_H | #ifdef HAVE_AP_CONFIG_H | |||
#define AP_CONFIG_H | #define AP_CONFIG_H | |||
#endif | #endif | |||
#include <errno.h> | #include <errno.h> | |||
skipping to change at line 185 | skipping to change at line 186 | |||
char *findinlist(struct stringlist *haystack, char *needle); | char *findinlist(struct stringlist *haystack, char *needle); | |||
/* find a string in a stringlist by doing a linear search */ | /* find a string in a stringlist by doing a linear search */ | |||
void freelist( /*@only@*/ struct stringlist *list); | void freelist( /*@only@*/ struct stringlist *list); | |||
/* free memory occupied by a stringlist */ | /* free memory occupied by a stringlist */ | |||
/* | /* | |||
* filterfile.c -- PCRE filtering of articles | * filterfile.c -- PCRE filtering of articles | |||
*/ | */ | |||
void readfilter(char *filterfile); | void readfilter(char *filterfile); | |||
void freefilter(void); | void freefilter(void); | |||
int dofilter(char *h); | int dofilter(unsigned char *h); | |||
/* | /* | |||
* artutil.c -- handling article files | * artutil.c -- handling article files | |||
*/ | */ | |||
void store(const char *filename, | void store(const char *filename, | |||
FILE * filehandle, const char *newsgroups, const char *msgid); | FILE * filehandle, const char *newsgroups, const char *msgid); | |||
/* | /* | |||
* find a certain header in an article and return it | * find a certain header in an article and return it | |||
*/ | */ | |||
skipping to change at line 222 | skipping to change at line 223 | |||
char *group; | char *group; | |||
time_t xtime; | time_t xtime; | |||
int days; | int days; | |||
}; | }; | |||
struct server { | struct server { | |||
struct server *next; | struct server *next; | |||
char *name; /* Servername */ | char *name; /* Servername */ | |||
char *username; | char *username; | |||
char *password; | char *password; | |||
pcre *group_pcre; | pcre2_code_8 *group_pcre; | |||
unsigned int port; | unsigned int port; | |||
int descriptions; /* download descriptions as well */ | int descriptions; /* download descriptions as well */ | |||
int timeout; /* timeout in seconds before we give up */ | int timeout; /* timeout in seconds before we give up */ | |||
int nopost; /* if set, do not try to post to this ser ver */ | int nopost; /* if set, do not try to post to this ser ver */ | |||
int noread; /* if set, do not try to fetch articles f rom | int noread; /* if set, do not try to fetch articles f rom | |||
this server */ | this server */ | |||
int updateactive; /* update the active file of this server, BITFIEL D: 1 = from command line, 2 = automatically set */ | int updateactive; /* update the active file of this server, BITFIEL D: 1 = from command line, 2 = automatically set */ | |||
int post_anygroup; /* if set, do not check if the group is on the | int post_anygroup; /* if set, do not check if the group is on the | |||
server, but just post */ | server, but just post */ | |||
int noxover; /* if set, use XHDR for overview */ | int noxover; /* if set, use XHDR for overview */ | |||
skipping to change at line 278 | skipping to change at line 279 | |||
extern struct server *servers; /* list of servers to use */ | extern struct server *servers; /* list of servers to use */ | |||
extern int allowstrangers; /* if addresses not local to our links | extern int allowstrangers; /* if addresses not local to our links | |||
are allowed to connect */ | are allowed to connect */ | |||
extern int allow_8bit_headers; /* if 8bit junk in headers is allowed */ | extern int allow_8bit_headers; /* if 8bit junk in headers is allowed */ | |||
extern char *newsadmin; /* address of news administrator, default : news@%s with %s = fqdn */ | extern char *newsadmin; /* address of news administrator, default : news@%s with %s = fqdn */ | |||
extern unsigned long timeout_lock; /* lock file timeout */ | extern unsigned long timeout_lock; /* lock file timeout */ | |||
/* | /* | |||
* other global variables | * other global variables | |||
*/ | */ | |||
#define SIZE_lineout 1024 | #define SIZE_lineout 1024 /* also used for PCRE2 error strings */ | |||
extern char last_command[SIZE_lineout + 1]; | extern char last_command[SIZE_lineout + 1]; | |||
extern char lineout[SIZE_lineout + 1]; | extern char lineout[SIZE_lineout + 1]; | |||
/* defined in nntputil.c */ | /* defined in nntputil.c */ | |||
extern /*@relnull@*/ /*@dependent@*/ FILE *nntpin; | extern /*@relnull@*/ /*@dependent@*/ FILE *nntpin; | |||
extern /*@relnull@*/ /*@dependent@*/ FILE *nntpout; | extern /*@relnull@*/ /*@dependent@*/ FILE *nntpout; | |||
#define SIZE_s (8192) | #define SIZE_s (8192) | |||
#define FQDNLEN 255 | #define FQDNLEN 255 | |||
extern char fqdn[FQDNLEN + 1]; /* my name, and my naming myself */ | extern char fqdn[FQDNLEN + 1]; /* my name, and my naming myself */ | |||
skipping to change at line 371 | skipping to change at line 372 | |||
void fixxover(void); | void fixxover(void); | |||
/* from grouplist.c */ | /* from grouplist.c */ | |||
/*@null@*/ struct stringlist *get_grouplist(void); | /*@null@*/ struct stringlist *get_grouplist(void); | |||
/* checkpeerlocal.c */ | /* checkpeerlocal.c */ | |||
int checkpeerlocal(int sock); | int checkpeerlocal(int sock); | |||
/* pcre_extract.c */ | /* pcre_extract.c */ | |||
int pcre_extract(const char *input, const char *pattern, /*@out@*/ char **output | int ln_pcre_extract(const unsigned char *input, const unsigned char *pattern, /* | |||
, size_t num); | @out@*/ char **output, size_t num); | |||
void pcre_extract_free(char **vec, int count); | void ln_pcre_extract_free(char **vec, int count); | |||
size_t xstrlcpy(/*@out@*/ char *dst, const char *src, size_t size); | size_t xstrlcpy(/*@out@*/ char *dst, const char *src, size_t size); | |||
/* xoverutil.c */ | /* xoverutil.c */ | |||
struct xoverinfo { | struct xoverinfo { | |||
char *text; | char *text; | |||
int exists; | int exists; | |||
}; | }; | |||
/*@null@*/ extern struct xoverinfo *xoverinfo; | /*@null@*/ extern struct xoverinfo *xoverinfo; | |||
extern unsigned long xfirst; | extern unsigned long xfirst; | |||
End of changes. 5 change blocks. | ||||
7 lines changed or deleted | 9 lines changed or added |