From a9e20eb10a5759dd7ad15b7a136ef9363ec2527b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 1 Sep 2017 12:05:06 -0400 Subject: ed: allow larger temp files Requested by rob. --- src/cmd/ed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd/ed.c b/src/cmd/ed.c index 79b90e7e..788b35be 100644 --- a/src/cmd/ed.c +++ b/src/cmd/ed.c @@ -13,7 +13,7 @@ enum FNSIZE = 128, /* file name */ LBSIZE = 4096, /* max line size */ BLKSIZE = 4096, /* block size in temp file */ - NBLK = 8191, /* max size of temp file */ + NBLK = 32767, /* max size of temp file */ ESIZE = 256, /* max size of reg exp */ GBSIZE = 256, /* max size of global command */ MAXSUB = 9, /* max number of sub reg exp */ -- cgit v1.2.3 From a39938859387987d5aac6201600154a68fad7c40 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 1 Sep 2017 13:16:43 -0400 Subject: all: update site from swtch.com to 9fans.github.io --- src/cmd/awk/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd/awk/README b/src/cmd/awk/README index bcf46126..e3efb50d 100644 --- a/src/cmd/awk/README +++ b/src/cmd/awk/README @@ -6,7 +6,7 @@ as such, it's copyright is held by Lucent Technologies and distributed under the Lucent Public License version 1.02 [http://www.opensource.org/licenses/lucent1.02.php]. Modifications were made by Jeff Sickel in order to build using Plan 9 from User -Space [http://swtch.com/plan9port/] to the following files: +Space [https://9fans.github.io/plan9port/] to the following files: mkfile re.c -- cgit v1.2.3 From cf303e5baa13e9c35acb8531260a67d11e5051ab Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 1 Sep 2017 22:37:05 +0200 Subject: libmach: initialize ss variable in stabsline2pc function Fixes #58. --- src/libmach/symstabs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libmach/symstabs.c b/src/libmach/symstabs.c index 77c6bab7..e253f023 100644 --- a/src/libmach/symstabs.c +++ b/src/libmach/symstabs.c @@ -309,7 +309,8 @@ stabsline2pc(Fhdr *fhdr, u64int startpc, ulong line, u64int *pc) l.type = LADDR; l.addr = startpc; - if((s = ffindsym(fhdr, l, CTEXT)) == nil) + if((s = ffindsym(fhdr, l, CTEXT)) == nil + || stabsym(&fhdr->stabs, s->u.stabs.i, &ss) < 0) return -1; trigger = 0; -- cgit v1.2.3 From bb044732c6122cc3ba7c7bc7a44bc2ea762d31b1 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 1 Sep 2017 22:37:59 +0200 Subject: svgpic: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit plsvg.c:291:21: warning: variable ‘y2’ set but not used plsvg.c:291:17: warning: variable ‘x2’ set but not used --- src/cmd/svgpic/plsvg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/cmd/svgpic/plsvg.c b/src/cmd/svgpic/plsvg.c index 3f342e68..7f6db9d4 100644 --- a/src/cmd/svgpic/plsvg.c +++ b/src/cmd/svgpic/plsvg.c @@ -288,14 +288,12 @@ void circle(double x, double y, double r) void spline(double x, double y, double n, ofloat *p, int attr, double ddval) { int i; - double x1, y1, x2, y2; + double x1, y1; printf(" Date: Fri, 1 Sep 2017 22:51:14 +0200 Subject: lib9: import frand function from Plan 9 Fixes #15. --- src/lib9/frand.c | 17 +++++++++++++++++ src/lib9/mkfile | 1 + 2 files changed, 18 insertions(+) create mode 100644 src/lib9/frand.c (limited to 'src') diff --git a/src/lib9/frand.c b/src/lib9/frand.c new file mode 100644 index 00000000..841f9685 --- /dev/null +++ b/src/lib9/frand.c @@ -0,0 +1,17 @@ +#include +#include + +#define MASK 0x7fffffffL +#define NORM (1.0/(1.0+MASK)) + +double +p9frand(void) +{ + double x; + + do { + x = lrand() * NORM; + x = (x + lrand()) * NORM; + } while(x >= 1); + return x; +} diff --git a/src/lib9/mkfile b/src/lib9/mkfile index 4bbd0f8b..8f7283ef 100644 --- a/src/lib9/mkfile +++ b/src/lib9/mkfile @@ -102,6 +102,7 @@ LIB9OFILES=\ execl.$O\ exitcode.$O\ fcallfmt.$O\ + frand.$O\ get9root.$O\ getcallerpc-$OBJTYPE.$O\ getenv.$O\ -- cgit v1.2.3 From b3336e5cbb82042dfeedab8615022410b74f8520 Mon Sep 17 00:00:00 2001 From: Kare Nuorteva Date: Sun, 10 Sep 2017 13:26:57 +0300 Subject: all: remove .cvsignore files Rename following .cvsignore files to .gitkeep since they are required by the build (directories must exist before build): - bin/fossil/.gitkeep - bin/fs/.gitkeep - bin/venti/.gitkeep Change-Id: I9c2865058480cffb3a4613f25e2eca1f7e5578c0 --- src/cmd/.cvsignore | 7 ------- src/cmd/9660/.cvsignore | 2 -- src/cmd/acid/.cvsignore | 2 -- src/cmd/astro/.cvsignore | 2 -- src/cmd/draw/.cvsignore | 2 -- src/cmd/eqn/.cvsignore | 3 --- src/cmd/grap/.cvsignore | 3 --- src/cmd/grep/.cvsignore | 2 -- src/cmd/hoc/.cvsignore | 2 -- src/cmd/jpg/.cvsignore | 15 --------------- src/cmd/lex/.cvsignore | 2 -- src/cmd/mpm/.cvsignore | 1 - src/cmd/pic/.cvsignore | 4 ---- src/cmd/postscript/mcolor/.cvsignore | 1 - src/cmd/postscript/misc/.cvsignore | 4 ---- src/cmd/postscript/mpictures/.cvsignore | 1 - src/cmd/postscript/postreverse/.cvsignore | 1 - src/cmd/postscript/psencoding/.cvsignore | 1 - src/cmd/rc/.cvsignore | 3 --- src/cmd/tbl/.cvsignore | 1 - src/cmd/troff/.cvsignore | 1 - src/libsec/386/.cvsignore | 2 -- 22 files changed, 62 deletions(-) delete mode 100644 src/cmd/.cvsignore delete mode 100644 src/cmd/9660/.cvsignore delete mode 100644 src/cmd/acid/.cvsignore delete mode 100644 src/cmd/astro/.cvsignore delete mode 100644 src/cmd/draw/.cvsignore delete mode 100644 src/cmd/eqn/.cvsignore delete mode 100644 src/cmd/grap/.cvsignore delete mode 100644 src/cmd/grep/.cvsignore delete mode 100644 src/cmd/hoc/.cvsignore delete mode 100644 src/cmd/jpg/.cvsignore delete mode 100644 src/cmd/lex/.cvsignore delete mode 100644 src/cmd/mpm/.cvsignore delete mode 100644 src/cmd/pic/.cvsignore delete mode 100644 src/cmd/postscript/mcolor/.cvsignore delete mode 100644 src/cmd/postscript/misc/.cvsignore delete mode 100644 src/cmd/postscript/mpictures/.cvsignore delete mode 100644 src/cmd/postscript/postreverse/.cvsignore delete mode 100644 src/cmd/postscript/psencoding/.cvsignore delete mode 100644 src/cmd/rc/.cvsignore delete mode 100644 src/cmd/tbl/.cvsignore delete mode 100644 src/cmd/troff/.cvsignore delete mode 100644 src/libsec/386/.cvsignore (limited to 'src') diff --git a/src/cmd/.cvsignore b/src/cmd/.cvsignore deleted file mode 100644 index 49072760..00000000 --- a/src/cmd/.cvsignore +++ /dev/null @@ -1,7 +0,0 @@ -o.* -bc.tab.c -bc.tab.h -u9fs -units.tab.c -units.tab.h -venti diff --git a/src/cmd/9660/.cvsignore b/src/cmd/9660/.cvsignore deleted file mode 100644 index 0b5dca63..00000000 --- a/src/cmd/9660/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -o.dump9660 -o.mk9660 diff --git a/src/cmd/acid/.cvsignore b/src/cmd/acid/.cvsignore deleted file mode 100644 index c774979d..00000000 --- a/src/cmd/acid/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -y.tab.c -y.tab.h diff --git a/src/cmd/astro/.cvsignore b/src/cmd/astro/.cvsignore deleted file mode 100644 index 588b9511..00000000 --- a/src/cmd/astro/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -o.out -o.astro diff --git a/src/cmd/draw/.cvsignore b/src/cmd/draw/.cvsignore deleted file mode 100644 index dd7a6e11..00000000 --- a/src/cmd/draw/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -o.* -*.o diff --git a/src/cmd/eqn/.cvsignore b/src/cmd/eqn/.cvsignore deleted file mode 100644 index 1442fe84..00000000 --- a/src/cmd/eqn/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -eqn.c -prevy.tab.h -y.tab.h diff --git a/src/cmd/grap/.cvsignore b/src/cmd/grap/.cvsignore deleted file mode 100644 index a9938493..00000000 --- a/src/cmd/grap/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -grap.c -grapl.c -y.tab.h diff --git a/src/cmd/grep/.cvsignore b/src/cmd/grep/.cvsignore deleted file mode 100644 index c774979d..00000000 --- a/src/cmd/grep/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -y.tab.c -y.tab.h diff --git a/src/cmd/hoc/.cvsignore b/src/cmd/hoc/.cvsignore deleted file mode 100644 index c774979d..00000000 --- a/src/cmd/hoc/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -y.tab.c -y.tab.h diff --git a/src/cmd/jpg/.cvsignore b/src/cmd/jpg/.cvsignore deleted file mode 100644 index d895c24c..00000000 --- a/src/cmd/jpg/.cvsignore +++ /dev/null @@ -1,15 +0,0 @@ -o.bmp -o.gif -o.ico -o.jpg -o.png -o.ppm -o.rgbrgbv -o.rgbycc -o.togif -o.toico -o.topng -o.toppm -o.yuv -rgbv.h -ycbcr.h diff --git a/src/cmd/lex/.cvsignore b/src/cmd/lex/.cvsignore deleted file mode 100644 index c774979d..00000000 --- a/src/cmd/lex/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -y.tab.c -y.tab.h diff --git a/src/cmd/mpm/.cvsignore b/src/cmd/mpm/.cvsignore deleted file mode 100644 index a45a32ad..00000000 --- a/src/cmd/mpm/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -pm diff --git a/src/cmd/pic/.cvsignore b/src/cmd/pic/.cvsignore deleted file mode 100644 index 6e9127f7..00000000 --- a/src/cmd/pic/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -picl.c -picy.c -y.tab.c -y.tab.h diff --git a/src/cmd/postscript/mcolor/.cvsignore b/src/cmd/postscript/mcolor/.cvsignore deleted file mode 100644 index 0c5af57d..00000000 --- a/src/cmd/postscript/mcolor/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -tmac.color diff --git a/src/cmd/postscript/misc/.cvsignore b/src/cmd/postscript/misc/.cvsignore deleted file mode 100644 index c865cf4e..00000000 --- a/src/cmd/postscript/misc/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -ibmfont -laserbar -macfont -pscrypt diff --git a/src/cmd/postscript/mpictures/.cvsignore b/src/cmd/postscript/mpictures/.cvsignore deleted file mode 100644 index b352e031..00000000 --- a/src/cmd/postscript/mpictures/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -tmac.pictures diff --git a/src/cmd/postscript/postreverse/.cvsignore b/src/cmd/postscript/postreverse/.cvsignore deleted file mode 100644 index ce6f8746..00000000 --- a/src/cmd/postscript/postreverse/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -postreverse diff --git a/src/cmd/postscript/psencoding/.cvsignore b/src/cmd/postscript/psencoding/.cvsignore deleted file mode 100644 index 7f441579..00000000 --- a/src/cmd/postscript/psencoding/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -psencoding diff --git a/src/cmd/rc/.cvsignore b/src/cmd/rc/.cvsignore deleted file mode 100644 index abdaeea5..00000000 --- a/src/cmd/rc/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -x.tab.h -y.tab.c -y.tab.h diff --git a/src/cmd/tbl/.cvsignore b/src/cmd/tbl/.cvsignore deleted file mode 100644 index 9483a3fa..00000000 --- a/src/cmd/tbl/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -o.trbl diff --git a/src/cmd/troff/.cvsignore b/src/cmd/troff/.cvsignore deleted file mode 100644 index 6b401b18..00000000 --- a/src/cmd/troff/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -o.troff diff --git a/src/libsec/386/.cvsignore b/src/libsec/386/.cvsignore deleted file mode 100644 index 586a2bf7..00000000 --- a/src/libsec/386/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -md5block.s -sha1block.s -- cgit v1.2.3