]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
10 years agofortunes: AFTER READ THE PAGE YOU UNDRSTAND WHAT IM TALKING TO YOU !
stanley lieber [Mon, 4 Nov 2013 01:01:52 +0000 (20:01 -0500)]
fortunes: AFTER READ THE PAGE YOU UNDRSTAND WHAT IM TALKING TO YOU !

10 years agoaml(2): english
stanley lieber [Mon, 4 Nov 2013 01:01:03 +0000 (20:01 -0500)]
aml(2): english

10 years agoaml(2): fix amldelay() decscription. it takes microseconds, not milliseconds.
cinap_lenrek [Sun, 3 Nov 2013 23:09:28 +0000 (00:09 +0100)]
aml(2): fix amldelay() decscription. it takes microseconds, not milliseconds.

10 years agoadd aml(2) manual page
cinap_lenrek [Sun, 3 Nov 2013 21:13:03 +0000 (22:13 +0100)]
add aml(2) manual page

10 years agorio: do backspace \b processing inplace avoiding buffer allocation
cinap_lenrek [Sun, 3 Nov 2013 03:03:38 +0000 (04:03 +0100)]
rio: do backspace \b processing inplace avoiding buffer allocation

10 years agorio: cleanup and error handling
cinap_lenrek [Sat, 2 Nov 2013 23:34:35 +0000 (00:34 +0100)]
rio: cleanup and error handling

10 years agorio: huge simplification of flush handling
cinap_lenrek [Sat, 2 Nov 2013 16:54:42 +0000 (17:54 +0100)]
rio: huge simplification of flush handling

xfidflush() now uses a simpler way to flush another xfid.

when we can send to Xfid.c channel, we know that the
xfid is completed. so all xfidflush() needs todo is to
do an alt sending to both Xfid.c and Xfid.flushc.

once the send to Xfid.c succeeds, we know the xfid is gone
and we can respond to the flush request.

theres no need to keep track of flush state anymore. so
Xfid.active and Xfid.flushing can be removed.

note, that it is ok to respond normally to a currently
flushed request.

10 years agorio: add sanity check in xfidallocthread()
cinap_lenrek [Fri, 1 Nov 2013 20:28:03 +0000 (21:28 +0100)]
rio: add sanity check in xfidallocthread()

10 years agorio: enforce flush reply ordering for all xfids
cinap_lenrek [Fri, 1 Nov 2013 20:21:24 +0000 (21:21 +0100)]
rio: enforce flush reply ordering for all xfids

flushing isnt optional for concurrently handled requests.
we need to ensure that Rflush is replied *after* the
origianl request.

so we assign the flushtag for *every* xfid in xfidctl(),
and filsysrespond() checks if the xfid was flushed
*after* replying and wakes up the flushing xfid.

10 years agorio: properly handle follow up flushes (fixes unexpected reply tag)
cinap_lenrek [Fri, 1 Nov 2013 17:57:11 +0000 (18:57 +0100)]
rio: properly handle follow up flushes (fixes unexpected reply tag)

when multiple flushes are send, they need to be replied
in order. we ensure this by having the flush xfid taking
over the flushtag (synchronized with a new fs->csyncflush
channel) so the next flush will flush the previous flush.

10 years agomake auto negotiation work on 82562et (thanks mischief!)
cinap_lenrek [Fri, 1 Nov 2013 22:39:41 +0000 (23:39 +0100)]
make auto negotiation work on 82562et (thanks mischief!)

the diver used to skip auto negotiation when
auto-negotiation enable (bit 12 in command register)
was clear.

setting the bit now, which makes auto negotiation work.

we skip auto negotiation only when it was already enabled
and status regiser indicates completion (bit 9).

10 years agofix format compiler warning
cinap_lenrek [Thu, 31 Oct 2013 14:51:15 +0000 (15:51 +0100)]
fix format compiler warning

10 years agokernel: add support for multiboot memory map
cinap_lenrek [Thu, 31 Oct 2013 14:50:25 +0000 (15:50 +0100)]
kernel: add support for multiboot memory map

10 years agolibplumb: search for plumber only at /mnt/plumb, and don't try to mount $plumbsrv...
BurnZeZ [Thu, 31 Oct 2013 08:26:01 +0000 (04:26 -0400)]
libplumb: search for plumber only at /mnt/plumb, and don't try to mount $plumbsrv if the search fails

