]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
10 years agolibauth: add sanity check for auth_proxy write size
cinap_lenrek [Mon, 16 Sep 2013 01:56:53 +0000 (03:56 +0200)]
libauth: add sanity check for auth_proxy write size

10 years agoaux/statusbar, aux/statusmsg: dont fork in background for window, cleanup
cinap_lenrek [Mon, 16 Sep 2013 00:10:18 +0000 (02:10 +0200)]
aux/statusbar, aux/statusmsg: dont fork in background for window, cleanup

10 years agoe820: handle duplicate and overlapping e820 entries, handle overflows
cinap_lenrek [Mon, 16 Sep 2013 21:36:06 +0000 (23:36 +0200)]
e820: handle duplicate and overlapping e820 entries, handle overflows

new algorithm:

sort entries by top address first. then for each entry we use:

base = max(base, last)

so we'll never map the same addresses twice.

10 years agokbdfs: set exit status
cinap_lenrek [Sun, 15 Sep 2013 14:22:21 +0000 (16:22 +0200)]
kbdfs: set exit status

10 years agonusb/serial: set exit status
cinap_lenrek [Sun, 15 Sep 2013 14:21:43 +0000 (16:21 +0200)]
nusb/serial: set exit status

10 years agovncs: fix cmdpid fork bug
cinap_lenrek [Sun, 15 Sep 2013 14:04:32 +0000 (16:04 +0200)]
vncs: fix cmdpid fork bug

we cannot do:

cmdpid = rfork(... RFMEM);

because cmdpid is a global variable in the data segment
and hence shared between parent and child process. use a
temporary variable on the stack.

10 years agovncv: fix missing free for window label
cinap_lenrek [Sun, 15 Sep 2013 13:14:12 +0000 (15:14 +0200)]
vncv: fix missing free for window label

10 years agoupas/fs: fix potential filedescriptor leaks
cinap_lenrek [Sun, 15 Sep 2013 12:45:57 +0000 (14:45 +0200)]
upas/fs: fix potential filedescriptor leaks

10 years agopmmc: add support for Ricoh 5U23 SD/MMC controller
cinap_lenrek [Sat, 14 Sep 2013 23:24:08 +0000 (01:24 +0200)]
pmmc: add support for Ricoh 5U23 SD/MMC controller

10 years agotls: fix various tlsClient()/tlsServer() related bugs
cinap_lenrek [Sat, 14 Sep 2013 17:19:08 +0000 (19:19 +0200)]
tls: fix various tlsClient()/tlsServer() related bugs

- TLSconn structure on stack but not initialized (zeroed)
- original filedescriptor double closed in error case
- original filedescriptor leaked in success case
- leaked TLSconn.sessionID and TLSconn.cert
- clarify in pushtls(2) and pushssl(2)

10 years agoacme: use threadexitsall() to tear down mouse and keyboard procs on error
cinap_lenrek [Wed, 11 Sep 2013 19:23:45 +0000 (21:23 +0200)]
acme: use threadexitsall() to tear down mouse and keyboard procs on error

10 years agopci: fix compiler warning about unused variables
cinap_lenrek [Sun, 8 Sep 2013 22:51:36 +0000 (00:51 +0200)]
pci: fix compiler warning about unused variables

10 years agomp/pci: msi support for hypertransport platform
cinap_lenrek [Sun, 8 Sep 2013 22:44:08 +0000 (00:44 +0200)]
mp/pci: msi support for hypertransport platform

10 years agodossrv(4): remove reference to a:, b:, c:, d: and 9fat:
cinap_lenrek [Sun, 8 Sep 2013 18:59:09 +0000 (20:59 +0200)]
dossrv(4): remove reference to a:, b:, c:, d: and 9fat:

10 years agocpu, ratrace, trace: remove unused #include <bio.h>
cinap_lenrek [Sun, 8 Sep 2013 18:34:58 +0000 (20:34 +0200)]
cpu, ratrace, trace: remove unused #include <bio.h>

10 years agomd5sum, srv: remove unused #include <bio.h>
cinap_lenrek [Sun, 8 Sep 2013 17:52:44 +0000 (19:52 +0200)]
md5sum, srv: remove unused #include <bio.h>

10 years agomerge
cinap_lenrek [Sun, 8 Sep 2013 17:30:27 +0000 (19:30 +0200)]
merge

