]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
8 years agokbdfs: map Kup/Kdown the same in shift tab (fixes shift-[up]/[down] one-line scroll...
cinap_lenrek [Sun, 13 Mar 2016 20:38:28 +0000 (21:38 +0100)]
kbdfs: map Kup/Kdown the same in shift tab (fixes shift-[up]/[down] one-line scroll in rio over drawterm/vncs)

8 years agolibdraw: don't flush in readmouse() when theres nothing to flush
cinap_lenrek [Sat, 12 Mar 2016 23:03:42 +0000 (00:03 +0100)]
libdraw: don't flush in readmouse() when theres nothing to flush

8 years agoip/gping: ignore advice, fix packet corruption check, remove dead code
cinap_lenrek [Sat, 12 Mar 2016 22:27:49 +0000 (23:27 +0100)]
ip/gping: ignore advice, fix packet corruption check, remove dead code

8 years agodevip: handle ignoreadvice flag for all protocols
cinap_lenrek [Sat, 12 Mar 2016 22:07:58 +0000 (23:07 +0100)]
devip: handle ignoreadvice flag for all protocols

8 years agovncs: parse screenid as long, not short: BGSHORT() -> BGLONG()
cinap_lenrek [Sat, 12 Mar 2016 21:36:00 +0000 (22:36 +0100)]
vncs: parse screenid as long, not short: BGSHORT() -> BGLONG()

8 years agolibdraw: remove flushimage calls from fontresize() and loadchar()
cinap_lenrek [Sat, 12 Mar 2016 21:01:43 +0000 (22:01 +0100)]
libdraw: remove flushimage calls from fontresize() and loadchar()

8 years agoip/gping: set display->locking before starting mouseproc (race)
cinap_lenrek [Sat, 12 Mar 2016 20:44:58 +0000 (21:44 +0100)]
ip/gping: set display->locking before starting mouseproc (race)

8 years agolibsec: remove weakCipher[] array check as we do not support any of these weak ciphers
cinap_lenrek [Sat, 12 Mar 2016 12:24:46 +0000 (13:24 +0100)]
libsec: remove weakCipher[] array check as we do not support any of these weak ciphers

8 years agomothra: dynamically allocate buffer for refresh url (was 20 bytes stack buffer before...
cinap_lenrek [Fri, 11 Mar 2016 20:46:49 +0000 (21:46 +0100)]
mothra: dynamically allocate buffer for refresh url (was 20 bytes stack buffer before) (thanks BurnZeZ for reporting)

8 years agolibvorbis: update to 1.3.5
ftrvxmtrx [Thu, 10 Mar 2016 21:43:00 +0000 (22:43 +0100)]
libvorbis: update to 1.3.5

8 years agomake kernel UTFmax and Runemax consistent with libc (21-bit runes) (thanks maurice)
cinap_lenrek [Thu, 10 Mar 2016 19:02:36 +0000 (20:02 +0100)]
make kernel UTFmax and Runemax consistent with libc (21-bit runes) (thanks maurice)

8 years agomerge
cinap_lenrek [Thu, 10 Mar 2016 18:03:28 +0000 (19:03 +0100)]
merge

8 years agoaan: handle case when reader closes netfd
cinap_lenrek [Thu, 10 Mar 2016 17:50:29 +0000 (18:50 +0100)]
aan: handle case when reader closes netfd

when netfd is closed and set to -1 by the fromnet()
reader proc, handle it like network failure and try
reconnecting.

8 years agodevcons: nil vs 0
cinap_lenrek [Thu, 10 Mar 2016 02:28:36 +0000 (03:28 +0100)]
devcons: nil vs 0

8 years agokernel: make fversion()/mntversion() types consistent
cinap_lenrek [Thu, 10 Mar 2016 02:02:28 +0000 (03:02 +0100)]
kernel: make fversion()/mntversion() types consistent

8 years agodevtls: fix wrong iounit
cinap_lenrek [Wed, 9 Mar 2016 18:54:33 +0000 (19:54 +0100)]
devtls: fix wrong iounit

devtls writes are only atomic up to MaxRecLen as this is the
maximum payload size we put in a record application message.

8 years agorio, libdraw: experimental removal of redundant flushimage() calls for roundtrip...
cinap_lenrek [Tue, 8 Mar 2016 15:45:29 +0000 (16:45 +0100)]
rio, libdraw: experimental removal of redundant flushimage() calls for roundtrip latency reduction

- remove redundant flushimage() calls before readmouse()
- remove flushimage() calls for allocimage(),freeimage() and originwindow()

this is experimental. it will break allocimage() error handling unless the
caller does explicit flushimage() calls, tho the gains
in usability over high latency connections is huge. in most cases, programs
will just terminate when encountering these errors.

8 years agoaan: use sync messages as keep alives
cinap_lenrek [Mon, 7 Mar 2016 19:27:34 +0000 (20:27 +0100)]
aan: use sync messages as keep alives

both server and client need to be convinced that the connection
is broken for a connection reestablishment to happen as the server
will only start looking for incoming clients when the connection
already broke. so use the 8 second interval sync messages
to check for connection lifeness. if we miss two syncs in time,
we declare the connecton to be broken and will try to reconnect.

8 years agovncs: fix dead Kend key
cinap_lenrek [Mon, 7 Mar 2016 18:20:05 +0000 (19:20 +0100)]
vncs: fix dead Kend key

8 years ago9/mkfile: update ARCH
ftrvxmtrx [Sat, 5 Mar 2016 10:38:54 +0000 (11:38 +0100)]
9/mkfile: update ARCH

8 years agolibFLAC/mkfile: -DFLAC__NO_ASM
ftrvxmtrx [Sat, 5 Mar 2016 10:00:00 +0000 (11:00 +0100)]
libFLAC/mkfile: -DFLAC__NO_ASM

8 years agolibFLAC: update to 1.3.1
ftrvxmtrx [Sat, 5 Mar 2016 09:32:47 +0000 (10:32 +0100)]
libFLAC: update to 1.3.1

8 years agoauth/pemencode: fix usage()
BurnZeZ [Wed, 2 Mar 2016 02:27:37 +0000 (21:27 -0500)]
auth/pemencode: fix usage()

8 years agodict: similar fixes, different files. also remove runescpy
BurnZeZ [Wed, 2 Mar 2016 02:24:35 +0000 (21:24 -0500)]
dict: similar fixes, different files. also remove runescpy

8 years agodict mkindex: code cleanup
BurnZeZ [Wed, 2 Mar 2016 02:21:06 +0000 (21:21 -0500)]
dict mkindex: code cleanup
handle malloc failure
check if open failed _before_ seeking
better arg handling

8 years agoplot: handle create() failure
BurnZeZ [Wed, 2 Mar 2016 00:40:14 +0000 (19:40 -0500)]
plot: handle create() failure

8 years agomap/libmap: remove unused function/definitions
BurnZeZ [Wed, 2 Mar 2016 00:36:24 +0000 (19:36 -0500)]
map/libmap: remove unused function/definitions

8 years agovt: add -r flag to start in raw mode
BurnZeZ [Wed, 2 Mar 2016 00:17:54 +0000 (19:17 -0500)]
vt: add -r flag to start in raw mode

8 years agosort: code cleanup
BurnZeZ [Wed, 2 Mar 2016 00:09:40 +0000 (19:09 -0500)]
sort: code cleanup

8 years agocc: populate the flag list comment in lex.c
BurnZeZ [Wed, 2 Mar 2016 00:00:41 +0000 (19:00 -0500)]
cc: populate the flag list comment in lex.c
This way the various compiler flags are documented
somewhere, even if not in full.

Also fixed a typo. 'r' should have been 'R'

8 years agocc: sort the lex.c comment listing debug flags
BurnZeZ [Tue, 1 Mar 2016 23:12:04 +0000 (18:12 -0500)]
cc: sort the lex.c comment listing debug flags

8 years agopppoe: Avoid double free (thanks k0ga)
cinap_lenrek [Tue, 1 Mar 2016 22:54:37 +0000 (23:54 +0100)]
pppoe: Avoid double free (thanks k0ga)

k0ga reports:

Hello,

While I was setting my pppoe conexion with my ISP
I discovered several problems in ip/pppoe. I used
the command line ip/pppoe -A '' ether0 and I got
this:

...
dropping unwanted pkt: wrong ac name
panic: D2B called on non-block dc10 (double-free?)
note rcved: sys: trap: fault read addr=0x0 pc=0x000066e1
pppoe 1013: suicide: sys: trap: fault read addr=0x0 pc=0x000066e1
cpu% acid 1013
/proc/1013/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
acid: stk()
abort()+0x0 /sys/src/libc/9sys/abort.c:6
ppanic(p=0xd1b8,fmt=0xc7f9)+0x146 /sys/src/libc/port/malloc.c:166
D2B(p=0xd1b8,v=0xdc10)+0x57 /sys/src/libc/port/pool.c:926
poolfreel(v=0xdc10,p=0xd1b8)+0x20 /sys/src/libc/port/pool.c:1152
poolfree(p=0xd1b8,v=0xdc10)+0x3b /sys/src/libc/port/pool.c:1287
free(v=0xdc18)+0x23 /sys/src/libc/port/malloc.c:250
clearstate()+0x1b /sys/src/cmd/ip/pppoe.c:328
pppoe(ether=0xdfffefc1)+0x123 /sys/src/cmd/ip/pppoe.c:426
main(argv=0xdfffefa0,argc=0x1)+0x89 /sys/src/cmd/ip/pppoe.c:100
_main+0x31 /sys/src/libc/386/main9.s:16
acid:

clearstate() is called in pppoe.c:424, and it frees acname and sets it
to nil.  pktread() is called in pppoe.c:434 with parameter wantoffer,
which frees acname again in line pppoe.c:360 but doesn't set it to
nil, so clearstate() makes a double free in the next iteration.

8 years agofix /lib/keyboard spacing
BurnZeZ [Tue, 1 Mar 2016 22:30:42 +0000 (17:30 -0500)]
fix /lib/keyboard spacing

8 years agoadd a couple runes to /lib/keyboard
BurnZeZ [Tue, 1 Mar 2016 22:29:38 +0000 (17:29 -0500)]
add a couple runes to /lib/keyboard

8 years agoadd bug to yesterday(1), fix /sys/man/3/cons permissions
BurnZeZ [Tue, 1 Mar 2016 20:27:39 +0000 (15:27 -0500)]
add bug to yesterday(1), fix /sys/man/3/cons permissions

8 years agomanpage references/typos
BurnZeZ [Tue, 1 Mar 2016 20:24:07 +0000 (15:24 -0500)]
manpage references/typos

8 years agolibsec: fix verifyDHparams() for version <= TLS1.1
cinap_lenrek [Tue, 1 Mar 2016 10:30:01 +0000 (11:30 +0100)]
libsec: fix verifyDHparams() for version <= TLS1.1

for version <= TLS1.1, there is no sigalg field in the ServerKeyExchange
message and the signature digest algorithm is fixed to md5+sha1 and we
only support RSA signatures (TLS1.1 doesnt know about ECDSA).

8 years agoglenda's default profile: remove /n/other mount, done by /lib/namespace
cinap_lenrek [Sun, 28 Feb 2016 23:25:14 +0000 (00:25 +0100)]
glenda's default profile: remove /n/other mount, done by /lib/namespace

8 years agoauthsrv(2): document _asgetpakkey(), authpak_hash(), authpak_new(), authpak_finish()
cinap_lenrek [Sun, 28 Feb 2016 22:23:05 +0000 (23:23 +0100)]
authsrv(2): document _asgetpakkey(), authpak_hash(), authpak_new(), authpak_finish()

8 years agogames/doom: handle allocimage() failure
cinap_lenrek [Sun, 28 Feb 2016 10:44:53 +0000 (11:44 +0100)]
games/doom: handle allocimage() failure

8 years agolibsec: have 16 32-bit words in DigestState to avoid out of bounds warnings for poly1305
cinap_lenrek [Sun, 28 Feb 2016 08:09:41 +0000 (09:09 +0100)]
libsec: have 16 32-bit words in DigestState to avoid out of bounds warnings for poly1305

8 years agodevdraw: remove unused Edepth[]
cinap_lenrek [Sun, 28 Feb 2016 02:06:42 +0000 (03:06 +0100)]
devdraw: remove unused Edepth[]

8 years agolibdraw: remove unused static log2[] array
cinap_lenrek [Sun, 28 Feb 2016 00:38:29 +0000 (01:38 +0100)]
libdraw: remove unused static log2[] array

8 years agorio: exit rio when /dev/cons or /dev/kbd read loop terminates
cinap_lenrek [Sat, 27 Feb 2016 01:39:45 +0000 (02:39 +0100)]
rio: exit rio when /dev/cons or /dev/kbd read loop terminates

8 years agokbdfs: read outer /dev/kbd file and use it just like /dev/kbdin
cinap_lenrek [Sat, 27 Feb 2016 01:36:54 +0000 (02:36 +0100)]
kbdfs: read outer /dev/kbd file and use it just like /dev/kbdin

this allows running kbdfs under kbdfs :-)

going use this in new drawterm. drawterm provides the initial
/dev/kbd, but only sends rune up/down messages (keeps it simple).
the servers kbdfs reads that and exports itself the full
set of files, similar to what we do in vncs. this also
provides note processing.

8 years agorcpu: post hangup note to remote when connection breaks
cinap_lenrek [Sat, 27 Feb 2016 01:08:00 +0000 (02:08 +0100)]
rcpu: post hangup note to remote when connection breaks

when the cat that forwards notes on the remote exits,
send a hangup note so processes wont keep hanging arround.

8 years agorcpu(1): fix manpage reference
cinap_lenrek [Mon, 22 Feb 2016 22:26:35 +0000 (23:26 +0100)]
rcpu(1): fix manpage reference

8 years agolibauthsrv: can write p = 2^448 - 2^224 - 1 now, as mpc has constant folding.
cinap_lenrek [Mon, 22 Feb 2016 21:56:55 +0000 (22:56 +0100)]
libauthsrv: can write p = 2^448 - 2^224 - 1 now, as mpc has constant folding.

8 years agolibfis: dont reject drives lacking SSP (sata ssd connected to ide with adapter)
cinap_lenrek [Mon, 22 Feb 2016 21:53:19 +0000 (22:53 +0100)]
libfis: dont reject drives lacking SSP (sata ssd connected to ide with adapter)

8 years agondb/dns: initialize unknown fids to point to the root qid
cinap_lenrek [Mon, 22 Feb 2016 21:44:01 +0000 (22:44 +0100)]
ndb/dns: initialize unknown fids to point to the root qid

the dns file service can be restarted, which causes it to forget
all fid state. given the simple file system structure of the dns
service (just a single dns file), we can assume that rpcs
on a unknown fid refers to the root, so the mountpoint will stay
valid and /net/dns can be reopend avoiding the need for a remount
of the dns service after restart.

8 years agorc: terminate rc when exec fails, cleanup
cinap_lenrek [Mon, 22 Feb 2016 21:25:21 +0000 (22:25 +0100)]
rc: terminate rc when exec fails, cleanup

The execexec() function should never return, as it irreversably changes
the filedescriptor table for the new program. This means rc's internal
filedesciptors for reading the script get implicitely closed and we cannot
continue the rc interpreter when Execute() fails. So Execute() now sets the
error status, and execexec() runs Xexit() in case Execute() returns.

8 years agosmtpd: remove unused lastsender logic
cinap_lenrek [Mon, 22 Feb 2016 20:55:41 +0000 (21:55 +0100)]
smtpd: remove unused lastsender logic

8 years agofactotum: fix memory leak for p9any key confirmation, fix key handling for role=client
cinap_lenrek [Mon, 22 Feb 2016 19:55:51 +0000 (20:55 +0100)]
factotum: fix memory leak for p9any key confirmation, fix key handling for role=client

when we look up role=speakfor key and askforkeys is set, the
findkey() can return RpcNeedkey, which causes us to skip the
query for a role=client key. Instead, we now check for the
return value != RpcOk (and != RpcConfirm which we want to
handle the same for both queries).

we have to free the attribute lists when returning RpcConfirm.

8 years agostats: use rimport or import to mount remote system
cinap_lenrek [Mon, 22 Feb 2016 18:38:01 +0000 (19:38 +0100)]
stats: use rimport or import to mount remote system

8 years agoexportfs: fix endless loop for eof/error on second read in localread9pmsg()
cinap_lenrek [Sun, 21 Feb 2016 19:11:04 +0000 (20:11 +0100)]
exportfs: fix endless loop for eof/error on second read in localread9pmsg()

the ini buffer was not reset when we got eof in the message
body read causing a endless loop. instead of defining our
own read9pmsg() function, just handle the first read specially
when we consumed the first 4 bytes for the "impo" protocol
escape check.

8 years agofix ipv6 icmphostunr() locking and memory free bugs (from sources)
cinap_lenrek [Sun, 21 Feb 2016 15:36:41 +0000 (16:36 +0100)]
fix ipv6 icmphostunr() locking and memory free bugs (from sources)

8 years agosgi: add chmod to bootfs.proto for sgi kernel
cinap_lenrek [Sat, 20 Feb 2016 15:39:52 +0000 (16:39 +0100)]
sgi: add chmod to bootfs.proto for sgi kernel

8 years agolibsec: remove unused tlsSecKill()
cinap_lenrek [Fri, 19 Feb 2016 08:14:09 +0000 (09:14 +0100)]
libsec: remove unused tlsSecKill()

8 years agolibsec: fix memset() size in tlsConnectionFree(), remove #include <bio.h>
cinap_lenrek [Thu, 18 Feb 2016 17:42:04 +0000 (18:42 +0100)]
libsec: fix memset() size in tlsConnectionFree(), remove #include <bio.h>

8 years agolibsec: add libc.h include for aes_xts.c (drawterm)
cinap_lenrek [Wed, 17 Feb 2016 17:50:23 +0000 (18:50 +0100)]
libsec: add libc.h include for aes_xts.c (drawterm)

8 years agorcpu(1) man page: english
stanley lieber [Wed, 17 Feb 2016 01:53:21 +0000 (20:53 -0500)]
rcpu(1) man page: english

8 years agondb/dns: removing the buggy /net.alt remount hack
cinap_lenrek [Tue, 16 Feb 2016 18:06:54 +0000 (19:06 +0100)]
ndb/dns: removing the buggy /net.alt remount hack

8 years agousbuhci: removing "uhci bug" print spam from interrupt handler
cinap_lenrek [Tue, 16 Feb 2016 07:52:33 +0000 (08:52 +0100)]
usbuhci: removing "uhci bug" print spam from interrupt handler

this code was if(0) for a long time due to wrong parentesis,
fixed parentesis cause print spam on some machines making them
unusage (kenji okomoto). removing the check alltogether.

8 years agoprovide rcpu(1), make usage line consistent
cinap_lenrek [Mon, 15 Feb 2016 16:30:56 +0000 (17:30 +0100)]
provide rcpu(1), make usage line consistent

8 years agodevmnt: deal with partial response for Tversion request in mntversion()
cinap_lenrek [Mon, 15 Feb 2016 00:03:44 +0000 (01:03 +0100)]
devmnt: deal with partial response for Tversion request in mntversion()

8 years agocron: just run /bin/rx to execute remote commands
cinap_lenrek [Sun, 14 Feb 2016 04:59:42 +0000 (05:59 +0100)]
cron: just run /bin/rx to execute remote commands

8 years agorx: rcpu service support
cinap_lenrek [Sun, 14 Feb 2016 04:37:55 +0000 (05:37 +0100)]
rx: rcpu service support

8 years agoadding experimental rcpu service
cinap_lenrek [Sun, 14 Feb 2016 04:18:33 +0000 (05:18 +0100)]
adding experimental rcpu service

this is a reimplementation of cpu and import utilities in rc using a tlsclient
and tlssrv as the encryption and authentication layers. there is only one new
service, which after authentication and encryption setup accepts an arbitrary
rc script over the network and executes it with the standard filedescriptors
redirected to the conversaion (this is *after* authentication and in the
context of the authorized user).

the new rcpu program has a few improvements over cpu(1):

- doesnt mangle program arguments
- the remote process will get the clients standard file descriptors, so error
  and output are separated and you can consume the clients input from the
  remote side :-)
- forwards error status of remote process

theres no backwards mode for rimport, but a new program called rexport
for the same purpose.

all these services use exportfs without the bolted on initial handshake,
so the hope is to clean up exportfs in the future and remove all the ugly
crap in there.

8 years agoexportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)
cinap_lenrek [Sun, 14 Feb 2016 03:49:48 +0000 (04:49 +0100)]
exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)

8 years agoexportfs: properly reply to chdir() error when we speak 9p
cinap_lenrek [Sun, 14 Feb 2016 03:48:48 +0000 (04:48 +0100)]
exportfs: properly reply to chdir() error when we speak 9p

when we got a bad root tree, we should speak the right language
and return a Rerror response instead of crapping ascii into
the 9p conversation.

8 years agotlsclient: add -o option to establish connection over a file, free the AuthInfo struc...
cinap_lenrek [Sun, 14 Feb 2016 01:06:08 +0000 (02:06 +0100)]
tlsclient: add -o option to establish connection over a file, free the AuthInfo structure to avoid leaking secrets

8 years agonewuser: /n/other now handled in /lib/namespace
cinap_lenrek [Sun, 14 Feb 2016 00:52:51 +0000 (01:52 +0100)]
newuser: /n/other now handled in /lib/namespace

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