10 years agosmtp: fix free on uninitialized pointer
BurnZeZ [Wed, 30 Oct 2013 07:12:53 +0000 (03:12 -0400)]
smtp: fix free on uninitialized pointer

10 years agofix devshr related panic caused by Mount.to being nil (thanks mischief!)
cinap_lenrek [Wed, 30 Oct 2013 20:24:44 +0000 (21:24 +0100)]
fix devshr related panic caused by Mount.to being nil (thanks mischief!)

the shr mount is linked into the Mhead with m->to initially nil. only
after the the server has been attached is m->to set. just check for
it in createdir().

10 years agoinit: dont rely on path containing dot
cinap_lenrek [Tue, 29 Oct 2013 23:38:12 +0000 (00:38 +0100)]
init: dont rely on path containing dot

10 years agoplay: guess file type from file extension if mimetype fails
cinap_lenrek [Tue, 29 Oct 2013 23:09:27 +0000 (00:09 +0100)]
play: guess file type from file extension if mimetype fails

10 years agovt: discard unhandle OSC escapes, and use nelem instead of sizeof for title buffer
mischief [Mon, 28 Oct 2013 09:13:35 +0000 (02:13 -0700)]
vt: discard unhandle OSC escapes, and use nelem instead of sizeof for title buffer

10 years agolibjson: fix missing buffer free, slight cleanup
BurnZeZ [Mon, 28 Oct 2013 07:17:53 +0000 (03:17 -0400)]
libjson: fix missing buffer free, slight cleanup

10 years agolibjson: dynamically allocate buffer
BurnZeZ [Tue, 29 Oct 2013 03:21:07 +0000 (23:21 -0400)]
libjson: dynamically allocate buffer

10 years agorsa2ssh: fix the megashit
cinap_lenrek [Mon, 28 Oct 2013 08:20:07 +0000 (09:20 +0100)]
rsa2ssh: fix the megashit

10 years agoauth/rsa2ssh: add SSH2 RSA output format (from plan9port)
mischief [Mon, 28 Oct 2013 01:50:14 +0000 (18:50 -0700)]
auth/rsa2ssh: add SSH2 RSA output format (from plan9port)

10 years agocmd/vt: fix xterm function keys
mischief [Mon, 28 Oct 2013 01:40:21 +0000 (18:40 -0700)]
cmd/vt: fix xterm function keys

10 years agolibjson: fix mistake... (harmless)
cinap_lenrek [Mon, 28 Oct 2013 00:24:03 +0000 (01:24 +0100)]
libjson: fix mistake... (harmless)

10 years agolibjson: fix for 21 bit runes, implement utf-16 surrogates
cinap_lenrek [Mon, 28 Oct 2013 00:19:01 +0000 (01:19 +0100)]
libjson: fix for 21 bit runes, implement utf-16 surrogates

10 years agolibjson: fix mistake in unicode handler (thanks cinap)
BurnZeZ [Sun, 27 Oct 2013 23:29:02 +0000 (19:29 -0400)]
libjson: fix mistake in unicode handler (thanks cinap)

10 years agolibjson: handle unicode escapes
BurnZeZ [Sun, 27 Oct 2013 19:52:35 +0000 (15:52 -0400)]
libjson: handle unicode escapes

10 years agomake libjson from /sys/src/cmd/btc/json.c
BurnZeZ [Sun, 27 Oct 2013 19:44:33 +0000 (15:44 -0400)]
make libjson from /sys/src/cmd/btc/json.c

10 years agovt: remove defunct hp terminal emulation
cinap_lenrek [Sun, 27 Oct 2013 18:09:13 +0000 (19:09 +0100)]
vt: remove defunct hp terminal emulation

10 years agovt: utf-8 support
cinap_lenrek [Sun, 27 Oct 2013 18:05:40 +0000 (19:05 +0100)]
vt: utf-8 support

10 years agorc: make default path safer
BurnZeZ [Sat, 26 Oct 2013 21:23:08 +0000 (17:23 -0400)]
rc: make default path safer

10 years agomkfiles: do not rely on path containing the . element
cinap_lenrek [Sat, 26 Oct 2013 18:22:01 +0000 (20:22 +0200)]
mkfiles: do not rely on path containing the . element

when executing generated binaries and helper scripts,
always execute them as ./name instead of relying that
path contsins the dot.

