diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/9660srv/main.c | 2 | ||||
-rw-r--r-- | src/cmd/9term/DragonFly.c | 1 | ||||
-rw-r--r-- | src/cmd/9term/mkfile | 2 | ||||
-rw-r--r-- | src/cmd/auxstats/DragonFly.c | 10 | ||||
-rw-r--r-- | src/cmd/eqn/lex.c | 6 | ||||
-rw-r--r-- | src/cmd/tpic/input.c | 2 | ||||
-rw-r--r-- | src/cmd/vbackup/mount-DragonFly.c | 1 |
7 files changed, 17 insertions, 7 deletions
diff --git a/src/cmd/9660srv/main.c b/src/cmd/9660srv/main.c index cd20570c..44fdc512 100644 --- a/src/cmd/9660srv/main.c +++ b/src/cmd/9660srv/main.c @@ -2,6 +2,7 @@ #include <libc.h> #include <auth.h> #include <fcall.h> +#include <errno.h> #include "dat.h" #include "fns.h" @@ -38,7 +39,6 @@ Fcall *rep; uchar mdata[Maxiosize]; char fdata[Maxfdata]; uchar statbuf[STATMAX]; -int errno; extern Xfsub *xsublist[]; diff --git a/src/cmd/9term/DragonFly.c b/src/cmd/9term/DragonFly.c new file mode 100644 index 00000000..eec79c28 --- /dev/null +++ b/src/cmd/9term/DragonFly.c @@ -0,0 +1 @@ +#include "bsdpty.c" diff --git a/src/cmd/9term/mkfile b/src/cmd/9term/mkfile index e1ef4d68..4546d666 100644 --- a/src/cmd/9term/mkfile +++ b/src/cmd/9term/mkfile @@ -10,7 +10,7 @@ HFILES=dat.h fns.h term.h <$PLAN9/src/mkmany -Darwin.$O Linux.$O FreeBSD.$O: bsdpty.c +Darwin.$O Linux.$O FreeBSD.$O DragonFly.$O: bsdpty.c $O.9term: data.$O scrl.$O time.$O util.$O wind.$O diff --git a/src/cmd/auxstats/DragonFly.c b/src/cmd/auxstats/DragonFly.c new file mode 100644 index 00000000..ec931044 --- /dev/null +++ b/src/cmd/auxstats/DragonFly.c @@ -0,0 +1,10 @@ +#include <u.h> +#include <libc.h> +#include <bio.h> +#include "dat.h" + +void (*statfn[])(int) = +{ + 0 +}; + diff --git a/src/cmd/eqn/lex.c b/src/cmd/eqn/lex.c index 99a716bb..2eddb6d5 100644 --- a/src/cmd/eqn/lex.c +++ b/src/cmd/eqn/lex.c @@ -1,6 +1,7 @@ #include "e.h" #include "y.tab.h" #include <ctype.h> +#include <errno.h> #define SSIZE 1000 char token[SSIZE]; @@ -19,7 +20,7 @@ yylex(void) register int c; tbl *tp; - begin: +begin: while ((c = input()) == ' ' || c == '\n' || c == '\t') ; yylval = c; @@ -236,7 +237,6 @@ void include(void) char name[100]; FILE *fin; int c; - extern int errno; while ((c = input()) == ' ') ; @@ -260,7 +260,7 @@ void delim(void) ERROR "Bizarre delimiters" FATAL; lefteq = token[0]; righteq = token[1]; - if (!isprint(lefteq) || !isprint(righteq)) + if (!isprint(lefteq) || !isprint(righteq)) ERROR "Bizarre delimiters" FATAL; if (lefteq == 'o' && righteq == 'f') lefteq = righteq = '\0'; diff --git a/src/cmd/tpic/input.c b/src/cmd/tpic/input.c index a5928ece..6885f650 100644 --- a/src/cmd/tpic/input.c +++ b/src/cmd/tpic/input.c @@ -428,8 +428,6 @@ pbstr(char *s) double errcheck(double x, char *s) { - extern int errno; - if (errno == EDOM) { errno = 0; ERROR "%s argument out of domain", s WARNING; diff --git a/src/cmd/vbackup/mount-DragonFly.c b/src/cmd/vbackup/mount-DragonFly.c new file mode 100644 index 00000000..0379cee8 --- /dev/null +++ b/src/cmd/vbackup/mount-DragonFly.c @@ -0,0 +1 @@ +#include "mount-BSD.c" |