diff options
Diffstat (limited to 'src/cmd/postscript/download')
-rw-r--r-- | src/cmd/postscript/download/download.c | 50 | ||||
-rw-r--r-- | src/cmd/postscript/download/mkfile | 4 |
2 files changed, 36 insertions, 18 deletions
diff --git a/src/cmd/postscript/download/download.c b/src/cmd/postscript/download/download.c index 5a6bdf3f..bc4c4195 100644 --- a/src/cmd/postscript/download/download.c +++ b/src/cmd/postscript/download/download.c @@ -58,6 +58,8 @@ #include <fcntl.h> #include <sys/stat.h> #include <string.h> +#include <stdlib.h> +#include <unistd.h> #include "comments.h" /* PostScript file structuring comments */ #include "gen.h" /* general purpose definitions */ @@ -83,8 +85,22 @@ int atend = FALSE; /* TRUE only if a comment says so */ FILE *fp_in; /* next input file */ FILE *fp_temp = NULL; /* for copying stdin */ +void init_signals(); +void options(); +void readmap(); +void readresident(); +void arguments(); +void done(); +void download(); +int lookup(char *font); +void copyfonts(char *list); +void copyinput(); +extern int cat(char *file); +extern void error(int errtype, char *fmt, ...); + /*****************************************************************************/ +int main(agc, agv) int agc; @@ -118,8 +134,8 @@ main(agc, agv) /*****************************************************************************/ -init_signals() - +void +init_signals(void) { /* @@ -143,8 +159,8 @@ init_signals() /*****************************************************************************/ -options() - +void +options(void) { int ch; /* return value from getopt() */ @@ -214,8 +230,8 @@ options() /*****************************************************************************/ -readmap() - +void +readmap(void) { char *path; @@ -277,8 +293,8 @@ readmap() /*****************************************************************************/ -readresident() - +void +readresident(void) { FILE *fp; @@ -316,8 +332,8 @@ readresident() /*****************************************************************************/ -arguments() - +void +arguments(void) { /* @@ -352,8 +368,8 @@ arguments() /*****************************************************************************/ -done() - +void +done(void) { /* @@ -369,8 +385,8 @@ done() /*****************************************************************************/ -download() - +void +download(void) { int infontlist = FALSE; @@ -418,6 +434,7 @@ download() /*****************************************************************************/ +void copyfonts(list) char *list; @@ -460,8 +477,8 @@ copyfonts(list) /*****************************************************************************/ -copyinput() - +void +copyinput(void) { /* @@ -488,6 +505,7 @@ copyinput() /*****************************************************************************/ +int lookup(font) char *font; diff --git a/src/cmd/postscript/download/mkfile b/src/cmd/postscript/download/mkfile index d2321e65..7084537d 100644 --- a/src/cmd/postscript/download/mkfile +++ b/src/cmd/postscript/download/mkfile @@ -1,7 +1,7 @@ <$PLAN9/src/mkhdr <../config -TARG=psdownload +TARG=auxdownload OFILES=download.$O @@ -13,7 +13,7 @@ HFILES=download.h\ $COMMONDIR/path.h\ $COMMONDIR/ext.h\ -LIB=$COMMONDIR/com.a +LIB=$COMMONDIR/libcom.a BIN=$POSTBIN <$PLAN9/src/mkone |