10 years agoinst: cleanup installer making it not rely on path containing .
cinap_lenrek [Sat, 26 Oct 2013 18:17:56 +0000 (20:17 +0200)]
inst: cleanup installer making it not rely on path containing .

always explicitely execute installer modules with ./name instead
of relying that the path contians the dot.

10 years agomerge
cinap_lenrek [Fri, 25 Oct 2013 23:18:23 +0000 (01:18 +0200)]
merge

10 years agondb/common: update ip for d.root-servers.net
cinap_lenrek [Fri, 25 Oct 2013 23:11:18 +0000 (01:11 +0200)]
ndb/common: update ip for d.root-servers.net

10 years agomerge
cinap_lenrek [Fri, 25 Oct 2013 22:58:46 +0000 (00:58 +0200)]
merge

10 years agondb/common: dont use bell-labs dns servers for rfc1980 zones
cinap_lenrek [Fri, 25 Oct 2013 22:56:51 +0000 (00:56 +0200)]
ndb/common: dont use bell-labs dns servers for rfc1980 zones

10 years agofortunes: etymology: various
stanley lieber [Fri, 25 Oct 2013 18:46:35 +0000 (14:46 -0400)]
fortunes: etymology: various

10 years agokernel: dont spawn closeprocs from closechanq
cinap_lenrek [Fri, 25 Oct 2013 17:51:46 +0000 (19:51 +0200)]
kernel: dont spawn closeprocs from closechanq

make closeproc() spawn more procs on demand insead of
doing it from closechanq(). this avoids the palloc lock
checks and simplifies the logic.

10 years agokernel: disable freelist page caching for executables run from uncached mount
cinap_lenrek [Fri, 25 Oct 2013 00:42:35 +0000 (02:42 +0200)]
kernel: disable freelist page caching for executables run from uncached mount

the image cache has the property of keeping a channel
for the executable binary arround which prevents the
mountpoint from going away.

this can easily be reproduced by running:

@{rfork n; ramfs; cp /bin/echo /tmp; /tmp/echo}

observe how ramfs stays arround until the image is
reclaimed. the echo binary is also cached but is
unreachable from any namespace.

we now restrict the caching to mounts that use the client
cache (-C flag) only. this should always be the case
for /bin. places where this isnt the case might observe
a performance regression.

10 years agokernel: keep one closeproc arround in case we are unable to fork a new one
cinap_lenrek [Thu, 24 Oct 2013 23:54:09 +0000 (01:54 +0200)]
kernel: keep one closeproc arround in case we are unable to fork a new one

closechanq() is unable to fork a new closeproc when palloc
is locked. so we spawn a closeproc early in chandevinit()
and make sure theres always one process arround to handle
the queue.

10 years agonewuser: make lib/profile read drawterms /dev/secstore when available
cinap_lenrek [Wed, 23 Oct 2013 21:44:25 +0000 (23:44 +0200)]
newuser: make lib/profile read drawterms /dev/secstore when available

10 years agofactotum: update rsa for ssh2 (sync with sources)
cinap_lenrek [Tue, 22 Oct 2013 16:55:00 +0000 (18:55 +0200)]
factotum: update rsa for ssh2 (sync with sources)

10 years agoacme: attempt to fix tag lines collapsing to zero height on window move (issue 189)
cinap_lenrek [Sun, 20 Oct 2013 20:38:35 +0000 (22:38 +0200)]
acme: attempt to fix tag lines collapsing to zero height on window move (issue 189)

we'r getting a rectangle taller than a single line from
coladd() which causes textresize() to collapse the tag
text to zero height.

should probably fix coladd() instead.

10 years agonusb/ether: new driver interface with kernel inspired Block buffers
cinap_lenrek [Fri, 18 Oct 2013 16:41:27 +0000 (18:41 +0200)]
nusb/ether: new driver interface with kernel inspired Block buffers

introduce kernel inspured Block structure with
read/write pointers to pass packets arround.

the intend is to avoid copying when adding/removing
frame headers and simplifying the drivers.

the driver now calls etheriq() directly allowing it to
queue multiple packets in one pass without having
to keep state.

transmit gets a buffer passed that has room for
frame headers and trailers so no copying is needed.

blocks are refcounted avoiding another copy when
passed to only one receive queue (common case).

receive queues are now limited to 100KB avoiding
buffer bloat.

Dq* a memory leak in destroyfid has been fixed.

lots of minor cleanups.

