]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
8 years agoprovide /n and /mnt early in bootrc to allow consistent use in /lib/namespace
cinap_lenrek [Sun, 14 Feb 2016 00:42:32 +0000 (01:42 +0100)]
provide /n and /mnt early in bootrc to allow consistent use in /lib/namespace

theres a bootstrap problem:

when /bin/init is run, it processes /lib/namespace where we might want to
mount or bind resources to /n or /mnt. but mntgen was run later in
cpurc/termrc so these mounts would be ignored.

we already have mntgen in bootfs, so we can provide these mountpoints early.

i keep the termrc/cpurc mntgens where they are, but ignore the error
prints. this way old kernels will continue to work.

8 years agotlssrv: add -A flag to skip changing user after authentication (usefull for aan)
cinap_lenrek [Sat, 13 Feb 2016 16:24:59 +0000 (17:24 +0100)]
tlssrv: add -A flag to skip changing user after authentication (usefull for aan)

8 years agomerge
cinap_lenrek [Sat, 13 Feb 2016 15:43:15 +0000 (16:43 +0100)]
merge

8 years agorio: fix wrong frame colors when moving non-current window
cinap_lenrek [Sat, 13 Feb 2016 15:36:24 +0000 (16:36 +0100)]
rio: fix wrong frame colors when moving non-current window

When a window is moved or reshaped, that implicitely tops
the window and makes it current. The conseqence of this
is that we always have to redraw the window as if it where
a current window in any case. This was handled for Reshaped
windows, but not when the window was just moved. We now
handle both cases the exact same way, getting rid of the
Moved wctl message.

8 years agoip/chandial: fail with Ebadarg instead of printing memory contents
ftrvxmtrx [Fri, 12 Feb 2016 21:52:50 +0000 (23:52 +0200)]
ip/chandial: fail with Ebadarg instead of printing memory contents

8 years agolibsec: simplify pkcs1_decrypt()
cinap_lenrek [Thu, 11 Feb 2016 21:59:25 +0000 (22:59 +0100)]
libsec: simplify pkcs1_decrypt()

8 years agomerge
cinap_lenrek [Thu, 11 Feb 2016 21:43:50 +0000 (22:43 +0100)]
merge

