all: DragonFly port.
Fix compilation problems, libdraw still doesn't work right yet. LGTM=rsc R=rsc https://codereview.appspot.com/67820046
This commit is contained in:
parent
db800afb4e
commit
20035ed43c
14 changed files with 356 additions and 15 deletions
|
|
@ -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[];
|
||||
|
|
|
|||
1
src/cmd/9term/DragonFly.c
Normal file
1
src/cmd/9term/DragonFly.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "bsdpty.c"
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
10
src/cmd/auxstats/DragonFly.c
Normal file
10
src/cmd/auxstats/DragonFly.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <bio.h>
|
||||
#include "dat.h"
|
||||
|
||||
void (*statfn[])(int) =
|
||||
{
|
||||
0
|
||||
};
|
||||
|
||||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
1
src/cmd/vbackup/mount-DragonFly.c
Normal file
1
src/cmd/vbackup/mount-DragonFly.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "mount-BSD.c"
|
||||
Loading…
Add table
Add a link
Reference in a new issue