10 years agokeyboard(6): new <compose>x sequence, 21 bit runes.
cinap_lenrek [Thu, 17 Oct 2013 17:02:50 +0000 (19:02 +0200)]
keyboard(6): new <compose>x sequence, 21 bit runes.

10 years agohtml2ms: fix compiler warning for debug code
cinap_lenrek [Thu, 17 Oct 2013 16:50:46 +0000 (18:50 +0200)]
html2ms: fix compiler warning for debug code

10 years agokbdfs: implement <compoxe>x to enter variable length unicode as suggested by erik...
cinap_lenrek [Thu, 17 Oct 2013 16:39:44 +0000 (18:39 +0200)]
kbdfs: implement <compoxe>x to enter variable length unicode as suggested by erik quanstro

from: http://9fans.net/archive/2013/04/327

since <compose>x is not yet entrenched, i have a suggestion for ease of
input.  suppose <compose>x were redefined so the syntax were
"<compose>x[0-9a-f]+;".  in the case that 6 hex digits are entered, then
the ";" is not necessary.

not only would this allow for entering 21-bit runes, it would also allow for
short sequences to be entered more easily.

- erik

10 years agofactotum: fix mschap password (utf-8 to utf-16) conversion
cinap_lenrek [Thu, 17 Oct 2013 13:31:07 +0000 (15:31 +0200)]
factotum: fix mschap password (utf-8 to utf-16) conversion

using strlen() gives the number of bytes in the utf-8 string.
could use utflen() instead, but decided to just go in a loop
and get rid of the counters all together.

UTF-16 surrogates are not handled.

10 years agolibc: updated acid files for 21 bit rune change
cinap_lenrek [Thu, 17 Oct 2013 10:53:01 +0000 (12:53 +0200)]
libc: updated acid files for 21 bit rune change

10 years agochange Rune from ushort to uint for to 21 bit runes (thanks mischief!)
cinap_lenrek [Thu, 17 Oct 2013 10:02:45 +0000 (12:02 +0200)]
change Rune from ushort to uint for to 21 bit runes (thanks mischief!)

big big change. requires rebuilding 8c first and then rebuild
everything.

10 years ago9p(2): correct usage for srvrelease()/srvacquire()
cinap_lenrek [Thu, 17 Oct 2013 06:26:05 +0000 (08:26 +0200)]
9p(2): correct usage for srvrelease()/srvacquire()

the process is *NOT* allowed to exit after a srvrelease() as
it still holds a reference (srv->rref) preventing the srv
from beging freed/ended (listensrv) before srvacquire().