10 years agosha1sum: remove unused #include <bio.h> (thanks BurnZeZ)
cinap_lenrek [Sun, 8 Sep 2013 17:25:55 +0000 (19:25 +0200)]
sha1sum: remove unused #include <bio.h> (thanks BurnZeZ)

10 years agofortunes: "Not here, not here the darkness, in this twittering world." -- T.S. Eliot
stanley lieber [Sun, 8 Sep 2013 02:48:28 +0000 (22:48 -0400)]
fortunes: "Not here, not here the darkness, in this twittering world." -- T.S. Eliot

10 years agoarchacpi: make pcibusno() work on non pci bridges (fixes pciaddr()), distribute irqs...
cinap_lenrek [Sun, 8 Sep 2013 00:33:25 +0000 (02:33 +0200)]
archacpi: make pcibusno() work on non pci bridges (fixes pciaddr()), distribute irqs in setuplink(), remove debug prints

10 years agoacme: avoid useless tagline/window redraw if not needed
cinap_lenrek [Sat, 7 Sep 2013 18:07:00 +0000 (20:07 +0200)]
acme: avoid useless tagline/window redraw if not needed

window resize is only neccesary if tagline changed.

10 years agomk: handle rc blocks in shell quote
cinap_lenrek [Sat, 7 Sep 2013 16:42:40 +0000 (18:42 +0200)]
mk: handle rc blocks in shell quote

this is so we cna handle:

foo = `{echo `{echo bar}}

thanks to erik and friedrich psiorz on 9fans for
bringing the issue up.

10 years agolibaml: fix formating
cinap_lenrek [Sat, 7 Sep 2013 14:22:35 +0000 (16:22 +0200)]
libaml: fix formating

10 years agolibaml: fix uninitialized variable in getle(), make amleval() work with buildin methods
cinap_lenrek [Sat, 7 Sep 2013 14:14:08 +0000 (16:14 +0200)]
libaml: fix uninitialized variable in getle(), make amleval() work with buildin methods

10 years agolibaml: use FP->env to access method arguments instead of FP->arg in evalosi()
cinap_lenrek [Sat, 7 Sep 2013 12:50:17 +0000 (14:50 +0200)]
libaml: use FP->env to access method arguments instead of FP->arg in evalosi()

10 years agoarchacpi: implement amldelay(), remove unused variable in setuplink()
cinap_lenrek [Sat, 7 Sep 2013 12:41:08 +0000 (14:41 +0200)]
archacpi: implement amldelay(), remove unused variable in setuplink()