8 years agolibsec: fix double free in pkcs1_decrypt(), handle bad epm length in tlsSecRSAs(...
cinap_lenrek [Thu, 11 Feb 2016 21:42:28 +0000 (22:42 +0100)]
libsec: fix double free in pkcs1_decrypt(), handle bad epm length in tlsSecRSAs(), cleanup

8 years agoremoving libgio, this is not golang mveery >:-(
cinap_lenrek [Wed, 10 Feb 2016 04:11:11 +0000 (05:11 +0100)]
removing libgio, this is not golang mveery >:-(

8 years agofixed a typo
Matthew Veety [Tue, 9 Feb 2016 22:02:18 +0000 (17:02 -0500)]
fixed a typo

8 years agoImported ngfs libgio. This is a library to create virtual file descriptors, similar...
Matthew Veety [Tue, 9 Feb 2016 21:24:41 +0000 (16:24 -0500)]
Imported ngfs libgio. This is a library to create virtual file descriptors, similar to common lisp grey-streams or golang's io.Reader/io.Writer. Now 95% bug-free.

8 years agofortunes: ./configure CFLAGS="-I$HOME/source/harvey/ape/amd64/include -I$HOME/source...
stanley lieber [Tue, 9 Feb 2016 01:07:56 +0000 (20:07 -0500)]
fortunes: ./configure CFLAGS="-I$HOME/source/harvey/ape/amd64/include -I$HOME/source/harvey/ape/include -mno-red-zone -ffreestanding -fno-builtin -nostdlib -trigraphs -D_SUSV2_SOURCE -D_POSIX_SOURCE -D_LIMITS_EXTENSION -D_BSD_SOURCE -D_BSD_EXTENSION -DHAVE_SOCK_OPTS -DHARVEY -DPlan9" LDFLAGS="-static $HOME/source/harvey/ape/amd64/lib/crt1.o $HOME/source/harvey/ape/amd64/lib/crti.o $HOME/source/harvey/ape/amd64/lib/crtn.o -L$HOME/source/harvey/ape/amd64/lib -L$HOME/source/harvey/amd64/lib" LIBS="-lbsd -lap -lc" LIBM="" --prefix=$HOME/source/harvey/ape/ports *--host=x86_64-linux-gnu --build=x86_64-harvey *--enable-shared=no

8 years agowebfs: faster shutdown using postnote()
cinap_lenrek [Mon, 8 Feb 2016 18:35:26 +0000 (19:35 +0100)]
webfs: faster shutdown using postnote()

when the 9p end is closed, post a note to our private note
group to shoot down http procs. this results in quicker
release of namespace resources.

8 years ago/lib/keyboard: add more crucial symbols
aiju [Sun, 7 Feb 2016 22:40:07 +0000 (23:40 +0100)]
/lib/keyboard: add more crucial symbols

8 years agolibsec: fix missing error case unlock() in tlshands initCiphers()
cinap_lenrek [Sat, 6 Feb 2016 23:31:30 +0000 (00:31 +0100)]
libsec: fix missing error case unlock() in tlshands initCiphers()

8 years agofactotum: fix nil pointer crash on p9skclosekey(), thanks k0ga
cinap_lenrek [Sat, 6 Feb 2016 21:26:29 +0000 (22:26 +0100)]
factotum: fix nil pointer crash on p9skclosekey(), thanks k0ga

oversight, closekey is called again even if addkey failed, which
will have Key.priv nil.

stack trace:

 memset(data=0x0,n=0x1f8)+0x58 /sys/src/libc/arm/memset.s:40
 p9skclosekey(k=0x55358)+0x18 /sys/src/cmd/auth/factotum/p9sk1.c:493
 closekey(k=0x55358)+0x7c /sys/src/cmd/auth/factotum/util.c:247
 ctlwrite(a=0x552f8,atzero=0x0)+0x320 /sys/src/cmd/auth/factotum/rpc.c:503
 fswrite(r=0x53b78)+0x1b0 /sys/src/cmd/auth/factotum/fs.c:574
 swrite(r=0x53b78,srv=0x423e8)+0x134 /sys/src/lib9p/srv.c:559
 srvwork()+0x2a4 /sys/src/lib9p/srv.c:746
 srv(srv=0x423e8)+0xcc /sys/src/lib9p/srv.c:825
 postproc()+0x3c /sys/src/lib9p/post.c:120
 rforker(flag=0x1,fn=0x39f98,arg=0x423e8)+0x34 /sys/src/lib9p/rfork.c:16
 _postmountsrv(s=0x423e8,name=0x0,mtpt=0x46f70,flag=0x1)+0xb8 /sys/src/lib9p/post.c:27
 postmountsrv(name=0x0,mtpt=0x46f70,flag=0x1)+0x20 /sys/src/lib9p/rfork.c:32
 main(argv=0x1fffff9c,argc=0x0)+0x23c /sys/src/cmd/auth/factotum/fs.c:157
 _main+0x28 /sys/src/libc/arm/main9.s:19
 acid: /sys/src/cmd/auth/factotum/p9sk1.c:493

8 years agoadd mathematical angle brackets to /lib/keyboard
aiju [Sat, 6 Feb 2016 19:41:42 +0000 (20:41 +0100)]
add mathematical angle brackets to /lib/keyboard

8 years agolibsec: mpconv -> mpfmt
cinap_lenrek [Sat, 6 Feb 2016 06:19:31 +0000 (07:19 +0100)]
libsec: mpconv -> mpfmt

8 years agolibmp: remove include of libsec.h
mischief [Sat, 6 Feb 2016 03:29:55 +0000 (19:29 -0800)]
libmp: remove include of libsec.h

8 years agolibmp: handle out of memory case in gmfield()
cinap_lenrek [Thu, 4 Feb 2016 02:11:46 +0000 (03:11 +0100)]
libmp: handle out of memory case in gmfield()

8 years agolibsec: refactor asn1 encoding of digest for rsa signatures, fix memory leak in ecverify
cinap_lenrek [Wed, 3 Feb 2016 03:18:54 +0000 (04:18 +0100)]
libsec: refactor asn1 encoding of digest for rsa signatures, fix memory leak in ecverify

8 years agotlssrv: p9any authentication support using TLS-PSK cipher suits
cinap_lenrek [Mon, 1 Feb 2016 21:49:20 +0000 (22:49 +0100)]
tlssrv: p9any authentication support using TLS-PSK cipher suits

8 years agolibsec: ecdsa client support for tlshand, cleanups
cinap_lenrek [Mon, 1 Feb 2016 20:34:49 +0000 (21:34 +0100)]
libsec: ecdsa client support for tlshand, cleanups

8 years agompc: constant expression folding
cinap_lenrek [Mon, 1 Feb 2016 18:27:57 +0000 (19:27 +0100)]
mpc: constant expression folding

8 years agogames/doom: fix white window issue on exit
cinap_lenrek [Sat, 30 Jan 2016 18:11:33 +0000 (19:11 +0100)]
games/doom: fix white window issue on exit

make kbdproc() and mouseproc() share fd table with the main proc
and not explicitely close the file descriptors. so /dev/mouse gets
closed *after* /dev/draw/new to avoid the white window refresh issue.

8 years agosalsa(2): fix source reference
cinap_lenrek [Tue, 19 Jan 2016 12:06:22 +0000 (13:06 +0100)]
salsa(2): fix source reference

8 years agosalsa(2): some formating fixes
cinap_lenrek [Tue, 19 Jan 2016 12:02:12 +0000 (13:02 +0100)]
salsa(2): some formating fixes

8 years agolibsec: add salsa20 stream cipher
cinap_lenrek [Tue, 19 Jan 2016 11:50:33 +0000 (12:50 +0100)]
libsec: add salsa20 stream cipher

8 years agoauthsrv(6): fix arrows
cinap_lenrek [Tue, 19 Jan 2016 10:08:29 +0000 (11:08 +0100)]
authsrv(6): fix arrows

8 years agowifi: check tkip/ccmp mac and crc in constant time avoiding timing side channels
cinap_lenrek [Thu, 14 Jan 2016 22:39:29 +0000 (23:39 +0100)]
wifi: check tkip/ccmp mac and crc in constant time avoiding timing side channels

8 years agopc64: move idle() routine after CALL main(SB) as the comment suggests
cinap_lenrek [Thu, 14 Jan 2016 00:08:36 +0000 (01:08 +0100)]
pc64: move idle() routine after CALL main(SB) as the comment suggests

8 years agopc/pc64: backing out new mp startup code (caused issues with ramnode)
cinap_lenrek [Wed, 13 Jan 2016 22:18:25 +0000 (23:18 +0100)]
pc/pc64: backing out new mp startup code (caused issues with ramnode)

apparently, this causes some quadcore ramnode vm to hang on boot,
even tho all cores successfully started up and are operational.

i suspect some side effect from timersinit()... this would also
mean *notsc= would break it (syncclock() would continue)...
its unclear.

i'm reverting this for now until the problem is better understood.

8 years agodevssl: use tsmemcmp() to compare mac to close timing side channel
cinap_lenrek [Wed, 13 Jan 2016 20:48:09 +0000 (21:48 +0100)]
devssl: use tsmemcmp() to compare mac to close timing side channel

8 years agondb/dnstcp: -x specifies the mountmoint
cinap_lenrek [Tue, 12 Jan 2016 07:53:06 +0000 (08:53 +0100)]
ndb/dnstcp: -x specifies the mountmoint

8 years agofix manpage references
cinap_lenrek [Tue, 12 Jan 2016 07:43:36 +0000 (08:43 +0100)]
fix manpage references

8 years agolibauthsrv: fix ed448 goldilocks prime comment
mischief [Tue, 12 Jan 2016 03:30:41 +0000 (19:30 -0800)]
libauthsrv: fix ed448 goldilocks prime comment

8 years agopc/pc64: bring up ap's one after another, use idlehands() while waiting for thunderbi...
cinap_lenrek [Mon, 11 Jan 2016 05:47:52 +0000 (06:47 +0100)]
pc/pc64: bring up ap's one after another, use idlehands() while waiting for thunderbirdsarego

when testing in qemu, launching each ap became slower and slower
because all the ap's where spinning in syncclock() waiting for
cpu0 to update its mach0->tscticks, which happens only much later
after all cpu's have been started up.

now we wait for each cpu to do its timer callibration and
manually update our tscticks while we wait and each cpu will
not spin but halt while waiting for active.thunderbirdsarego.
this reduces the system load and noise for timer callibration
and makes the mp startup linear with regard to the number of
cores.

8 years agolibauthsrv: add D in mkfile
aiju [Sun, 10 Jan 2016 21:03:27 +0000 (22:03 +0100)]
libauthsrv: add D in mkfile

8 years ago/rc/bin/": fix quoting bug (thanks, aiju and silasm)
stanley lieber [Thu, 7 Jan 2016 20:04:56 +0000 (15:04 -0500)]
/rc/bin/": fix quoting bug (thanks, aiju and silasm)

8 years agopc/pc64: remove mpshutdown print
cinap_lenrek [Thu, 7 Jan 2016 18:37:47 +0000 (19:37 +0100)]
pc/pc64: remove mpshutdown print

8 years agokernel: remove todfix overflow iprint() spam
cinap_lenrek [Thu, 7 Jan 2016 18:37:05 +0000 (19:37 +0100)]
kernel: remove todfix overflow iprint() spam

8 years agoape/stdio: %z format is VLONG on amd64
cinap_lenrek [Thu, 7 Jan 2016 18:20:30 +0000 (19:20 +0100)]
ape/stdio: %z format is VLONG on amd64

8 years agoape/fmt: %p and %z format for amd64
cinap_lenrek [Thu, 7 Jan 2016 18:04:12 +0000 (19:04 +0100)]
ape/fmt: %p and %z format for amd64

8 years agoformat pointer subtraction results with %zd instead of %ld (for long -> intptr on...
cinap_lenrek [Thu, 7 Jan 2016 03:44:13 +0000 (04:44 +0100)]
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)

8 years ago6c: return vlong result for pointer subtraction
cinap_lenrek [Thu, 7 Jan 2016 03:40:47 +0000 (04:40 +0100)]
6c: return vlong result for pointer subtraction

8 years agointroduce signed intptr and %z format modifier for formating uintptr and intptr
cinap_lenrek [Thu, 7 Jan 2016 03:39:09 +0000 (04:39 +0100)]
introduce signed intptr and %z format modifier for formating uintptr and intptr

8 years agoventi/fixarenas: more %z -> %Z
cinap_lenrek [Thu, 7 Jan 2016 02:38:07 +0000 (03:38 +0100)]
venti/fixarenas: more %z -> %Z

8 years agoventi/fixarenas: replace %z fmt with %Z
cinap_lenrek [Thu, 7 Jan 2016 01:27:00 +0000 (02:27 +0100)]
venti/fixarenas: replace %z fmt with %Z

8 years agorx: theres no p9sk2 anymore
cinap_lenrek [Wed, 6 Jan 2016 05:00:22 +0000 (06:00 +0100)]
rx: theres no p9sk2 anymore

8 years agomerge
cinap_lenrek [Wed, 6 Jan 2016 04:31:55 +0000 (05:31 +0100)]
merge

8 years agolibsec: make sure theres no garbage after the asn.1 decode, cleanup
cinap_lenrek [Wed, 6 Jan 2016 04:30:44 +0000 (05:30 +0100)]
libsec: make sure theres no garbage after the asn.1 decode, cleanup

8 years agomerge
cinap_lenrek [Wed, 6 Jan 2016 02:59:40 +0000 (03:59 +0100)]
merge

8 years agoadd missing /sys/src/cmd/auth/lib/private.c
cinap_lenrek [Wed, 6 Jan 2016 02:58:04 +0000 (03:58 +0100)]
add missing /sys/src/cmd/auth/lib/private.c

8 years agoauthsrv(6): english
stanley lieber [Wed, 6 Jan 2016 02:34:15 +0000 (21:34 -0500)]
authsrv(6): english

8 years agoauth: release dp9ik implementation and reentrant factotum
cinap_lenrek [Wed, 6 Jan 2016 02:09:00 +0000 (03:09 +0100)]
auth: release dp9ik implementation and reentrant factotum

8 years agolibmp: silence compiler warning for strtomp
cinap_lenrek [Wed, 6 Jan 2016 00:19:05 +0000 (01:19 +0100)]
libmp: silence compiler warning for strtomp

8 years agopc/pc64: import i210 support from erik quanstrom's 9atom
cinap_lenrek [Tue, 5 Jan 2016 06:53:39 +0000 (07:53 +0100)]
pc/pc64: import i210 support from erik quanstrom's 9atom

8 years agokernel: change active.machs from bitmap to char array to support up to 64 cpus on...
cinap_lenrek [Tue, 5 Jan 2016 04:32:40 +0000 (05:32 +0100)]
kernel: change active.machs from bitmap to char array to support up to 64 cpus on pc64

8 years agofdisk: properly convert byte units K,M,G and T to cylinders/sectors
cinap_lenrek [Tue, 5 Jan 2016 02:57:50 +0000 (03:57 +0100)]
fdisk: properly convert byte units K,M,G and T to cylinders/sectors

the shared command language assumed 512 byte sectors, which is
not the case for fdisk as it uses cylinders for the block unit.
so we introduce an extra argument in the Edit structure and
parseexpr() function so byte sizes are properly converted to
the block unit when the K,M,G and T postfixes are used.

8 years agolibmp: check nil return value of strtomp() in test program
cinap_lenrek [Mon, 4 Jan 2016 18:09:25 +0000 (19:09 +0100)]
libmp: check nil return value of strtomp() in test program

8 years agompc: use new strtomp() c-style prefixes to parse integer constants
cinap_lenrek [Mon, 4 Jan 2016 17:35:04 +0000 (18:35 +0100)]
mpc: use new strtomp() c-style prefixes to parse integer constants

8 years agolibmp: mistake in strtomp()
cinap_lenrek [Mon, 4 Jan 2016 17:33:06 +0000 (18:33 +0100)]
libmp: mistake in strtomp()

8 years agolibmp: support for c-style base prefixes for strtomp(), octal support
cinap_lenrek [Sun, 3 Jan 2016 21:43:44 +0000 (22:43 +0100)]
libmp: support for c-style base prefixes for strtomp(), octal support

8 years agolibsec: implement TLS-PSK for tlsClient()/tlsServer()
cinap_lenrek [Fri, 25 Dec 2015 16:05:05 +0000 (17:05 +0100)]
libsec: implement TLS-PSK for tlsClient()/tlsServer()

8 years agofile: recognize bootable disk images (by 0x55AA boot sector signature)
cinap_lenrek [Wed, 23 Dec 2015 01:31:47 +0000 (02:31 +0100)]
file: recognize bootable disk images (by 0x55AA boot sector signature)

8 years agofile: recognize tcpdump pcap files
cinap_lenrek [Wed, 23 Dec 2015 01:11:29 +0000 (02:11 +0100)]
file: recognize tcpdump pcap files

8 years agosnoopy: fix timestamps for pcap files (thanks BurnZeZ)
cinap_lenrek [Wed, 23 Dec 2015 01:00:09 +0000 (02:00 +0100)]
snoopy: fix timestamps for pcap files (thanks BurnZeZ)

the pcap files produced by snoopy had the wrong timestamps because it expected:

/* magic=0xa1b2c3d4 */
ulong ts_sec; /* seconds*/
ulong ts_usec; /* microseconds */

but we wrote:

uvlong ts; /* nanoseconds */

now, we write:

/* magic=0xa1b23c4d */
ulong ts_sec; /* seconds */
ulong ts_nsec; /* nanoseconds */

8 years agolibjson: added printing support (thanks spew)
cinap_lenrek [Tue, 22 Dec 2015 17:12:56 +0000 (18:12 +0100)]
libjson: added printing support (thanks spew)

8 years agolibjson: fix memory leak setjmp/longjmp problem (thanks spew)
cinap_lenrek [Tue, 22 Dec 2015 16:00:00 +0000 (17:00 +0100)]
libjson: fix memory leak setjmp/longjmp problem (thanks spew)

spew → I fixed the memory leak setjmp/longjmp problem with libjson
spew → http://www.spew.club/json.patch
spew → full file: http://www.spew.club/json.c
spew → going to bed, I'll annoy cinap_lenrek tomorrow to try to get this committed

8 years agotls: implement chacha20/poly1305 aead cipher suits
cinap_lenrek [Mon, 21 Dec 2015 03:55:54 +0000 (04:55 +0100)]
tls: implement chacha20/poly1305 aead cipher suits

8 years agokernel: missing changes for ibrk() prototype
cinap_lenrek [Mon, 21 Dec 2015 03:49:29 +0000 (04:49 +0100)]
kernel: missing changes for ibrk() prototype

8 years agompfmt: handle base 2, 4
aiju [Sun, 20 Dec 2015 12:45:28 +0000 (13:45 +0100)]
mpfmt: handle base 2, 4

8 years agoimport/expoerfs: dont assert() fault when ai->secret is > 8 bytes, just use the first...
cinap_lenrek [Wed, 16 Dec 2015 20:30:56 +0000 (21:30 +0100)]
import/expoerfs: dont assert() fault when ai->secret is > 8 bytes, just use the first 8 bytes

8 years agoauth/httpauth: use auth_userpasswd() instead of AuthHttp request to AS
cinap_lenrek [Wed, 16 Dec 2015 20:27:44 +0000 (21:27 +0100)]
auth/httpauth: use auth_userpasswd() instead of AuthHttp request to AS

the /sys/lib/httppasswords will be removed soon from authsrv,
so we use auth_userpasswd() to verify a username/password pair
instead.

8 years agolibsec: use tsmemcmp() when comparing hashes, use mpfield() for ecc, use mptober...
cinap_lenrek [Wed, 16 Dec 2015 20:23:40 +0000 (21:23 +0100)]
libsec: use tsmemcmp() when comparing hashes, use mpfield() for ecc, use mptober() when right adjusting mpint to bytes

8 years agolibmp: add mpfield() function for fast field arithmetic
cinap_lenrek [Wed, 16 Dec 2015 20:18:20 +0000 (21:18 +0100)]
libmp: add mpfield() function for fast field arithmetic

instead of testing for special field primes each time in mpmod(),
make it explicit with a mpfiled() function that tests a modulus N
to be of some special form that can be reduced more efficiently with
some precalculation, and replaces N with a Mfield* when it can. the
Mfield*'s are recognized by mpmod() as they have the MPfield flag
set and provide a function pointer that executes the fast reduction.

8 years agodevprov: remove unused extern int unfair
cinap_lenrek [Wed, 16 Dec 2015 20:07:24 +0000 (21:07 +0100)]
devprov: remove unused extern int unfair

8 years agokernel: use uintptr for ibrk() return value (for base >2GB) and clarify segbrk(2)
cinap_lenrek [Wed, 16 Dec 2015 20:06:51 +0000 (21:06 +0100)]
kernel: use uintptr for ibrk() return value (for base >2GB) and clarify segbrk(2)

8 years ago/sys/lib/dist/ndb/common: update for sl's auth servers
stanley lieber [Fri, 11 Dec 2015 19:18:06 +0000 (14:18 -0500)]
/sys/lib/dist/ndb/common: update for sl's auth servers

8 years ago/lib/ndb/common: add auth=cb.inri.net authdom=nyc
stanley lieber [Wed, 9 Dec 2015 06:17:41 +0000 (01:17 -0500)]
/lib/ndb/common: add auth=cb.inri.net authdom=nyc

8 years agomp: strtomp support for bases 2,4,8
aiju [Tue, 8 Dec 2015 19:26:17 +0000 (20:26 +0100)]
mp: strtomp support for bases 2,4,8

8 years agomp: fix bug in mplogic.c; update mkfile
aiju [Tue, 8 Dec 2015 18:43:22 +0000 (19:43 +0100)]
mp: fix bug in mplogic.c; update mkfile

8 years agomp: add logic operations; mpfmt: include 0x with #
aiju [Tue, 8 Dec 2015 17:29:22 +0000 (18:29 +0100)]
mp: add logic operations; mpfmt: include 0x with #

8 years agofixed spelling error in 2c(1) for the axp entry.
Matthew Veety [Mon, 7 Dec 2015 23:55:26 +0000 (18:55 -0500)]
fixed spelling error in 2c(1) for the axp entry.

8 years agomade sure that rcmain.local runs independent of the existence of $home/lib/profile...
Matthew Veety [Mon, 7 Dec 2015 22:59:53 +0000 (17:59 -0500)]
made sure that rcmain.local runs independent of the existence  of $home/lib/profile. Documented /rc/lib/rcmain, /rc/lib/rcmain.local, $home/lib/profile in rc(1) and the first two in namespace(4)

8 years agoAdded change to /rc/lib/rcmain to allow execution of /rc/lib/rcmain.local if it exist...
Matthew Veety [Mon, 7 Dec 2015 21:01:09 +0000 (16:01 -0500)]
Added change to /rc/lib/rcmain to allow execution of /rc/lib/rcmain.local if it exists. /rc/lib/rcmain.local is similar to $home/lib/profile in that it will only be executed with -l, but is site-wide.

8 years agoyacc: attempt to keep line numbers right for yyparse()
cinap_lenrek [Mon, 7 Dec 2015 16:00:41 +0000 (17:00 +0100)]
yacc: attempt to keep line numbers right for yyparse()

as the generated parser intermixes lines from .y source
and the parser text, the line source/lineno for yyparse()
shows up wrong in the debugger. to make stack traces a
bit less crazy, put a #line 1 "/sys/lib/yaccpar" before
copying in the parser text.

8 years agomerge
cinap_lenrek [Sun, 6 Dec 2015 19:55:27 +0000 (20:55 +0100)]
merge

8 years agolibmp: fix assert() for mpexp() with nil modulus
cinap_lenrek [Sun, 6 Dec 2015 19:53:54 +0000 (20:53 +0100)]
libmp: fix assert() for mpexp() with nil modulus

8 years agolibmp: fix wrong move instruction for arm vector operations
cinap_lenrek [Sun, 6 Dec 2015 19:52:15 +0000 (20:52 +0100)]
libmp: fix wrong move instruction for arm vector operations

8 years agowinwatch: l allows label changes
aiju [Sun, 6 Dec 2015 19:37:18 +0000 (20:37 +0100)]
winwatch: l allows label changes

8 years agolibmp: mpmod() fix typo
cinap_lenrek [Tue, 1 Dec 2015 10:25:08 +0000 (11:25 +0100)]
libmp: mpmod() fix typo

8 years agolibmp: with mpmod() m = 2^a - c ensure that digits(c) < digits(m)
cinap_lenrek [Tue, 1 Dec 2015 10:13:52 +0000 (11:13 +0100)]
libmp: with mpmod() m = 2^a - c ensure that digits(c) < digits(m)

8 years agomerge
cinap_lenrek [Tue, 1 Dec 2015 08:41:49 +0000 (09:41 +0100)]
merge

8 years agolibsec: fix genprime() to produce normalized result
cinap_lenrek [Tue, 1 Dec 2015 08:40:24 +0000 (09:40 +0100)]
libsec: fix genprime() to produce normalized result

this fixed bug "assert_failed_m-flags__mpnorm_since_283cc2200e34".

8 years agomkone: yacc wants the D
aiju [Mon, 30 Nov 2015 22:36:39 +0000 (23:36 +0100)]
mkone: yacc wants the D

8 years agowebcookies: strdup() file argument to avoid crash (thanks mischief)
cinap_lenrek [Mon, 30 Nov 2015 19:08:22 +0000 (20:08 +0100)]
webcookies: strdup() file argument to avoid crash (thanks mischief)

mischief reports:

 acid: lstk()
 abort()+0x0 /sys/src/libc/9sys/abort.c:6
 ppanic(p=0x1bff4,fmt=0x1d749)+0x146 /sys/src/libc/port/malloc.c:166
         pv=0x1dad8
         msg=0x1e4a8
         v=0x3ffffe7c
         n=0x2f
 D2B(p=0x1bff4,v=0x3fffffae)+0x57 /sys/src/libc/port/pool.c:926
         a=0x3fffffa4
 poolfreel(v=0x3fffffae,p=0x1bff4)+0x20 /sys/src/libc/port/pool.c:1152
         ab=0x1dad8
 poolfree(p=0x1bff4,v=0x3fffffae)+0x3b /sys/src/libc/port/pool.c:1287
 free(v=0x3fffffb6)+0x23 /sys/src/libc/port/malloc.c:250
 readjar(file=0x3fffffb6)+0xce /sys/src/cmd/webcookies.c:473
         jar=0x1ea28
         lock=0x1ea68
         p=0x1ea6d
 main(argv=0x3fffffa0,argc=0x0)+0x10f /sys/src/cmd/webcookies.c:1295
         file=0x3fffffb6
         srv=0x0
         mtpt=0x1cfd0
         _argc=0x66
         _args=0x1cfe0
         home=0x0
 _main+0x31 /sys/src/libc/386/main9.s:16
 acid:

8 years agomerge
cinap_lenrek [Mon, 30 Nov 2015 13:57:16 +0000 (14:57 +0100)]
merge

8 years agokernel: cleanup exit()/shutdown()/reboot() code
cinap_lenrek [Mon, 30 Nov 2015 13:56:00 +0000 (14:56 +0100)]
kernel: cleanup exit()/shutdown()/reboot() code

introduce cpushutdown() function that does the common
operation of initiating shutdown, returning once all
cpu's got the message and are about to shutdown. this
avoids duplicated code which isnt really machine specific.

automatic reboot on panic only when *debug= is not set
and the machine is a cpu server or has no display,
otherwise just hang.

8 years agofplot(1): fix typo
BurnZeZ [Sun, 29 Nov 2015 23:06:55 +0000 (18:06 -0500)]
fplot(1): fix typo