10 years agonusb/ether: fix wrong size check causing odd sized packets to be discarded (thanks...
cinap_lenrek [Wed, 16 Oct 2013 14:42:40 +0000 (16:42 +0200)]
nusb/ether: fix wrong size check causing odd sized packets to be discarded (thanks mischief!)

ethernet packets with sizes that where not multiples of 4 where
discarded because the check uses the smsc frame size instead of
the payload size. when a usb read returns just one packet, theres
no next frame header and the calculated frame size is bigger than
the usb read which caused the whole packet to be discarded as invalid.

thanks to mischief for testing and debugging!

10 years agonusb/disk: handle blocking usb access with srv released
cinap_lenrek [Wed, 16 Oct 2013 10:26:56 +0000 (12:26 +0200)]
nusb/disk: handle blocking usb access with srv released

usb is bound after /dev, so a hanging usb device will hang
access to /dev. we avoid this by releasing the srv, which
allows the fs to still handle reads and walks of the
directories.

ios are serialized by a qlock in the Umsc structure.

10 years agocwfs: fix putbuf(nil) in error case of cmd_check()
cinap_lenrek [Wed, 16 Oct 2013 05:21:12 +0000 (07:21 +0200)]
cwfs: fix putbuf(nil) in error case of cmd_check()

10 years agomerge
cinap_lenrek [Wed, 16 Oct 2013 02:40:18 +0000 (04:40 +0200)]
merge

10 years agofdisk: fix struct padding for amd64 (from erik quanstros fdisk-64-bit-table patch)
cinap_lenrek [Wed, 16 Oct 2013 02:34:58 +0000 (04:34 +0200)]
fdisk: fix struct padding for amd64 (from erik quanstros fdisk-64-bit-table patch)

small little patch to help fdisk work properly on 64-bit machines.
sizeof(Table) is 4 bytes too big.

10 years agousps: update for new usps website (thanks, mischief)
stanley lieber [Tue, 15 Oct 2013 19:47:56 +0000 (15:47 -0400)]
usps: update for new usps website (thanks, mischief)

10 years agoaux/statusbar: emit final newline in textmode when finished
cinap_lenrek [Sat, 12 Oct 2013 01:18:44 +0000 (03:18 +0200)]
aux/statusbar: emit final newline in textmode when finished

bad:
term% echo 1 1 | aux/statusbar -t x
|###########################################################| 100% term%

vs.

good:
term% echo 1 1 | aux/statusbar -t x
|###########################################################| 100%
term%

10 years agohget: handle http contentencoding (compression)
cinap_lenrek [Sat, 12 Oct 2013 00:22:57 +0000 (02:22 +0200)]
hget: handle http contentencoding (compression)

10 years agocwfs: add checktag() call for cache bucket in dumpblock(), fix error strings
cinap_lenrek [Fri, 11 Oct 2013 08:17:17 +0000 (10:17 +0200)]
cwfs: add checktag() call for cache bucket in dumpblock(), fix error strings

10 years agocwfs: more checking for cfsdump(), cleanup Tsuper hack in cwrecur()
cinap_lenrek [Fri, 11 Oct 2013 04:01:55 +0000 (06:01 +0200)]
cwfs: more checking for cfsdump(), cleanup Tsuper hack in cwrecur()

add checktag and nil checks in cfsdump() making sure to notice
when the roroot directory structures is corrupted.

cwrecur() used tag == Tsuper to indicate that this is the first
level recursive invocation. this is confusing as we really expect
Tdir tag in that case for the root directory. instead, we now
pass the correct tag (Tdir) and use cw->depth > 1 to see if we
are past the root.

the block tag was only checked when the block was not in
the memory cache. check the tag always!

10 years agounzip/zipfs: handle optional data descriptor signature in trailer
cinap_lenrek [Thu, 10 Oct 2013 05:42:13 +0000 (07:42 +0200)]
unzip/zipfs: handle optional data descriptor signature in trailer

10 years agomothra: handle <input type=image>
cinap_lenrek [Thu, 10 Oct 2013 21:59:19 +0000 (23:59 +0200)]
mothra: handle <input type=image>

10 years agoexportfs: start filter in separate rendezvous group
cinap_lenrek [Tue, 8 Oct 2013 18:58:55 +0000 (20:58 +0200)]
exportfs: start filter in separate rendezvous group

10 years agolibpanel: fix memory corruption bug in plinitentry(), add pl_erealloc()
cinap_lenrek [Tue, 8 Oct 2013 17:58:55 +0000 (19:58 +0200)]
libpanel: fix memory corruption bug in plinitentry(), add pl_erealloc()

10 years agolibc: remove doprint
cinap_lenrek [Tue, 8 Oct 2013 17:23:53 +0000 (19:23 +0200)]
libc: remove doprint

10 years agoip/torrent: check piece offset, vlong cast
cinap_lenrek [Tue, 8 Oct 2013 06:12:05 +0000 (08:12 +0200)]
ip/torrent: check piece offset, vlong cast

10 years agoip/torrent: more checking, backoff from piece on hash error
cinap_lenrek [Tue, 8 Oct 2013 05:55:26 +0000 (07:55 +0200)]
ip/torrent: more checking, backoff from piece on hash error

10 years agokbdfs: implement keyboard mouse buttons with /dev/mousein
cinap_lenrek [Mon, 7 Oct 2013 04:49:34 +0000 (06:49 +0200)]
kbdfs: implement keyboard mouse buttons with /dev/mousein

10 years agovncs: create dummy /dev/mousein and /dev/mousectl files
cinap_lenrek [Mon, 7 Oct 2013 04:37:40 +0000 (06:37 +0200)]
vncs: create dummy /dev/mousein and /dev/mousectl files

this should prevent accidential fiddeling with the kernels
mouse driver.

10 years agodevmouse: differential handling of /dev/mousein buttons
cinap_lenrek [Mon, 7 Oct 2013 04:34:24 +0000 (06:34 +0200)]
devmouse: differential handling of /dev/mousein buttons

10 years agoexportfs: fix more filedescriptor leaks
cinap_lenrek [Mon, 7 Oct 2013 21:18:37 +0000 (23:18 +0200)]
exportfs: fix more filedescriptor leaks

just closing the pipe isnt enough, we have to
close all remaining file descriptors except sfd
before executing sub exportfs.

10 years agoexportfs: fix openmount() rfork flags and filedescriptor leak, silence of on initstr...
cinap_lenrek [Sun, 6 Oct 2013 02:42:46 +0000 (04:42 +0200)]
exportfs: fix openmount() rfork flags and filedescriptor leak, silence of on initstr error

fork child exportfs with new rendezvous group.
fix missing close of pipe filedescriptors on error.
fix missing close of other end of pipe in child.

dont bark when we get eof on the first init string read.
this condition can happen when unmount opens and
immidiately closes a exported srv file.

10 years ago5l: apply richard millers 5l-incfloat patch (from sources)
cinap_lenrek [Sat, 5 Oct 2013 23:49:15 +0000 (01:49 +0200)]
5l: apply richard millers 5l-incfloat patch (from sources)

Generate correct ARM vfp code for x++ where x is single precision float.
Example test program (link with '5l -f'): void _main() { float x; x++;}

10 years agorio: gone windows gone wrong (fix missing recv(x->flushc, nil) when gone but request...
cinap_lenrek [Sat, 5 Oct 2013 20:55:10 +0000 (22:55 +0200)]
rio: gone windows gone wrong (fix missing recv(x->flushc, nil) when gone but request flushing)

10 years agomothra: avoid intermediate rc shell processes, use rfork(RFREND) to isolate rendezvou...
cinap_lenrek [Fri, 4 Oct 2013 19:11:56 +0000 (21:11 +0200)]
mothra: avoid intermediate rc shell processes, use rfork(RFREND) to isolate rendezvous group

10 years agopage: avoid intermediate rc shell processes with using exec, move newwindow() before...
cinap_lenrek [Fri, 4 Oct 2013 19:10:33 +0000 (21:10 +0200)]
page: avoid intermediate rc shell processes with using exec, move newwindow() before forking namespace

use exec to avoid intermediate rc processes.

avoid capturing old namespace in the waiting process by doing the
newwindow() call before it.

10 years agomothra: run page in own note group, close unneeded filedescriptors after forking
cinap_lenrek [Fri, 4 Oct 2013 14:08:19 +0000 (16:08 +0200)]
mothra: run page in own note group, close unneeded filedescriptors after forking

running page in own note group avoids killing it when we
exit mothra.

copypaste dupfds() function from page and use it to close
unneeded file descriptors.

10 years agopage: close stdout, reopen stdout/stderr for external viewer and removed useless...
cinap_lenrek [Fri, 4 Oct 2013 14:03:41 +0000 (16:03 +0200)]
page: close stdout, reopen stdout/stderr for external viewer and removed useless RFNAMEG flag

we are not using stdout (fd=1) and it, so dup nullfd over it.
this drops the old window reference when using with -w flag.

the RFNAMEG flag isnt needed because we are calling newwindow()
which forks the namespace for us.

reopen stdin/stdout for the external viewer to the new window.

10 years agolibdraw: make newwindow() unmount the old window
cinap_lenrek [Fri, 4 Oct 2013 13:57:05 +0000 (15:57 +0200)]
libdraw: make newwindow() unmount the old window

newwindow() used to mount the new window directly on /dev, resulting
in the old window and the new one being mounted over each other.

we now try to unmount the old window from /dev first, mount new
window to /mnt/wsys (replacing the old) and then bind /mnt/wsys
before /dev.

if theres no /mnt/wsys, just mount window directly before /dev.

10 years agoadd sdp(3) from sources
cinap_lenrek [Fri, 4 Oct 2013 11:52:22 +0000 (13:52 +0200)]
add sdp(3) from sources

10 years agomerge
cinap_lenrek [Fri, 4 Oct 2013 00:27:53 +0000 (02:27 +0200)]
merge

10 years agopage: dont tell rio our pid
cinap_lenrek [Fri, 4 Oct 2013 00:26:40 +0000 (02:26 +0200)]
page: dont tell rio our pid

$wsys might be from a remote system so pid will not work.

new rio errors out on mouse/cons instead.

10 years agorio: gone windows, window resize, rectonscreen, goodrect
cinap_lenrek [Fri, 4 Oct 2013 00:17:53 +0000 (02:17 +0200)]
rio: gone windows, window resize, rectonscreen, goodrect

dont rely on postnote to shutdown client. instead, make reads on
cons, kbd and mouse error. when we mount a window system over
exportfs, the pid useless and even dangerous! pid should be
only used by clients forked by rio itself.

fix bug in resized(), goodrect() takes rect in screen coordinates!

make rectonscreen() fix window size if the window doesnt fit
on the screen.

improve goodrect() to check for windows outside of the screen or
bigger than screen without borders visible.

10 years agoio.h: change indentation from spaces to tabs
ppatience0 [Thu, 3 Oct 2013 21:15:11 +0000 (17:15 -0400)]
io.h: change indentation from spaces to tabs

10 years agoether83815: fix `auto neg timed out' error with sis 900 rev 635.
ppatience0 [Thu, 3 Oct 2013 21:13:08 +0000 (17:13 -0400)]
ether83815: fix `auto neg timed out' error with sis 900 rev 635.
the openbsd sis(4) driver does not actually go through the rest
of softreset() with sis cards. also, rev 635 reads the mac address
differently, so copy-paste code from openbsd to handle that.

10 years agomerge
cinap_lenrek [Thu, 3 Oct 2013 15:31:55 +0000 (17:31 +0200)]
merge

10 years agotarfs: make file name safe, canonical and free of . and .. (from sources)
cinap_lenrek [Thu, 3 Oct 2013 15:30:03 +0000 (17:30 +0200)]
tarfs: make file name safe, canonical and free of . and .. (from sources)

10 years agolibmach: fix wrong formating for arm LDRH/STRH/LDRSB/LDRSH (MOVHU/MOVBU) instructions
cinap_lenrek [Wed, 2 Oct 2013 18:52:13 +0000 (20:52 +0200)]
libmach: fix wrong formating for arm LDRH/STRH/LDRSB/LDRSH (MOVHU/MOVBU) instructions

10 years agonusb/ether: add rtl8150 driver, remove unused includes
ppatience0 [Wed, 2 Oct 2013 06:25:43 +0000 (02:25 -0400)]
nusb/ether: add rtl8150 driver, remove unused includes

10 years agofortunes: I think we're done here.
stanley lieber [Wed, 2 Oct 2013 22:02:49 +0000 (18:02 -0400)]
fortunes: I think we're done here.

10 years agovt: dont pollute the outer environment (thanks mischief!)
cinap_lenrek [Wed, 2 Oct 2013 00:25:50 +0000 (02:25 +0200)]
vt: dont pollute the outer environment (thanks mischief!)

10 years agobootrc: +x
cinap_lenrek [Wed, 2 Oct 2013 00:01:43 +0000 (02:01 +0200)]
bootrc: +x

10 years agolib9p/hjfs: use x != ~0 instead (type)~x conditionals to work arround arm compiler...
cinap_lenrek [Tue, 1 Oct 2013 23:36:05 +0000 (01:36 +0200)]
lib9p/hjfs: use x != ~0 instead (type)~x conditionals to work arround arm compiler issue

10 years agoaudiohda: allow manual pin routing, more verbose audiostat, initial mute of al widgets
cinap_lenrek [Sun, 29 Sep 2013 13:44:26 +0000 (15:44 +0200)]
audiohda: allow manual pin routing, more verbose audiostat, initial mute of al widgets

the automatic routing from jack to dac/adc sometimes gets us
a path thats not audible. manually specifying a route path
gets us arround these. the syntax is just a comma separated
list of node ids in the "pin" and "inpin" audioctl commands
instead of a single pin node id.

to find alternative paths, audiostat now lists all the widgets;
not just the pins; and ther input connections.

initially mute all pins and amps of all function groups.
connectpath() and disconnectpath() will mute and unmute
the widgets as required later.

10 years agopkg/list: handle more directory listings
stanley lieber [Sat, 28 Sep 2013 05:57:31 +0000 (01:57 -0400)]
pkg/list: handle more directory listings

10 years agopc kernel: make syscall() return thru forkret() to handle exceptions
cinap_lenrek [Fri, 27 Sep 2013 17:24:45 +0000 (19:24 +0200)]
pc kernel: make syscall() return thru forkret() to handle exceptions

forkret() labels the instructions that can raise exceptions
so they can be handled in trap(). this can happen when
segment descriptors get invalidated.

10 years agofortunes: I gave up, back to 9front. -- Aram
stanley lieber [Thu, 26 Sep 2013 16:22:09 +0000 (12:22 -0400)]
fortunes: I gave up, back to 9front. -- Aram