10 years agolibaml: amldelay(), _OSI(), fix bug in Load() (from plhk's acpi patch)
cinap_lenrek [Sat, 7 Sep 2013 12:40:24 +0000 (14:40 +0200)]
libaml: amldelay(), _OSI(), fix bug in Load() (from plhk's acpi patch)

export amldelay() for microsecond sleeps.

implement _OSI() method.

fix rwreg argument in evalload()

10 years agolibc: set malloctag for runesmprint()
cinap_lenrek [Fri, 6 Sep 2013 14:55:13 +0000 (16:55 +0200)]
libc: set malloctag for runesmprint()

10 years agoscram: remove amlalloc()/amlfree()
cinap_lenrek [Fri, 6 Sep 2013 14:54:02 +0000 (16:54 +0200)]
scram: remove amlalloc()/amlfree()

these are now part of libaml but can still be overridden
when needed.

10 years agoarchacpi: experimental handling of interrupt link devices, io access
cinap_lenrek [Fri, 6 Sep 2013 14:50:43 +0000 (16:50 +0200)]
archacpi: experimental handling of interrupt link devices, io access

10 years agolibaml: new io interface, add amlnew()/amltake()/amldrop(), late binding names, FindS...
cinap_lenrek [Fri, 6 Sep 2013 14:48:27 +0000 (16:48 +0200)]
libaml: new io interface, add amlnew()/amltake()/amldrop(), late binding names, FindSetLeftBit/FindSetRightBit

new io interface was added. user defines amlmapio() and amlunmapio() functions
that will fill out Amlio structure with function pointers to read/write
routines for a particular region.

amlnew() function added allowing the creation of aml objects like buffers
or packages. these can be passed to amleval() with b, p or * format.

amltake()/amldrop() exclude an aml object from garbage collection.

on load, names are not always resolvable until the whole table is loaded.
for this, we create n objects that are just name strings. after load, we
recursively traverse the namespace and resolve them (see fixnames()).

the FindSetLeftBit and FindSetRightBit opcodes got implemened.

10 years agolibhtml: fix potential linked list corruption
cinap_lenrek [Wed, 4 Sep 2013 22:55:58 +0000 (00:55 +0200)]
libhtml: fix potential linked list corruption

the difficulty is freeing items while parsing because items might already
be linked into various linked lists like in docinfo.images or form.fiels.
so we link images, tables and formfields to the docinfo as the final step
of getitems() pass using the new recursive function linkitems(). as only
reachable items get linked theres no danger of dangeling pointers.

10 years agoabaco: fix memory leaks
cinap_lenrek [Wed, 4 Sep 2013 19:27:59 +0000 (21:27 +0200)]
abaco: fix memory leaks

10 years agolibhtml: fix memory leaks
cinap_lenrek [Wed, 4 Sep 2013 19:27:15 +0000 (21:27 +0200)]
libhtml: fix memory leaks

10 years agowebfs: add exits(0) to main()
cinap_lenrek [Tue, 3 Sep 2013 19:27:48 +0000 (21:27 +0200)]
webfs: add exits(0) to main()

10 years agolibhtml: fix double free of form action
cinap_lenrek [Mon, 2 Sep 2013 21:18:46 +0000 (23:18 +0200)]
libhtml: fix double free of form action

10 years ago9bootfat: always try plan9 partition even when not marked active, fix bug
cinap_lenrek [Sun, 1 Sep 2013 19:18:11 +0000 (21:18 +0200)]
9bootfat: always try plan9 partition even when not marked active, fix bug

always look for 9fat in plan9 partition even tho the partition
is *not* maked active. marking partitions active is not
recommended anymore with grub so this makes life easier for
some people. multiple plan9 partitions on a single drive
is not supported.

have to copy partition table as buf gets trashed when reading
first block of fat partition. it worked only when the first
fat partition found (the one marked active) was the right one,
but conffat() can fail.

10 years agojpg(1), jpg: add -y flag to usage
ppatience0 [Sat, 31 Aug 2013 17:39:51 +0000 (13:39 -0400)]
jpg(1), jpg: add -y flag to usage

png: colorspace will never be CYCbCr (this is no
doubt from copy-pasting from jpg)

tif: everyone else uses colorspace as a function
argument, so we will too

readtif, writetif: credit paul bourke

10 years agousbehci: portreset timing
cinap_lenrek [Fri, 30 Aug 2013 14:00:03 +0000 (16:00 +0200)]
usbehci: portreset timing

assert port reset for 50ms, not 10ms.

10 years agoremoved unused variable resize in wind.c
mveety [Thu, 29 Aug 2013 03:05:52 +0000 (23:05 -0400)]
removed unused variable resize in wind.c

10 years agoAdded the p9p acme patch the allows multiline tags (thanks rsc and lf94).
mveety [Thu, 29 Aug 2013 03:01:23 +0000 (23:01 -0400)]
Added the p9p acme patch the allows multiline tags (thanks rsc and lf94).

10 years agousbehci: fix portreset.
cinap_lenrek [Tue, 27 Aug 2013 17:01:41 +0000 (19:01 +0200)]
usbehci: fix portreset.

Port Reset R/W. 1=Port is in Reset. 0=Port is not in Reset. Default = 0. When
software writes a one to this bit (from a zero), the bus reset sequence as defined in the
USB Specification Revision 2.0 is started. Software writes a zero to this bit to terminate
the bus reset sequence. Software must keep this bit at a one long enough to ensure the
reset sequence, as specified in the USB Specification Revision 2.0, completes. Note:
when software writes this bit to a one, it must also write a zero to the Port Enable bit.
Note that when software writes a zero to this bit there may be a delay before the bit
status changes to a zero. The bit status will not read as a zero until after the reset
has completed.

10 years agoimap4d: apply djc's patch to fix search (from /n/sources/patch/imap4d-cistrcmp)
cinap_lenrek [Mon, 26 Aug 2013 22:34:17 +0000 (00:34 +0200)]
imap4d: apply djc's patch to fix search (from /n/sources/patch/imap4d-cistrcmp)

Fix SEARCH command in imap4d by replacing the cistrstr typo with cistrcmp.

10 years agodevproc: properly handle exclusive refcount for /proc/trace
cinap_lenrek [Tue, 27 Aug 2013 21:57:17 +0000 (23:57 +0200)]
devproc: properly handle exclusive refcount for /proc/trace

10 years agodevshr, devaudio: openmode()/devopen() error handling
cinap_lenrek [Tue, 27 Aug 2013 21:27:46 +0000 (23:27 +0200)]
devshr, devaudio: openmode()/devopen() error handling

10 years agodevmouse: fix openmode() handling
cinap_lenrek [Tue, 27 Aug 2013 21:26:30 +0000 (23:26 +0200)]
devmouse: fix openmode() handling

openmode() can raise error with invalid mode passed, but we already
incremented the exclusive mouse refcount at that point! call openmode()
early to avoid this.

10 years agodevkbd: fix wrong refcount on open error
cinap_lenrek [Tue, 27 Aug 2013 21:23:29 +0000 (23:23 +0200)]
devkbd: fix wrong refcount on open error

only decrement refcount when file was successfully opend
on clunk, fix refcount when devopen() errors.

10 years agoetheriwl: recover from rfkill toggle or firmware crash
cinap_lenrek [Sun, 25 Aug 2013 16:50:14 +0000 (18:50 +0200)]
etheriwl: recover from rfkill toggle or firmware crash

spawn a kernel process to check the broken state of the controller.
if the firmware crashed, or rfkill was toggled we will reset and
reboot the firmware. also power down the card when rfkill is off.

10 years agonusb/ether: add aue driver for admtek pegasus usb ethernet adapter
ppatience0 [Sat, 24 Aug 2013 23:18:15 +0000 (19:18 -0400)]
nusb/ether: add aue driver for admtek pegasus usb ethernet adapter

10 years agousbehci, usbuhci: paranoia
cinap_lenrek [Sun, 25 Aug 2013 20:03:02 +0000 (22:03 +0200)]
usbehci, usbuhci: paranoia

double the td abort delay and make sure the tsleep() isnt
shortened by a pending note. in that case, tsleep() would
raise error(Eintr); immidiately and would not sleep the
requested amount potentially cauing us to release active
dma memory too early! so we wrap the tsleep() call in a
while(waserror()) so we will at least wait the Abortdelay
amount if error is raised.

also, only try to idle the still active td's.

do not copy data in epio() when there was an error, theres
no reason to touch user buffer in that case.

for uhci, we also check that theres not more data in the
buffers than requested to avoid overflowing user buffer
in epio(). this should not happen but we'r paranoid.

for ehci, we also halt the queue head first in aborttds().
mark the queue heads as Qfree after unlinking and remove
some silly nil checks that are impossible.

10 years ago2c(1), torrent(1), uhtml(1), kbd(3), cwfs(4), hgfs(4), cifsd(8), cryptsetup(8), hjfs...
stanley lieber [Fri, 23 Aug 2013 19:48:52 +0000 (15:48 -0400)]
2c(1), torrent(1), uhtml(1), kbd(3), cwfs(4), hgfs(4), cifsd(8), cryptsetup(8), hjfs(8), kbdfs(8), realemu(8), wpa(8): fix spelling, typos

10 years agoaudio(1), hget(1), nusb(4), page(1): fix spelling, typos
stanley lieber [Fri, 23 Aug 2013 15:27:30 +0000 (11:27 -0400)]
audio(1), hget(1), nusb(4), page(1): fix spelling, typos

10 years agowebfs(4): read the whole man page before committing corrections
stanley lieber [Fri, 23 Aug 2013 15:15:52 +0000 (11:15 -0400)]
webfs(4): read the whole man page before committing corrections

10 years agowebfs(4): fix typo
stanley lieber [Fri, 23 Aug 2013 15:07:59 +0000 (11:07 -0400)]
webfs(4): fix typo

10 years agowebfs(4): correct typo
stanley lieber [Thu, 22 Aug 2013 21:58:51 +0000 (17:58 -0400)]
webfs(4): correct typo

10 years agofortunes: seems that so much is up on the net, it is hard to comprehend it all.
stanley lieber [Thu, 22 Aug 2013 16:15:29 +0000 (12:15 -0400)]
fortunes: seems that so much is up on the net, it is hard to comprehend it all.

10 years agofile(1): recognize AAC audio files, from sources
stanley lieber [Thu, 22 Aug 2013 16:14:57 +0000 (12:14 -0400)]
file(1): recognize AAC audio files, from sources

10 years agowifi: remove pool.h include
cinap_lenrek [Tue, 20 Aug 2013 17:48:39 +0000 (19:48 +0200)]
wifi: remove pool.h include

10 years agorc: flush environment variables (update /env) before fork
cinap_lenrek [Tue, 20 Aug 2013 21:56:15 +0000 (23:56 +0200)]
rc: flush environment variables (update /env) before fork

on races... normal forks will all share the /env environment but
not the in memory variables of rc. so when we would normally fork
whoever does an exec (flush) first will override what the values of the
/env variables are, *independent* of the variables that where
actually modified *in* the process.

when we flush *before* fork, then at least both processes start out
with marked clean in memory variables and the processes will flush
only the things they actually change.

10 years agorio: position keyboard window (-k) at the bottom of the screen
cinap_lenrek [Tue, 20 Aug 2013 21:48:18 +0000 (23:48 +0200)]
rio: position keyboard window (-k) at the bottom of the screen

10 years agobitsy/keyboard: dont resize our own window
cinap_lenrek [Tue, 20 Aug 2013 21:36:04 +0000 (23:36 +0200)]
bitsy/keyboard: dont resize our own window

the resizing fails if run with rio in rio. dont try
to be too clever.

10 years agowpa: repeat rsne setup after deassociation (roamng between access points)
cinap_lenrek [Mon, 19 Aug 2013 14:07:07 +0000 (16:07 +0200)]
wpa: repeat rsne setup after deassociation (roamng between access points)

the "auth" ctl command only sets the rsne of the current selected
access point. so on deassociation, we wait for the connection to
the potentially new access point and then setup new rsne before
processing eapol messages.

10 years agofortunes: GitHub is down...uh...now what?
stanley lieber [Thu, 15 Aug 2013 16:12:26 +0000 (12:12 -0400)]
fortunes: GitHub is down...uh...now what?

10 years agolibsec: only send client cert when we have one (fix regression from r6e976b2004dd)
cinap_lenrek [Wed, 14 Aug 2013 22:29:42 +0000 (00:29 +0200)]
libsec: only send client cert when we have one (fix regression from r6e976b2004dd)

10 years agolibc: Prevent infinite recursion when modf is called with NaN or Inf argument. (apply...
cinap_lenrek [Wed, 14 Aug 2013 16:49:45 +0000 (18:49 +0200)]
libc: Prevent infinite recursion when modf is called with NaN or Inf argument. (apply richard millers / modf-nan patch from sources)

10 years agolibdraw: fix leftover processes or programs failing to restore window labels when...
cinap_lenrek [Tue, 13 Aug 2013 19:46:13 +0000 (21:46 +0200)]
libdraw: fix leftover processes or programs failing to restore window labels when receiving interrupt note

fix the default note handler for event programs. only handle non system
notes or notes in the slave processes. for interrupt in the main process,
just call exits() which will do the cleanup and restore window label
properly.

this makes completely overriding the note handler in gping and
stats uneccesary.

10 years agoresample: fix XRGB32 color channel handling
cinap_lenrek [Mon, 12 Aug 2013 17:28:10 +0000 (19:28 +0200)]
resample: fix XRGB32 color channel handling

10 years agoesd: enlightenment sound daemon
cinap_lenrek [Mon, 12 Aug 2013 01:43:42 +0000 (03:43 +0200)]
esd: enlightenment sound daemon

this program allows one to stream audio from linux/windows
to plan9 /dev/audio. sometimes handy to augment vnc sessions
with sound.

10 years agogames/doom: remove useless allocation of screen[0] buffer
cinap_lenrek [Sun, 11 Aug 2013 22:40:09 +0000 (00:40 +0200)]
games/doom: remove useless allocation of screen[0] buffer

screens 0-3 are already initialized by V_Init().

10 years agogames/juggle, games/catclock: keep up with queued mouse events
cinap_lenrek [Sun, 11 Aug 2013 22:08:51 +0000 (00:08 +0200)]
games/juggle, games/catclock: keep up with queued mouse events

many queued mouse events delay eresize() because
new ebread() takes from the queue first before attempting
to read from the event pipe. this is a waste of memory, so
just process (dequeue) all the events as long as there are
any on each iteration.

10 years agocatclock: protect black border with clip rectangle and dont print when window is...
cinap_lenrek [Mon, 12 Aug 2013 21:31:53 +0000 (23:31 +0200)]
catclock: protect black border with clip rectangle and dont print when window is too small

10 years agoether6105m: increase timeouts for Soekris 5501s (from sources)
cinap_lenrek [Sun, 11 Aug 2013 16:32:42 +0000 (18:32 +0200)]
ether6105m: increase timeouts for Soekris 5501s (from sources)

10 years agocreate /sys/lib/ssl
cinap_lenrek [Sun, 11 Aug 2013 16:23:22 +0000 (18:23 +0200)]
create /sys/lib/ssl

10 years agovt: fix off by one memory corruption
cinap_lenrek [Sun, 11 Aug 2013 06:34:34 +0000 (08:34 +0200)]
vt: fix off by one memory corruption

account for the final 0 byte in host_buf.

10 years agolibdraw: make ebread() return buffer immidiately if available, cleanup
cinap_lenrek [Sun, 11 Aug 2013 06:31:53 +0000 (08:31 +0200)]
libdraw: make ebread() return buffer immidiately if available, cleanup

this reduces number of syscalls and improves performance for vt

10 years agolibdraw: fix ekbd() memory leak
cinap_lenrek [Sun, 11 Aug 2013 06:22:21 +0000 (08:22 +0200)]
libdraw: fix ekbd() memory leak

10 years agotm2sec: assume local timezone when Tm.zone[0] == 0 (fixes dossrv, zipfs timestamps)
cinap_lenrek [Sun, 11 Aug 2013 00:19:02 +0000 (02:19 +0200)]
tm2sec: assume local timezone when Tm.zone[0] == 0 (fixes dossrv, zipfs timestamps)

from the manual:

Tm2sec converts a broken-down time to seconds since the
start of the epoch.  It ignores wday, and assumes the local
time zone if zone is not GMT.

so we can assume localtime if Tm.zone is not set to GMT.

all code that wants no localtime conversion should set
Tm.zone explicitely to GMT. (see previous commits)

tm2sec() now does the reverse of localtime() when Tm.zone[0] == 0
which seems to be what the calling code (dossrv, zipfs) assumes.
this also makes sense because theres no simple way todo it
outside of libc as theres otherwise no access to the timezone
structure with the daylight saving periods.

10 years agocifs: fix timezone for timestamps
cinap_lenrek [Sat, 10 Aug 2013 23:36:03 +0000 (01:36 +0200)]
cifs: fix timezone for timestamps

tm2sec() ignores tm.tzoff and will use the local timezone for
conversion. to make it work right, we convert the dos timestamp
as GMT and then correct timezone with the offset provided by the
server.

10 years agoauth(8) commands: fix uninitialized Tm.zone in getdate()
cinap_lenrek [Sun, 11 Aug 2013 21:21:13 +0000 (23:21 +0200)]
auth(8) commands: fix uninitialized Tm.zone in getdate()

10 years agoTEQ with S bit = 0 would be pointless, so ARM uses this case to encode "miscellaneous"
cinap_lenrek [Sat, 10 Aug 2013 14:40:36 +0000 (16:40 +0200)]
TEQ with S bit = 0 would be pointless, so ARM uses this case to encode "miscellaneous"
instructions like BKPT, BX and BLX.  Decoding these correctly allows db/acid to
single step through BX and BLX on armv5t+, and to show a breakpoint instruction
as 'BKPT $#0' instead of 'TEQ R0@>R0,R0'.

10 years agotcp113: fix null list in concatenation error
cinap_lenrek [Sat, 10 Aug 2013 06:55:39 +0000 (08:55 +0200)]
tcp113: fix null list in concatenation error

10 years agonusb/kb: *really* only send to mousein when mouse state actually changes (zero detlas...
cinap_lenrek [Sat, 10 Aug 2013 06:47:43 +0000 (08:47 +0200)]
nusb/kb: *really* only send to mousein when mouse state actually changes (zero detlas, same buttons)

10 years agorevert previous commit... stupid idea
cinap_lenrek [Sat, 10 Aug 2013 06:37:13 +0000 (08:37 +0200)]
revert previous commit... stupid idea

10 years agonusb/kb: only send to mousein when mouse state actually changes
cinap_lenrek [Sat, 10 Aug 2013 05:59:54 +0000 (07:59 +0200)]
nusb/kb: only send to mousein when mouse state actually changes

10 years agorio: fix unused variable warning in wscroll()
cinap_lenrek [Sat, 10 Aug 2013 01:58:52 +0000 (03:58 +0200)]
rio: fix unused variable warning in wscroll()

10 years agorio: shorten overlong window labels
cinap_lenrek [Sat, 10 Aug 2013 01:54:55 +0000 (03:54 +0200)]
rio: shorten overlong window labels

10 years agomothra: log post data with debug flag, increase max token length from 1K to 4K
cinap_lenrek [Fri, 9 Aug 2013 16:23:08 +0000 (18:23 +0200)]
mothra: log post data with debug flag, increase max token length from 1K to 4K

10 years agomerge
cinap_lenrek [Fri, 9 Aug 2013 15:25:57 +0000 (17:25 +0200)]
merge

10 years agomothra: fix nil pointer dereference
cinap_lenrek [Fri, 9 Aug 2013 15:24:48 +0000 (17:24 +0200)]
mothra: fix nil pointer dereference

10 years ago/lib/br: That's no way to treat a friend.
stanley lieber [Wed, 7 Aug 2013 23:53:51 +0000 (19:53 -0400)]
/lib/br: That's no way to treat a friend.

10 years agosam: avoid thread stack overflow with 32bit runes (from sources)
cinap_lenrek [Wed, 7 Aug 2013 23:44:20 +0000 (01:44 +0200)]
sam: avoid thread stack overflow with 32bit runes (from sources)

10 years agocwfs: fix out of order replies
cinap_lenrek [Wed, 7 Aug 2013 23:07:01 +0000 (01:07 +0200)]
cwfs: fix out of order replies

using a shared reply queue and a pool of worker procs does
result in replies to be send out of order under some conditions.
the symptoms are mnt errors when interrupting requests (Rflush
arriving before the original requests response).

this change gives each connection its own reply queue and its
own srvo process. so now a connection consists of one reply
queue, a srvi process reading the connections file descriptor
and a srvo process reading the reply queue and writng replies
to the connections file descriptor.

the srvi processes live as long as the connection is established.
the srvo prcoesses live forever and are attached to the chan
(which gets reused).

to avoid excessive process creation, we limit the number of
connections to 30. srvchan() returns nil when all 30 network
channels are in use.

10 years agoups: fix typo
stanley lieber [Wed, 7 Aug 2013 01:38:56 +0000 (21:38 -0400)]
ups: fix typo

10 years agoups: give me my computer
stanley lieber [Wed, 7 Aug 2013 01:36:11 +0000 (21:36 -0400)]
ups: give me my computer

10 years agocwfs: use atomic compare and swap to avoid semacquire() syscalls in new queue impleme...
cinap_lenrek [Tue, 6 Aug 2013 23:32:11 +0000 (01:32 +0200)]
cwfs: use atomic compare and swap to avoid semacquire() syscalls in new queue implementation

10 years agofortunes: God bless the people who employ you, they need the blessing.
stanley lieber [Tue, 6 Aug 2013 18:52:13 +0000 (14:52 -0400)]
fortunes: God bless the people who employ you, they need the blessing.

10 years agowikifmt: handle & as &amp; in anchor name, cleanup
cinap_lenrek [Mon, 5 Aug 2013 04:25:23 +0000 (06:25 +0200)]
wikifmt: handle & as &amp; in anchor name, cleanup

10 years agowikifmt: more complete title to name= anchor translation
cinap_lenrek [Mon, 5 Aug 2013 04:17:24 +0000 (06:17 +0200)]
wikifmt: more complete title to name= anchor translation

10 years agorio: make sure flush replies are send only *after* the request got flushed or was...
cinap_lenrek [Mon, 5 Aug 2013 02:21:34 +0000 (04:21 +0200)]
rio: make sure flush replies are send only *after* the request got flushed or was replied

due to the xfid handlers clearing flushtag too early, xfidflush might respond too early
causing spurious replies send later by the handler. now, we clear the flushtag in
filsysrespond *after* the reply was send. xfidflush will wait for us on the active
qlock.

10 years agounsticky scrollbars
cinap_lenrek [Sun, 4 Aug 2013 22:25:40 +0000 (00:25 +0200)]
unsticky scrollbars

scrollbars used to put the mouse on the scrollbar while scrolling. if latency
is high, this often results to the cursor jumping back. instead, make button 2
srolling work without needing the mouse to be inside the scrollbar and leave
the mouse position alone.