+++ /dev/null
-/* The default interpreter */
-#define DEFAULTINTERP "/bin/sh"
-
-/* The default path */
-#define DEFAULTPATH "/usr/local/bin","/usr/bin","/bin","."
-
-/* Name of package */
-#define PACKAGE "rc"
-
-/* Define to 1 to encode exported environment names. */
-#define PROTECT_ENV 1
-
-/* Define to 1 to use job-control-style backgrounding. */
-#define RC_JOB 1
-
-/* Release date */
-#define RELDATE "2017-03-13"
-
-/* Version number of package */
-#define VERSION "1.7.4"
-
#undef NDEBUG
#define _XOPEN_SOURCE 700
-#include "config.h"
+/* Configuration options */
+#define DEFAULTINTERP "/bin/sh"
+#define DEFAULTPATH "/usr/local/bin","/usr/bin","/bin","."
+#define PACKAGE "rc"
+#define PROTECT_ENV 1
+#define RC_JOB 1
+#define RELDATE "2017-03-13"
+#define VERSION "1.7.4"
/* C standard includes */
#include <stdlib.h>
#define TRUE true
#define FALSE false
-/*
- wait.h
-*/
-
-/* These don't exist in POSIX. */
-#define myWIFDUMPED(s) (((s) & 0x80) != 0)
-
-/*
- jbwrap.h
-*/
-
/* If we have POSIX sigjmp_buf and friends, use them. If we don't, just
use a jmp_buf. This probably fails on a traditional SysV machine, where
jmp_bufs don't preserve signal masks. I'm not worrying about this till
sigjmp_buf j;
};
-/*
- rlimit.h
-*/
-/* What a mess. This file attempts to straighten everything out. */
-
-#define RLIM_CONV long
-#define RLIM_FMT "%s \t%ld%s\n"
-
-#if defined(RLIMIT_OFILE) && !defined (RLIMIT_NOFILE)
-#define RLIMIT_NOFILE RLIMIT_OFILE
-#endif
-
struct Suffix {
const struct Suffix *next;
long amount;
extern void initprint(void);
extern void rc_exit(int); /* here for odd reasons; user-defined signal handlers are kept in fn.c */
-/* getopt.c */
-extern int rc_getopt(int, char **, char *);
-
-extern int rc_optind, rc_opterr, rc_optopt;
-extern char *rc_optarg;
-
/* glob.c */
extern bool lmatch(List *, List *);
extern List *glob(List *);
extern int fprint(int fd, const char *fmt,...);
extern char *mprint(const char *fmt,...);
extern char *nprint(const char *fmt,...);
+extern void writeall(int, char *, size_t);
/*
the following macro should by rights be coded as an expression, not
a statement, but certain compilers (notably DEC) have trouble with
extern void ssetstatus(char **);
extern char *strstatus(int s);
-/* system.c or system-bsd.c */
-extern void writeall(int, char *, size_t);
-
/* tree.c */
extern Node *mk(int /*nodetype*/,...);
extern Node *treecpy(Node *, void *(*)(size_t));