diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/gen.lua | 1 | ||||
| -rw-r--r-- | pkg/plan9port/gen.lua | 384 | ||||
| -rw-r--r-- | pkg/plan9port/patch/0001-Fix-build-with-musl.patch | 62 | ||||
| -rw-r--r-- | pkg/plan9port/patch/0002-rc-Look-for-lib-rcmain.patch | 58 | ||||
| -rw-r--r-- | pkg/plan9port/patch/0003-rcmain-Don-t-use-PLAN9-bin-9.patch | 30 | ||||
| -rw-r--r-- | pkg/plan9port/patch/0004-Fix-sys-termios.h-include-to-termios.h.patch | 25 | ||||
| -rw-r--r-- | pkg/plan9port/patch/0005-Include-u.h-before-any-other-system-headers.patch | 23 | ||||
| -rw-r--r-- | pkg/plan9port/patch/0006-Remove-some-duplicate-definitions.patch | 276 | ||||
| m--------- | pkg/plan9port/src | 0 | ||||
| -rw-r--r-- | pkg/plan9port/ver | 1 |
10 files changed, 0 insertions, 860 deletions
diff --git a/pkg/gen.lua b/pkg/gen.lua index 374dd0bc..9789b757 100644 --- a/pkg/gen.lua +++ b/pkg/gen.lua @@ -73,7 +73,6 @@ subgen 'pcre' subgen 'perp' subgen 'pigz' subgen 'pixman' -subgen 'plan9port' subgen 'python' subgen 'qbe' subgen 'rc' diff --git a/pkg/plan9port/gen.lua b/pkg/plan9port/gen.lua deleted file mode 100644 index 78255312..00000000 --- a/pkg/plan9port/gen.lua +++ /dev/null @@ -1,384 +0,0 @@ -set('arch', 'x86_64') - -cflags{ - '-D __Linux26__', - '-D PLAN9PORT', - '-I $srcdir/include', - '-I $srcdir/src/cmd/rc', - '-I $srcdir/src/lib9/fmt', - '-I $outdir/rc', -} - --- src/src/lib9/mkfile:/^OFILES -lib('lib9.a', [[src/lib9/( - fmt/( - dofmt.c - fltfmt.c - fmt.c - fmtfd.c - fmtfdflush.c - fmtlocale.c - fmtnull.c - fmtprint.c - fmtquote.c - fmtrune.c - fmtstr.c - fmtvprint.c - fprint.c - nan64.c - print.c - runefmtstr.c - runeseprint.c - runesmprint.c - runesnprint.c - runesprint.c - runevseprint.c - runevsmprint.c - runevsnprint.c - seprint.c - smprint.c - snprint.c - sprint.c - strtod.c - vfprint.c - vseprint.c - vsmprint.c - vsnprint.c - charstod.c - pow10.c - ) - fmtlock2.c - - utf/( - rune.c - runestrcat.c - runestrchr.c - runestrcmp.c - runestrcpy.c - runestrdup.c - runestrlen.c - runestrecpy.c - runestrncat.c - runestrncmp.c - runestrncpy.c - runestrrchr.c - runestrstr.c - runetype.c - utfecpy.c - utflen.c - utfnlen.c - utfrrune.c - utfrune.c - utfutf.c - ) - - _exits.c - _p9dialparse.c - _p9dir.c - announce.c - argv0.c - atexit.c - atoi.c - atol.c - atoll.c - atnotify.c - await.c - cistrcmp.c - cistrncmp.c - cistrstr.c - cleanname.c - convD2M.c - convM2D.c - convM2S.c - convS2M.c - create.c - crypt.c - ctime.c - dial.c - dirfstat.c - dirfwstat.c - dirmodefmt.c - dirread.c - dirstat.c - dirwstat.c - dup.c - encodefmt.c - errstr.c - exec.c - execl.c - exitcode.c - fcallfmt.c - get9root.c - getcallerpc-$arch.c - getenv.c - getfields.c - getnetconn.c - getns.c - getuser.c - getwd.c - jmp.c - lrand.c - lnrand.c - main.c - malloc.c - malloctag.c - mallocz.c - nan.c - needsrcquote.c - needstack.c - netcrypt.c - netmkaddr.c - notify.c - nrand.c - nulldir.c - open.c - opentemp.c - pin.c - pipe.c - post9p.c - postnote.c - qlock.c - quote.c - rand.c - read9pmsg.c - readcons.c - readn.c - rfork.c - searchpath.c - seek.c - sendfd.c - sleep.c - strdup.c - strecpy.c - sysfatal.c - syslog.c - sysname.c - time.c - tm2sec.c - tokenize.c - truerand.c - u16.c - u32.c - u64.c - unsharp.c - wait.c - waitpid.c - write.c - zoneinfo.c -)]]) - --- src/src/lib9p/mkfile:/^OFILES -lib('lib9p.a', [[src/lib9p/( - _post.c - dirread.c - fid.c - file.c - intmap.c - mem.c - req.c - parse.c - srv.c - tpost.c - uid.c - util.c -)]]) - --- src/src/lib9pclient/mkfile:/^OFILES -lib('lib9pclient.a', [[src/lib9pclient/( - access.c - auth.c - close.c - create.c - dirread.c - fs.c - ns.c - open.c - openfd.c - print.c - read.c - remove.c - seek.c - stat.c - walk.c - write.c - wstat.c -)]]) - --- src/src/libbio/mkfile:/^OFILES -lib('libbio.a', [[src/libbio/( - bbuffered.c - bfildes.c - bflush.c - bgetc.c - bgetrune.c - bgetd.c - binit.c - boffset.c - bprint.c - bputc.c - bputrune.c - brdline.c - brdstr.c - bread.c - bseek.c - bvprint.c - bwrite.c -)]]) - --- src/src/libcomplete/mkfile:/^OFILES -lib('libcomplete.a', {'src/libcomplete/complete.c'}) - --- src/src/libdraw/mkfile:/^OFILES -lib('libdraw.a', [[src/libdraw/( - alloc.c - allocimagemix.c - arith.c - bezier.c - border.c - buildfont.c - bytesperline.c - chan.c - cloadimage.c - computil.c - creadimage.c - debug.c - defont.c - draw.c - drawclient.c - drawfcall.c - drawrepl.c - egetrect.c - ellipse.c - emenuhit.c - event.c - font.c - freesubfont.c - getdefont.c - getrect.c - getsubfont.c - icossin.c - icossin2.c - init.c - iprint.c - keyboard.c - line.c - loadimage.c - menuhit.c - mkfont.c - mouse.c - openfont.c - poly.c - readimage.c - readsubfont.c - rectclip.c - replclipr.c - rgb.c - scroll.c - snarf.c - string.c - stringbg.c - stringsubfont.c - stringwidth.c - subfont.c - subfontcache.c - subfontname.c - unloadimage.c - window.c - writeimage.c - writesubfont.c - wsys.c - unix.c -)]]) - --- src/src/libframe/mkfile:/^OFILES -lib('libframe.a', [[src/libframe/( - frbox.c - frdelete.c - frdraw.c - frinit.c - frinsert.c - frptofchar.c - frselect.c - frstr.c - frutil.c -)]]) - --- src/src/libmemdraw/mkfile:/^OFILES -lib('libmemdraw.a', [[src/libmemdraw/( - alloc.c - alloc-stub.c - arc.c - cload.c - cload-stub.c - cmap.c - cread.c - defont.c - draw.c - draw-stub.c - ellipse.c - fillpoly.c - hwdraw.c - iprint.c - line.c - load.c - load-stub.c - openmemsubfont.c - poly.c - read.c - string.c - subfont.c - unload.c - unload-stub.c - write.c -)]]) - --- src/src/libmemlayer/mkfile:/^OFILES -lib('libmemlayer.a', [[src/libmemlayer/( - draw.c - lalloc.c - layerop.c - ldelete.c - lhide.c - line.c - load.c - lorigin.c - lsetrefresh.c - ltofront.c - ltorear.c - unload.c -)]]) - --- src/src/libmux/mkfile:/^OFILES -lib('libmux.a', 'src/libmux/(io.c mux.c queue.c thread.c)') - --- src/src/libplumb/mkfile:/^OFILES -lib('libplumb.a', 'src/libplumb/(event.c fid.c mesg.c)') - --- src/src/cmd/sam/mkfile:/^OFILES -exe('bin/sam', [[src/cmd/sam/( - sam.c - address.c - buff.c - cmd.c - disk.c - error.c - file.c - io.c - list.c - mesg.c - moveto.c - multi.c - rasp.c - regexp.c - shell.c - string.c - sys.c - unix.c - util.c - xec.c -) libplumb.a lib9.a]]) -file('bin/sam', '755', '$outdir/bin/sam') - -man{'man/man1/rc.1', 'man/man1/sam.1'} - -fetch 'git' diff --git a/pkg/plan9port/patch/0001-Fix-build-with-musl.patch b/pkg/plan9port/patch/0001-Fix-build-with-musl.patch deleted file mode 100644 index 65507008..00000000 --- a/pkg/plan9port/patch/0001-Fix-build-with-musl.patch +++ /dev/null @@ -1,62 +0,0 @@ -From bc48772672bdb1436455e078b17df47a63813394 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sun, 10 Apr 2016 02:50:03 -0700 -Subject: [PATCH] Fix build with musl - ---- - src/lib9/dirread.c | 34 ---------------------------------- - 1 file changed, 34 deletions(-) - -diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c -index 40fbe3c..345f49c 100644 ---- a/src/lib9/dirread.c -+++ b/src/lib9/dirread.c -@@ -6,45 +6,11 @@ - - extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*); - --#if defined(__linux__) --static int --mygetdents(int fd, struct dirent *buf, int n) --{ -- off_t off; -- int nn; -- -- /* This doesn't match the man page, but it works in Debian with a 2.2 kernel */ -- off = p9seek(fd, 0, 1); -- nn = getdirentries(fd, (void*)buf, n, &off); -- return nn; --} --#elif defined(__APPLE__) --static int --mygetdents(int fd, struct dirent *buf, int n) --{ -- long off; -- return getdirentries(fd, (void*)buf, n, &off); --} --#elif defined(__FreeBSD__) || defined(__DragonFly__) --static int --mygetdents(int fd, struct dirent *buf, int n) --{ -- off_t off; -- return getdirentries(fd, (void*)buf, n, &off); --} --#elif defined(__sun__) || defined(__NetBSD__) || defined(__OpenBSD__) - static int - mygetdents(int fd, struct dirent *buf, int n) - { - return getdents(fd, (void*)buf, n); - } --#elif defined(__AIX__) --static int --mygetdents(int fd, struct dirent *buf, int n) --{ -- return getdirent(fd, (void*)buf, n); --} --#endif - - #if defined(__DragonFly__) - static inline int d_reclen(struct dirent *de) { return _DIRENT_DIRSIZ(de); } --- -2.8.1 - diff --git a/pkg/plan9port/patch/0002-rc-Look-for-lib-rcmain.patch b/pkg/plan9port/patch/0002-rc-Look-for-lib-rcmain.patch deleted file mode 100644 index dbe342ee..00000000 --- a/pkg/plan9port/patch/0002-rc-Look-for-lib-rcmain.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 73124caea18f5d36417ec24b8e69b540daf97bc2 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Wed, 18 May 2016 22:58:17 -0700 -Subject: [PATCH] rc: Look for /lib/rcmain - ---- - src/cmd/rc/exec.c | 2 +- - src/cmd/rc/plan9ish.c | 6 +----- - src/cmd/rc/rc.h | 2 +- - 3 files changed, 3 insertions(+), 7 deletions(-) - -diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c -index 03c96d4..1fb9be5 100644 ---- a/src/cmd/rc/exec.c -+++ b/src/cmd/rc/exec.c -@@ -147,7 +147,7 @@ main(int argc, char *argv[]) - if(flag['I']) - flag['i'] = 0; - else if(flag['i']==0 && argc==1 && Isatty(0)) flag['i'] = flagset; -- rcmain = flag['m'] ? flag['m'][0] : Rcmain(); -+ rcmain = flag['m'] ? flag['m'][0] : Rcmain; - err = openfd(2); - kinit(); - Trapinit(); -diff --git a/src/cmd/rc/plan9ish.c b/src/cmd/rc/plan9ish.c -index da9d867..60c0ee4 100644 ---- a/src/cmd/rc/plan9ish.c -+++ b/src/cmd/rc/plan9ish.c -@@ -24,12 +24,8 @@ char *syssigname[]={ - "term", - 0 - }; --char* --Rcmain(void) --{ -- return unsharp("#9/rcmain"); --} - -+char Rcmain[]="/lib/rcmain"; - char Fdprefix[]="/dev/fd/"; - long readnb(int, char *, long); - void execfinit(void); -diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h -index 7778ff4..986b8be 100644 ---- a/src/cmd/rc/rc.h -+++ b/src/cmd/rc/rc.h -@@ -135,7 +135,7 @@ int doprompt; /* is it time for a prompt? */ - */ - #define PRD 0 - #define PWR 1 --extern char *Rcmain(), Fdprefix[]; -+extern char Rcmain[], Fdprefix[]; - #define register - /* - * How many dot commands have we executed? --- -2.8.1 - diff --git a/pkg/plan9port/patch/0003-rcmain-Don-t-use-PLAN9-bin-9.patch b/pkg/plan9port/patch/0003-rcmain-Don-t-use-PLAN9-bin-9.patch deleted file mode 100644 index 04c884b0..00000000 --- a/pkg/plan9port/patch/0003-rcmain-Don-t-use-PLAN9-bin-9.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 4e822f477a9d1c71c5489e59bd30ee4b3e2f5058 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Wed, 18 May 2016 23:02:03 -0700 -Subject: [PATCH] rcmain: Don't use $PLAN9/bin/9 - ---- - rcmain | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/rcmain b/rcmain -index 461cb3e..a73014d 100644 ---- a/rcmain -+++ b/rcmain -@@ -29,11 +29,11 @@ if(flag i){ - # is not sufficient when running in a subshell - # that is rc -e (like mk uses!) - if(builtin cd $1){ -- if(flag i) $PLAN9/bin/9 awd || status='' -+ if(flag i) awd || status='' - status='' - } - } -- $PLAN9/bin/9 awd -+ awd - } - if(flag l && test -r $home/lib/profile) . $home/lib/profile - status='' --- -2.8.1 - diff --git a/pkg/plan9port/patch/0004-Fix-sys-termios.h-include-to-termios.h.patch b/pkg/plan9port/patch/0004-Fix-sys-termios.h-include-to-termios.h.patch deleted file mode 100644 index 0de91323..00000000 --- a/pkg/plan9port/patch/0004-Fix-sys-termios.h-include-to-termios.h.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0af022a4cef553bf2b09bdc6079d22adef7164ad Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sat, 10 Dec 2016 23:54:51 -0800 -Subject: [PATCH] Fix sys/termios.h include to termios.h - ---- - src/lib9/readcons.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/lib9/readcons.c b/src/lib9/readcons.c -index 8de44b8f..289f0f3b 100644 ---- a/src/lib9/readcons.c -+++ b/src/lib9/readcons.c -@@ -2,7 +2,7 @@ - #define NOPLAN9DEFINES - #include <libc.h> - #include <termios.h> --#include <sys/termios.h> -+#include <termios.h> - - static int - rawx(int fd, int echoing) --- -2.11.0 - diff --git a/pkg/plan9port/patch/0005-Include-u.h-before-any-other-system-headers.patch b/pkg/plan9port/patch/0005-Include-u.h-before-any-other-system-headers.patch deleted file mode 100644 index 0b022c64..00000000 --- a/pkg/plan9port/patch/0005-Include-u.h-before-any-other-system-headers.patch +++ /dev/null @@ -1,23 +0,0 @@ -From c35ccfd7b03be1770ba3894e2e97b7faf87b8634 Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sun, 11 Dec 2016 13:28:47 -0800 -Subject: [PATCH] Include <u.h> before any other system headers - -Otherwise, the system headers may provide different values for feature test -macros than we do in u.h. ---- - src/cmd/rc/io.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/cmd/rc/io.c b/src/cmd/rc/io.c -index bb8af4ab..ac3b7585 100644 ---- a/src/cmd/rc/io.c -+++ b/src/cmd/rc/io.c -@@ -1,3 +1,4 @@ -+#include <u.h> - #include <limits.h> - #include "rc.h" - #include "exec.h" --- -2.11.0 - diff --git a/pkg/plan9port/patch/0006-Remove-some-duplicate-definitions.patch b/pkg/plan9port/patch/0006-Remove-some-duplicate-definitions.patch deleted file mode 100644 index aada7081..00000000 --- a/pkg/plan9port/patch/0006-Remove-some-duplicate-definitions.patch +++ /dev/null @@ -1,276 +0,0 @@ -From f004781388e26321104aa30badce135f6c48a89e Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Thu, 20 Jun 2019 21:50:14 -0700 -Subject: [PATCH] Remove some duplicate definitions - ---- - src/cmd/rc/exec.c | 11 +++++++++-- - src/cmd/rc/exec.h | 12 ++++++------ - src/cmd/rc/io.c | 1 + - src/cmd/rc/io.h | 2 +- - src/cmd/rc/lex.c | 3 +++ - src/cmd/rc/plan9ish.c | 7 +------ - src/cmd/rc/rc.h | 24 ++++++++++-------------- - src/cmd/rc/simple.c | 2 ++ - src/cmd/rc/subr.c | 3 ++- - src/cmd/rc/var.c | 1 + - src/libplumb/mesg.c | 2 -- - 11 files changed, 36 insertions(+), 32 deletions(-) - -diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c -index 1fb9be53..e678da05 100644 ---- a/src/cmd/rc/exec.c -+++ b/src/cmd/rc/exec.c -@@ -3,11 +3,16 @@ - #include "exec.h" - #include "io.h" - #include "fns.h" -+int mypid; -+thread *runq; -+code *codebuf; -+int ntrap; -+int trap[NSIG]; -+int eflagok; -+ - /* - * Start executing the given code at the given pc with the given redirection - */ --char *argv0="rc"; -- - void - start(code *c, int pc, var *local) - { -@@ -136,6 +141,8 @@ main(int argc, char *argv[]) - char num[12], *rcmain; - int i; - -+ argv0 = "rc"; -+ - /* needed for rcmain later */ - putenv("PLAN9", unsharp("#9")); - -diff --git a/src/cmd/rc/exec.h b/src/cmd/rc/exec.h -index 06d2991f..ab0bfb42 100644 ---- a/src/cmd/rc/exec.h -+++ b/src/cmd/rc/exec.h -@@ -56,18 +56,18 @@ struct thread{ - tree *treenodes; /* tree nodes created by this process */ - thread *ret; /* who continues when this finishes */ - }; --thread *runq; -+extern thread *runq; - code *codecopy(code*); --code *codebuf; /* compiler output */ --int ntrap; /* number of outstanding traps */ --int trap[NSIG]; /* number of outstanding traps per type */ -+extern code *codebuf; /* compiler output */ -+extern int ntrap; /* number of outstanding traps */ -+extern int trap[NSIG]; /* number of outstanding traps per type */ - struct builtin{ - char *name; - void (*fnc)(void); - }; - extern struct builtin Builtin[]; --int eflagok; /* kludge flag so that -e doesn't exit in startup */ --int havefork; -+extern int eflagok; /* kludge flag so that -e doesn't exit in startup */ -+extern int havefork; - - void execcd(void), execwhatis(void), execeval(void), execexec(void); - int execforkexec(void); -diff --git a/src/cmd/rc/io.c b/src/cmd/rc/io.c -index ac3b7585..ca994707 100644 ---- a/src/cmd/rc/io.c -+++ b/src/cmd/rc/io.c -@@ -4,6 +4,7 @@ - #include "exec.h" - #include "io.h" - #include "fns.h" -+io *err; - int pfmtnest = 0; - - void -diff --git a/src/cmd/rc/io.h b/src/cmd/rc/io.h -index 21cc6b8e..68b9e896 100644 ---- a/src/cmd/rc/io.h -+++ b/src/cmd/rc/io.h -@@ -10,7 +10,7 @@ struct io{ - int fd; - char *bufp, *ebuf, *strp, buf[NBUF]; - }; --io *err; -+extern io *err; - io *openfd(int), *openstr(void), *opencore(char *, int); - int emptybuf(io*); - void pchr(io*, int); -diff --git a/src/cmd/rc/lex.c b/src/cmd/rc/lex.c -index d9369e5c..14cb595a 100644 ---- a/src/cmd/rc/lex.c -+++ b/src/cmd/rc/lex.c -@@ -22,6 +22,7 @@ idchr(int c) - return c>' ' && !strchr("!\"#$%&'()+,-./:;<=>?@[\\]^`{|}~", c); - } - int future = EOF; -+char *promptstr; - int doprompt = 1; - int inquote; - int incomm; -@@ -36,6 +37,7 @@ nextc(void) - future = getnext(); - return future; - } -+int lastc; - /* - * Consume the lookahead character. - */ -@@ -148,6 +150,7 @@ nextis(int c) - } - return 0; - } -+char tok[NTOK]; - - char* - addtok(char *p, int val) -diff --git a/src/cmd/rc/plan9ish.c b/src/cmd/rc/plan9ish.c -index 60c0ee45..c395856f 100644 ---- a/src/cmd/rc/plan9ish.c -+++ b/src/cmd/rc/plan9ish.c -@@ -449,13 +449,8 @@ notifyf(void *unused0, char *s) - int i; - for(i=0;syssigname[i];i++) - if(strncmp(s, syssigname[i], strlen(syssigname[i]))==0){ -- if(strncmp(s, "sys: ", 5)!=0){ -- if(kidpid && !interrupted){ -- interrupted=1; -- postnote(PNGROUP, kidpid, s); -- } -+ if(strncmp(s, "sys: ", 5)!=0) - interrupted = 1; -- } - goto Out; - } - if(strcmp(s, "sys: window size change") != 0) -diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h -index 986b8bef..24ef2f70 100644 ---- a/src/cmd/rc/rc.h -+++ b/src/cmd/rc/rc.h -@@ -59,7 +59,6 @@ tree *mung1(tree*, tree*), *mung2(tree*, tree*, tree*); - tree *mung3(tree*, tree*, tree*, tree*), *epimung(tree*, tree*); - tree *simplemung(tree*), *heredoc(tree*); - void freetree(tree*); --tree *cmdtree; - /* - * The first word of any code vector is a reference count. - * Always create a new reference to a code vector by calling codecopy(.). -@@ -70,10 +69,10 @@ union code{ - int i; - char *s; - }; --char *promptstr; --int doprompt; -+extern char *promptstr; -+extern int doprompt; - #define NTOK 8192 --char tok[NTOK]; -+extern char tok[NTOK]; - #define APPEND 1 - #define WRITE 2 - #define READ 3 -@@ -93,7 +92,7 @@ struct var{ - }; - var *vlook(char*), *gvlook(char*), *newvar(char*, var*); - #define NVAR 521 --var *gvar[NVAR]; /* hash for globals */ -+extern var *gvar[NVAR]; /* hash for globals */ - #define new(type) ((type *)emalloc(sizeof(type))) - char *emalloc(long); - void *Malloc(ulong); -@@ -104,7 +103,7 @@ struct here{ - char *name; - struct here *next; - }; --int mypid; -+extern int mypid; - /* - * Glob character escape in strings: - * In a string, GLOB must be followed by *?[ or GLOB. -@@ -123,10 +122,8 @@ int mypid; - #define threebyte(c) ((c&0xf0)==0xe0) - #define fourbyte(c) ((c&0xf8)==0xf0) - --char **argp; --char **args; --int nerror; /* number of errors encountered during compilation */ --int doprompt; /* is it time for a prompt? */ -+extern int nerror; /* number of errors encountered during compilation */ -+extern int doprompt; /* is it time for a prompt? */ - /* - * Which fds are the reading/writing end of a pipe? - * Unfortunately, this can vary from system to system. -@@ -141,8 +138,7 @@ extern char Rcmain[], Fdprefix[]; - * How many dot commands have we executed? - * Used to ensure that -v flag doesn't print rcmain. - */ --int ndot; -+extern int ndot; - char *getstatus(void); --int lastc; --int lastword; --int kidpid; -+extern int lastc; -+extern int lastword; -diff --git a/src/cmd/rc/simple.c b/src/cmd/rc/simple.c -index d587227a..7f1ee12e 100644 ---- a/src/cmd/rc/simple.c -+++ b/src/cmd/rc/simple.c -@@ -6,6 +6,8 @@ - #include "exec.h" - #include "io.h" - #include "fns.h" -+int ndot; -+ - /* - * Search through the following code to see if we're just going to exit. - */ -diff --git a/src/cmd/rc/subr.c b/src/cmd/rc/subr.c -index 47f7439e..f919718c 100644 ---- a/src/cmd/rc/subr.c -+++ b/src/cmd/rc/subr.c -@@ -22,7 +22,8 @@ efree(char *p) - free(p); - else pfmt(err, "free 0\n"); - } --extern int lastword, lastdol; -+extern int lastdol; -+int nerror; - - void - yyerror(char *m) -diff --git a/src/cmd/rc/var.c b/src/cmd/rc/var.c -index 2564ba2f..b4a3ef5b 100644 ---- a/src/cmd/rc/var.c -+++ b/src/cmd/rc/var.c -@@ -1,6 +1,7 @@ - #include "rc.h" - #include "exec.h" - #include "fns.h" -+var *gvar[NVAR]; - - int - hash(char *s, int n) -diff --git a/src/libplumb/mesg.c b/src/libplumb/mesg.c -index c9379307..f33d7c67 100755 ---- a/src/libplumb/mesg.c -+++ b/src/libplumb/mesg.c -@@ -5,8 +5,6 @@ - - static char attrbuf[4096]; - --char *home; -- - static int - Strlen(char *s) - { --- -2.22.0 - diff --git a/pkg/plan9port/src b/pkg/plan9port/src deleted file mode 160000 -Subproject 35d43924484b88b9816e40d2f6bff4547f3eec4 diff --git a/pkg/plan9port/ver b/pkg/plan9port/ver deleted file mode 100644 index d1d05d31..00000000 --- a/pkg/plan9port/ver +++ /dev/null @@ -1 +0,0 @@ -35d4392448 r1 |
