summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fe6c01d)
Included files should not include further files. Now, only the
necessary files are included and not all of them in every file.
A large bunch of this work is done, but there are some more
nested include files.
79 files changed:
-#include <ctype.h>
-#include <sys/stat.h>
-
-#include <dirent.h>
-
-#ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-#endif
-
-#include <locale.h>
-#include <limits.h>
/*
** Well-used constants
/*
** Well-used constants
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h> /* mh internals */
#include <errno.h> /* system call errors */
#include <pwd.h> /* structure for getpwuid() results */
#include <h/mh.h> /* mh internals */
#include <errno.h> /* system call errors */
#include <pwd.h> /* structure for getpwuid() results */
+#include <unistd.h>
+#include <sys/stat.h>
** complete copyright information.
*/
** complete copyright information.
*/
** complete copyright information.
*/
** complete copyright information.
*/
#include <h/mh.h>
#include <h/crawl_folders.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/crawl_folders.h>
#include <h/utils.h>
+#include <dirent.h>
+#include <sys/stat.h>
struct crawl_context {
int max; /*
struct crawl_context {
int max; /*
#include <h/mh.h>
#include <errno.h>
#include <h/mh.h>
#include <errno.h>
+#include <unistd.h>
+#include <stdarg.h>
#include <h/tws.h>
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
#include <h/tws.h>
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
static char *formats = NULL;
static char *formats = NULL;
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/fmt_compile.h>
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/fmt_compile.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
** complete copyright information.
*/
** complete copyright information.
*/
#include <h/mh.h>
#include <fcntl.h>
#include <errno.h>
#include <h/mh.h>
#include <fcntl.h>
#include <errno.h>
/*
** Link message into a folder. Return the new number
/*
** Link message into a folder. Return the new number
** complete copyright information.
*/
** complete copyright information.
*/
** complete copyright information.
*/
** complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
+#include <dirent.h>
+#include <sys/stat.h>
/* We allocate the `mi' array 1024 elements at a time */
#define NUMMSGS 1024
/* We allocate the `mi' array 1024 elements at a time */
#define NUMMSGS 1024
#include <h/mh.h>
#include <stdio.h>
#include <h/mh.h>
#include <stdio.h>
** Ruud de Rooij <ruud@debian.org> Sun, 28 Mar 1999 15:34:03 +0200
*/
** Ruud de Rooij <ruud@debian.org> Sun, 28 Mar 1999 15:34:03 +0200
*/
#include <h/mh.h>
#include <h/signals.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/signals.h>
#include <h/utils.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
/* FIXME: This code needs rework! Rewrite as a parser? */
#include <h/mh.h>
/* FIXME: This code needs rework! Rewrite as a parser? */
#include <h/mh.h>
/*
** error codes for sequence
/*
** error codes for sequence
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
/*
** This module has a long and checkered history.
/*
** This module has a long and checkered history.
** complete copyright information.
*/
** complete copyright information.
*/
+#include <errno.h>
+#include <unistd.h>
+#include <sys/stat.h>
static char *get_temp_dir();
static char *get_temp_dir();
#include <errno.h>
#include <sys/param.h>
#include <sys/file.h>
#include <errno.h>
#include <sys/param.h>
#include <sys/file.h>
#include <pwd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <pwd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <h/mh.h>
#include <pwd.h>
#include <h/mh.h>
#include <pwd.h>
#include <h/mh.h>
#include <h/signals.h>
#include <h/mh.h>
#include <h/signals.h>
/*
** Our version of strcasecmp has to deal with NULL strings.
/*
** Our version of strcasecmp has to deal with NULL strings.
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h>
+#include <sys/stat.h>
/*
** We allocate space for messages (msgs array)
/*
** We allocate space for messages (msgs array)
#include <h/addrsbr.h>
#include <h/aliasbr.h>
#include <h/utils.h>
#include <h/addrsbr.h>
#include <h/aliasbr.h>
#include <h/utils.h>
/*
** maximum number of names
/*
** maximum number of names
#include <h/utils.h>
#include <grp.h>
#include <pwd.h>
#include <h/utils.h>
#include <grp.h>
#include <pwd.h>
static int akvis;
static char *akerrst;
static int akvis;
static char *akerrst;
#include <fcntl.h>
#include <errno.h>
#include <utime.h>
#include <fcntl.h>
#include <errno.h>
#include <utime.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
static enum { MODE_ADD, MODE_DEL, MODE_LIST } mode = MODE_ADD;
static enum { MODE_ADD, MODE_DEL, MODE_LIST } mode = MODE_ADD;
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERBSW 0
static struct swit switches[] = {
#define VERBSW 0
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define EDITRSW 0
static struct swit switches[] = {
#define EDITRSW 0
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define ANNOSW 0
static struct swit switches[] = {
#define ANNOSW 0
#include <h/mh.h>
#include <fcntl.h>
#include <h/utils.h>
#include <h/mh.h>
#include <fcntl.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
static int hdrfd = NOTOK;
static int txtfd = NOTOK;
static int hdrfd = NOTOK;
static int txtfd = NOTOK;
#include <h/mh.h>
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/mh.h>
#include <h/fmt_scan.h>
#include <h/tws.h>
** complete copyright information.
*/
** complete copyright information.
*/
-#include <stdlib.h>
-#include <h/utils.h>
-
#include <h/dropsbr.h>
#include <h/tws.h>
#include <errno.h>
#include <fcntl.h>
#include <h/dropsbr.h>
#include <h/tws.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/stat.h>
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <dirent.h>
+#include <sys/stat.h>
+#include <locale.h>
/*
** We allocate space to record the names of folders
/*
** We allocate space to record the names of folders
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
#include <h/scansbr.h>
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
#include <h/scansbr.h>
static struct swit switches[] = {
#define FORMSW 0
static struct swit switches[] = {
#define FORMSW 0
#include <h/crawl_folders.h>
#include <h/utils.h>
#include <errno.h>
#include <h/crawl_folders.h>
#include <h/utils.h>
#include <errno.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define ALLSW 0
static struct swit switches[] = {
#define ALLSW 0
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
#define IFORMAT "digest-issue-%s"
#define VFORMAT "digest-volume-%s"
#define IFORMAT "digest-issue-%s"
#define VFORMAT "digest-volume-%s"
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
#include <h/mh.h>
#include <h/utils.h>
#include <fcntl.h>
#include <h/fmt_scan.h>
#include <h/scansbr.h>
#include <h/signals.h>
#include <h/tws.h>
#include <errno.h>
#include <signal.h>
#include <h/fmt_scan.h>
#include <h/scansbr.h>
#include <h/signals.h>
#include <h/tws.h>
#include <errno.h>
#include <signal.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
+
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
static struct swit switches[] = {
#define AUDSW 0
static struct swit switches[] = {
#define AUDSW 0
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define ADDSW 0
static struct swit switches[] = {
#define ADDSW 0
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#include <errno.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <errno.h>
#include <h/mime.h>
#include <h/mhparse.h>
/* The list of top-level contents to display */
CT *cts = NULL;
/* The list of top-level contents to display */
CT *cts = NULL;
#include <h/tws.h>
#include <h/utils.h>
#include <signal.h>
#include <h/tws.h>
#include <h/utils.h>
#include <signal.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERBSW 0
static struct swit switches[] = {
#define VERBSW 0
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
/* mhmisc.c */
int part_ok(CT, int);
/* mhmisc.c */
int part_ok(CT, int);
#include <h/utils.h>
#include <signal.h>
#include <fcntl.h>
#include <h/utils.h>
#include <signal.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define BODYSW 0
static struct swit switches[] = {
#define BODYSW 0
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <stdarg.h>
+#include <sys/stat.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERSIONSW 0
static struct swit switches[] = {
#define VERSIONSW 0
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERBSW 0
static struct swit switches[] = {
#define VERBSW 0
#include <h/mhparse.h>
#include <h/utils.h>
#include <sys/wait.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <sys/wait.h>
+#include <unistd.h>
+#include <sys/stat.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define AUTOSW 0
static struct swit switches[] = {
#define AUTOSW 0
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERBSW 0
static struct swit switches[] = {
#define VERBSW 0
** Inspired by Luke Mewburn's new: http://www.mewburn.net/luke/src/new
*/
** Inspired by Luke Mewburn's new: http://www.mewburn.net/luke/src/new
*/
+#include <h/mh.h>
+#include <h/crawl_folders.h>
+#include <h/utils.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
-#include <h/mh.h>
-#include <h/crawl_folders.h>
-#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define MODESW 0
static struct swit switches[] = {
#define MODESW 0
#include <h/dropsbr.h>
#include <h/utils.h>
#include <errno.h>
#include <h/dropsbr.h>
#include <h/utils.h>
#include <errno.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERSIONSW 0
static struct swit switches[] = {
#define VERSIONSW 0
#include <h/mh.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/tws.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#include <signal.h>
#include <setjmp.h>
#include <unistd.h>
#include <signal.h>
#include <setjmp.h>
#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define PREPSW 0
static struct swit switches[] = {
#define PREPSW 0
#include <h/rcvmail.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/rcvmail.h>
#include <h/tws.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define FORMSW 0
static struct swit switches[] = {
#define FORMSW 0
#include <h/dropsbr.h>
#include <h/rcvmail.h>
#include <h/tws.h>
#include <h/dropsbr.h>
#include <h/rcvmail.h>
#include <h/tws.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define VERSIONSW 0
static struct swit switches[] = {
#define VERSIONSW 0
#include <h/signals.h>
#include <errno.h>
#include <signal.h>
#include <h/signals.h>
#include <errno.h>
#include <signal.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define CRETSW 0
static struct swit switches[] = {
#define CRETSW 0
#include <h/utils.h>
#include <fcntl.h>
#include <errno.h>
#include <h/utils.h>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define LINKSW 0
static struct swit switches[] = {
#define LINKSW 0
#include <h/fmt_scan.h>
#include <sys/file.h> /* L_SET */
#include <errno.h>
#include <h/fmt_scan.h>
#include <sys/file.h> /* L_SET */
#include <errno.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
static struct swit switches[] = {
#define GROUPSW 0
static struct swit switches[] = {
#define GROUPSW 0
+#include <unistd.h>
+#include <dirent.h>
+#include <locale.h>
static struct swit switches[] = {
#define INTRSW 0
static struct swit switches[] = {
#define INTRSW 0
#include <h/mh.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define UNLINKSW 0
static struct swit switches[] = {
#define UNLINKSW 0
#include <h/tws.h>
#include <h/utils.h>
#include <errno.h>
#include <h/tws.h>
#include <h/utils.h>
#include <errno.h>
+#include <unistd.h>
+#include <locale.h>
static struct swit switches[] = {
#define FORMSW 0
static struct swit switches[] = {
#define FORMSW 0
#include <h/scansbr.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/scansbr.h>
#include <h/tws.h>
#include <h/utils.h>
+#include <ctype.h>
+#include <sys/stat.h>
#ifdef _FSTDIO
# define _ptr _p /* Gag */
#ifdef _FSTDIO
# define _ptr _p /* Gag */
#include <h/utils.h>
#include <sysexits.h>
#include <sys/wait.h>
#include <h/utils.h>
#include <sysexits.h>
#include <sys/wait.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <time.h>
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+
int debugsw = 0; /* global */
char *altmsg = NULL;
char *annotext = NULL;
int debugsw = 0; /* global */
char *altmsg = NULL;
char *annotext = NULL;
#include <h/mh.h>
#include <h/rcvmail.h>
#include <h/signals.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/rcvmail.h>
#include <h/signals.h>
#include <h/tws.h>
#include <h/utils.h>
#include <pwd.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <stdarg.h>
+#include <sys/stat.h>
+#include <locale.h>
#ifdef INITGROUPS_HEADER
#include INITGROUPS_HEADER
#ifdef INITGROUPS_HEADER
#include INITGROUPS_HEADER
#include <h/mh.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/mh.h>
#include <h/tws.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <sys/stat.h>
+#include <locale.h>
+
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
static struct swit switches[] = {
#define DATESW 0
static struct swit switches[] = {
#define DATESW 0
#include <h/dropsbr.h>
#include <h/tws.h>
#include <h/utils.h>
#include <h/dropsbr.h>
#include <h/tws.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <locale.h>
#define MAX_SM_FIELD 1476 /* < largest hdr field sendmail will accept */
#define MAX_SM_FIELD 1476 /* < largest hdr field sendmail will accept */
#include <signal.h>
#include <h/mime.h>
#include <h/utils.h>
#include <signal.h>
#include <h/mime.h>
#include <h/utils.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <locale.h>
+
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
static struct swit switches[] = {
#define EDITRSW 0
static struct swit switches[] = {
#define EDITRSW 0
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
#include <h/utils.h>
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
#include <h/utils.h>
static struct swit switches[] = {
#define VERSIONSW 0
static struct swit switches[] = {
#define VERSIONSW 0