summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-07made sure that rcmain.local runs independent of the existence of ↵Matthew Veety
$home/lib/profile. Documented /rc/lib/rcmain, /rc/lib/rcmain.local, $home/lib/profile in rc(1) and the first two in namespace(4)
2015-12-07Added change to /rc/lib/rcmain to allow execution of /rc/lib/rcmain.local if ↵Matthew Veety
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.
2015-12-07yacc: attempt to keep line numbers right for yyparse()cinap_lenrek
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.
2015-12-06mergecinap_lenrek
2015-12-06libmp: fix assert() for mpexp() with nil moduluscinap_lenrek
2015-12-06libmp: fix wrong move instruction for arm vector operationscinap_lenrek
2015-12-06winwatch: l allows label changesaiju
2015-12-01libmp: mpmod() fix typocinap_lenrek
2015-12-01libmp: with mpmod() m = 2^a - c ensure that digits(c) < digits(m)cinap_lenrek
2015-12-01mergecinap_lenrek
2015-12-01libsec: fix genprime() to produce normalized resultcinap_lenrek
this fixed bug "assert_failed_m-flags__mpnorm_since_283cc2200e34".
2015-11-30mkone: yacc wants the Daiju
2015-11-30webcookies: strdup() file argument to avoid crash (thanks mischief)cinap_lenrek
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:
2015-11-30mergecinap_lenrek
2015-11-30kernel: cleanup exit()/shutdown()/reboot() codecinap_lenrek
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.
2015-11-29fplot(1): fix typoBurnZeZ
2015-11-27fortunes: If you get this, delete it. - Sorry! -- Tim Berners-Lee, www-talk, ↵stanley lieber
Mon, 28 Oct 91 14:34:12 GMT+0100
2015-11-27fplot(1): add BUGS sectionstanley lieber
2015-11-26libsec: add chacha20 poly1305 aead, allow 64 bit iv's for chacha, add tsmemcmp()cinap_lenrek
chacha20 comes in two variants: ietf rfc7539, using 96 bit iv and 32 bit counter and draft-agl-tls-chacha20poly1305 using 64 bit iv and a 64 bit counter. so setupChachastate() now takes a ivlen argument which sets the mode. add ccpoly_encrypt()/ccpoly_decrypt() routines. to implement timing safe ccpoly_decrypt(), a constant time memcmp was needed, so adding tsmemcmp() to libsec.
2015-11-25mpc: mpc.c is generated by yacc, so remove it on mk cleanBurnZeZ
2015-11-25rio: allow reading the image of a hidden window thru the window filecinap_lenrek
2015-11-25rio: fix handling "resize" wctl for hidden windowscinap_lenrek
when the "resize" wctl was used on a hidden window, the window was put back on the screen, however, it was not removed from the hidden[] array so trying to hide the window again failed because whide() assumed it was already hidden. the fix is to not unhide the window, but preserve the hidden state, so windows can programmatically be reshaped and moved, but will remain hidden unless explicitely unhidden.
2015-11-24disksim: don't assume 4-byte pointerscinap_lenrek
2015-11-23rio: stop serving kbdin file (thanks eekee)cinap_lenrek
kbdfs already provides a /dev/kbdin file for the system, rio does not need to provide one for the onscreen keyboard anymore.
2015-11-22add mpc(1), extended precision code generatorcinap_lenrek
2015-11-22bootrc: remove usbwait hack, usbd/nusbrc are now synchronous by previous commitcinap_lenrek
2015-11-22usbd: intoruce /env/usbbusycinap_lenrek
to solve the usb device enumeration race on boot, usbd creates /env/usbbusy on startup and once all devices have been enumerated and readers have consumed all the events, we remove the file so nusbrc/bootrc can continue. this makes sure all the usb devices that where plugged in on boot are made available.
2015-11-22devenv: fix ORCLOSE handlingcinap_lenrek
when opening a /env file ORCLOSE, and the process exits, envgrp() would return nil can crash in envremove() because procexit will have set up->egrp to nil before calling closefgrp(). the solution is to capture the environment on open, keeping a reference in Chan.aux, so it doesnt matter on what process the close happens and a env chan will always refer to its original environment group.
2015-11-21libmp: initial attempt at constant time code, faster reductions for special ↵cinap_lenrek
primes (for ecc) introduce MPtimesafe flag to request time invariant computation disables normalization so significant digits are not leaked.
2015-11-20remove dunning-krugerrand codeaiju
2015-11-20libmp: fix test programcinap_lenrek
2015-11-20libmp: add mpvecadd()/mpvecsub() assembly versions for armcinap_lenrek
2015-11-20libmp: 386/amd64 mpvec*(): replace conditional branches with ADC/SBB ↵cinap_lenrek
instructions
2015-11-069fs: add case 9frontstanley lieber
2015-11-06mergecinap_lenrek
2015-11-06kernel: use nicer check in okaddr(), wet floor signs in fixfault()cinap_lenrek
instead of checking addr+len >= addr, check len >= -addr so that addr == 0 is never valid for len > 0 even if we decide to have memory at the zero page so theres never any chance user can pass in "nil" pointers. put up some signs where we fall thru the switch cases in fixfault()
2015-11-06mergecinap_lenrek
2015-11-06kernel: fix okaddr() checkcinap_lenrek
2015-11-029fs: add 9pio case for unauthenticated connections to 9p.io.stanley lieber
2015-11-01mergecinap_lenrek
2015-11-01libmp: optimize case x/0xffffffff in mpdigdiv() (helps arm)cinap_lenrek
2015-11-01libmp: add mpvecdigmuladd()/mpvecdigmulsub() assembly routines for armcinap_lenrek
2015-11-015c: handle (rare) MULU instruction in peephole optimizercinap_lenrek
2015-10-31fortunes: [9fans] FUSE on Plan9stanley lieber
2015-10-31delkey(1): update man page to reflect recent changes.stanley lieber
2015-10-30delkey: don't be stupidaiju
2015-10-28devtls: reject SHA2_256 mac for SSL, but TLS is finecinap_lenrek
sha256 is only defined for TLS1.2, however, technically, theres no reason not to use it in TLS1.0/TLS1.1. the choice is up to tlshand and pushtls, not the kernel.
2015-10-28mp(2): fix typo mnprand() -> mpnrand()cinap_lenrek
2015-10-25ascii: replace mnemonic np (new page) with ff (form feed) for consistencyBurnZeZ
2015-10-24rio: fix scrolling when cursor is above windowBurnZeZ