summaryrefslogtreecommitdiff
path: root/utils/5a
diff options
context:
space:
mode:
authorforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:01:14 +0000
committerforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:01:14 +0000
commit45a20ab721a513710138340faff3d59a31c3e01e (patch)
treeeea29d2684c51cc73725b8992a2125bede48e118 /utils/5a
parentcd8e99851af33e52bcdf8faf34f9d4e62fa0cbaf (diff)
sync compilers with Plan 9
remove 1[acl] 2[acl]
Diffstat (limited to 'utils/5a')
-rw-r--r--utils/5a/a.h2
-rw-r--r--utils/5a/lex.c13
2 files changed, 11 insertions, 4 deletions
diff --git a/utils/5a/a.h b/utils/5a/a.h
index 23d19347..62d8760d 100644
--- a/utils/5a/a.h
+++ b/utils/5a/a.h
@@ -174,9 +174,9 @@ int mywait(int*);
int mycreat(char*, int);
int systemtype(int);
int pathchar(void);
+int myfork(void);
char* mygetwd(char*, int);
int myexec(char*, char*[]);
int mydup(int, int);
-int myfork(void);
int mypipe(int*);
void* mysbrk(ulong);
diff --git a/utils/5a/lex.c b/utils/5a/lex.c
index 2802f4f8..0d93b413 100644
--- a/utils/5a/lex.c
+++ b/utils/5a/lex.c
@@ -311,6 +311,11 @@ struct
"MOVWD", LTYPE3, AMOVWD,
"MOVWF", LTYPE3, AMOVWF,
+ "LDREX", LTYPE3, ALDREX,
+ "LDREXD", LTYPE3, ALDREXD,
+ "STREX", LTYPE9, ASTREX,
+ "STREXD", LTYPE9, ASTREXD,
+
/*
"ABSF", LTYPEI, AABSF,
"ABSD", LTYPEI, AABSD,
@@ -326,6 +331,8 @@ struct
"NRMD", LTYPEI, ANRMD,
*/
+ "SQRTF", LTYPEI, ASQRTF,
+ "SQRTD", LTYPEI, ASQRTD,
"CMPF", LTYPEL, ACMPF,
"CMPD", LTYPEL, ACMPD,
"ADDF", LTYPEK, AADDF,
@@ -417,10 +424,10 @@ cinit(void)
}
pathname = allocn(pathname, 0, 100);
- if(mygetwd(pathname, 99) == 0) {
+ if(getwd(pathname, 99) == 0) {
pathname = allocn(pathname, 100, 900);
- if(mygetwd(pathname, 999) == 0)
- strcpy(pathname, "/???");
+ if(getwd(pathname, 999) == 0)
+ strcpy(pathname, "/?");
}
}