plan9fox/sys/src/cmd
cinap_lenrek b5783b1e39 rio: make window focus changes deterministic, cleanup wind.c
Switching window focus used to be non deterministic
as the current window in focus (Window *input) was set
concurrently while processing window messages such as
Resized and Topped.

This implements a new approach where wcurrent() and
wuncurrent() are responsible for the synchronization
and switch of the input.

It is implemented by sending a Repaint message to the
old input window first, neccesarily waiting until that
window releases the focus and then input is updated
and then a Topped or Reshaped message is send to the
new input window.

Note, that when the whole screen is resized that no
input changes need to happening anymore.
2021-03-07 20:26:30 +01:00
..
1a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
1c ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
1l [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
2a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
2c ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
2l [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
5a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
5c ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
5e make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
5i 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
5l 5l: fix shifts by zero 2021-01-23 20:36:09 -08:00
6a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
6c Backed out changeset 2737b9af622b 2020-04-25 10:57:17 -07:00
6l cc: add a couple notes to the comments regarding flags 2020-12-29 19:38:59 +00:00
7a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
7c 7c: now really fix OASxxx operations 2020-08-04 00:50:33 +02:00
7l 7l: handle dupok flag in TEXT/GLOBL data 2020-05-17 19:08:10 +02:00
8a cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
8c cc: promote integer constants according to c99 spec. 2020-08-08 11:39:25 -07:00
8l cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
9nfs cmd: remove a bit of unused stuff 2016-11-17 02:59:40 +01:00
9660srv pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
abaco abaco: add fonts.h to HFILES in mkfile (thanks eekee) 2020-06-21 19:34:54 +09:30
acid acid: increase hash size (thanks jonas.amoson) 2021-01-05 19:37:26 -08:00
acme acme: fix use after free in warning() call (thanks igor) 2021-02-03 01:19:19 +01:00
astro
atazz atazz: fix %.*s format in special command processing 2019-02-25 04:20:00 +01:00
audio audio/flacenc: fix usage 2021-02-18 15:13:25 +01:00
auth passwd: make legacy mode explicit 2021-01-17 18:01:53 -08:00
aux aux/acpi: do not expose empty files 2021-01-22 10:57:43 +01:00
awk awk: fix truncated input after fflush 2020-11-19 23:05:26 -08:00
bitsy bitsy/keyboard: do not rely on atoi() being able to parse hex 2015-08-03 14:52:07 +02:00
bzfs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
bzip2
cb
cc cc: mk clean should delete cc.a$O 2021-01-24 09:58:39 -08:00
cdfs cmd: remove a bit of unused stuff 2016-11-17 02:59:40 +01:00
cec
cfs make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
cifs always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
compress improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
con
cpp cpp: fix mutually recursive macros 2020-07-13 18:50:14 -07:00
cwfs cwfs: fix interpretation of startdump argument 2020-12-06 13:54:10 +10:30
db improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
dial
dict improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
diff diff: fix change marker for -c mode 2020-11-16 19:19:37 +01:00
disk make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
dossrv pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
dtracy show line numbers in dtracy type errors 2020-01-09 11:59:44 -08:00
eqn cmd: remove a bit of unused stuff 2016-11-17 02:59:40 +01:00
execnet
exportfs oexportfs: move legacy code for cpu and import to separate program 2020-12-13 20:09:03 +01:00
ext2srv
faces faces: add -c option to remove faces with button 1 click (thanks sirjofri) 2020-12-04 09:33:55 +01:00
fax
forp forp: change indexing to verilog-like semantics 2018-12-06 10:56:32 +00:00
grap
graph
grep grep: fix handling of -b flag 2020-03-26 18:24:39 +10:30
gs gs: apply mitigations against CVE-2017-8291 (thanks jsmoody) 2019-06-21 18:57:20 +02:00
gzip always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
hg hg: disable tag caching, allows accessing hg repo from dump 2017-10-04 03:59:17 +02:00
hgfs hgfs: fix loadrevinfo() for empty log bug 2020-03-01 23:23:01 +01:00
hjfs hjfs: update mtime and qid.vers for directory on rename 2020-07-12 18:54:22 +02:00
hoc hoc: don't nest calls to follow() when lexing ++/+= and --/-= (#287) 2019-12-06 11:53:44 -08:00
htmlfmt
htmlroff htmlroff: fix out of bounds access (thanks Rei-sen, via plan9port) 2020-08-01 10:49:29 -07:00
ip ip/tftpd: add -n namespace-file flag (thanks sam-d) 2021-02-23 01:47:33 +01:00
jpg ico: avoid potential nil pointer dereferences 2020-12-15 20:45:26 +10:30
ka cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
kc ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
ki 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
kl [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
lex
lp
map map/libmap: remove unused function/definitions 2016-03-01 19:36:24 -05:00
mk improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
mothra mothra: "d": use lite version, disable redirect 2021-03-02 08:41:02 +01:00
ndb /sys/src/cmd/ndb/dns.h: 2021-02-19 21:29:55 -05:00
nusb nusb: don't create rw iso endpoints (by Michael Forney) 2021-02-10 20:08:13 +01:00
paqfs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
pic
plot plot: handle create() failure 2016-03-01 19:40:14 -05:00
plumb plumber: open rule files as OCEXEC, to avoid leaking them to sub commands 2020-12-29 18:45:42 +01:00
postscript text2post: check font index for out of range 2020-12-28 21:21:22 +01:00
proof proof: don't confuse ""(1) (thanks Stuart Morrow) 2020-11-30 13:13:49 -08:00
python [9front] ape: remove _SUSV2_SOURCE guard from inttypes.h 2021-01-23 19:47:12 -08:00
qa cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
qc ?c: get rid of sprint(), strcpy() and strcat()/strncat(), cleanup 2020-04-19 23:51:18 +02:00
qi 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
ql [12kq]l: remove unix compat code for cputime() 2020-12-19 19:15:02 +01:00
ratfs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
rc rc: show line numbers on error 2020-11-01 11:56:26 -08:00
replica replica: fix mkfile script installation (thanks Amavect) 2020-07-20 18:58:52 -07:00
rio rio: make window focus changes deterministic, cleanup wind.c 2021-03-07 20:26:30 +01:00
sam sam/{address.c, sam.h}: bump STRSIZE to 512MB (thanks, Ori_B) 2021-02-19 21:15:15 -05:00
samterm tweak selection criteria 2020-04-25 15:18:04 -07:00
scat make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
scuzz scuzz: uncomment synccache command 2015-09-22 12:23:49 +02:00
snap snap: use Mach->szaddr as the width of the stack pointer (fixes snap on amd64) 2018-11-22 20:27:27 +01:00
spell
spin spin: Update to most recent version. (thanks Ori_B) 2017-11-22 21:09:31 +01:00
spred
syscall syscall: don't rely on . being in $path (thanks Silas) 2021-01-23 15:06:30 +01:00
tapefs pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
tbl
tcs improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
telco pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
troff
troff2html
upas Mail: revert 096538d64724 2021-03-01 19:23:13 -08:00
va cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
vac pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
vc ?c: fix Bconv() misusage of strncat() 2020-04-19 04:33:07 +02:00
venti venti/conf: fix padding so we write multiple of sector size 2018-01-28 17:22:00 +01:00
vi 5i ki qi vi: avoid buffer overflow in command read loop 2018-09-29 13:58:08 +02:00
vl cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
vmx vmx: reduce cpu load by eliminating nop-loop 2021-02-23 15:54:09 +01:00
vnc vnc: I don't like your face. 2021-01-23 13:20:09 -08:00
vt vt: rfork environment varibles (thanks fshahriar) 2020-12-18 19:23:48 -08:00
webfs webfs: bracket literal ipv6 host in "Host:" header 2019-03-23 00:49:07 +01:00
wikifs
aan.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
alarm.c
ar.c
archfs.c
ascii.c ascii: replace mnemonic np (new page) with ff (form feed) for consistency 2015-10-25 14:46:10 -04:00
basename.c
bc.y improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
bind.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
cal.c cal: use Sa/Su in all cases, also simplify the code 2021-01-12 21:08:12 +01:00
calendar.c
camv.c camv: fix leak on resize 2018-05-20 16:47:41 +02:00
cat.c
chgrp.c chgrp: remove unused function declaration (thanks archeus) 2017-04-01 09:01:26 +00:00
chmod.c
cleanname.c
clock.c clock: remove unused variable 2016-11-17 02:12:49 +01:00
cmp.c
col.c
colors.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
comm.c
cp.c abandon streaming experiment 2016-03-17 17:48:19 +01:00
cpu.c oexportfs: move legacy code for cpu and import to separate program 2020-12-13 20:09:03 +01:00
crc32.c
crop.c crop: use strtol() instead of atoi() 2015-08-03 17:29:30 +02:00
date.c date: use new libc date apis. 2020-08-10 19:01:45 -07:00
dc.c dc: fix crashes with : operator (thanks istvan bak) 2020-11-21 17:56:34 -08:00
dd.c dd: error with invalid size suffixes, add 'm' 2021-01-19 15:15:12 -08:00
deroff.c deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clauses (thanks mmnmnnmnmm, via plan9port) 2020-08-01 10:54:03 -07:00
derp.c
du.c
echo.c
ecp.c
ed.c
factor.c
fcp.c fcp: use iounit() to determine buffer size, reduce number of worker procs to 8 2015-07-19 03:32:38 +02:00
file.c file: ftyp mp4* is video/mp4 as well 2021-01-01 22:58:05 +01:00
fmt.c
fortune.c fortune: avoid buffer overflow for lines >= 2K, make sure index has at least one entry, use nrand()/ntruerand() for uniform distribution 2017-03-19 22:04:26 +01:00
fplot.c fplot: add hyperbolic functions 2020-11-27 10:51:16 +01:00
freq.c
getmap.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
gview.c
histogram.c
history.c
html2ms.c html2ms: 0xFFFD → Runeerror 2021-02-23 08:52:59 +01:00
iconv.c
idiff.c
import.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
init.c init: remove dependency to <authsrv.h> 2015-08-21 23:40:31 +02:00
io.c io(1): %llx -> %ullx 2017-05-22 09:04:51 +00:00
iostats.c iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs 2020-12-13 20:23:03 +01:00
join.c
kbmap.c kbmap: avoid division by zero when window becomes too small 2020-12-27 23:39:28 +01:00
kprof.c kprof: fix precedence (thanks geoff) 2018-09-19 01:11:49 +02:00
ktrace.c ktrace: arm64 support 2019-05-03 21:16:23 +02:00
lens.c
lnfs.c pre-lib9p servers: fix incorrect Tversion handling 2020-08-01 15:27:28 +02:00
lock.c lock: reopen lockfile after changing mode to make lock effective 2015-06-13 15:01:02 +02:00
look.c
ls.c
mc.c
md5sum.c sum, md5sum, sha1sum: set exit status properly on open/read errors 2018-09-18 15:58:22 -07:00
mkdir.c
mkfile /sys/src/cmd/mkfile: fix PCONLY exclude (thanks stefan) 2019-05-24 22:52:20 +02:00
mklib mklib, upas/common: clean up libcommon properly (thanks mikan) 2021-02-03 08:10:11 -08:00
mkmany
mkone mkone: fix man target (thanks Amavect) 2019-05-17 01:51:28 +02:00
mksyslib
mntgen.c
mount.c libauth: change programs to use the new procsetuser() function 2020-12-19 18:02:37 +01:00
mpc.y mpc: remove unused yylval type 2016-10-19 22:15:51 -05:00
ms2html.c
mtime.c
mug.c
mv.c
netstat.c
news.c news: make -a and -n get along (thanks lyndon) 2021-01-26 18:07:04 -08:00
nfs.c
nm.c
nntpfs.c
ns.c ns: remove left over vararg check pragma 2018-02-26 19:58:54 +01:00
os.c os(1): add c implementation of inferno os command and cmd(3) device manpages 2019-11-30 20:10:08 +01:00
p.c
page.c page: remove unused variables 2016-11-17 02:11:35 +01:00
paint.c paint: change colors in the palette with button 3 2020-05-23 20:41:20 +02:00
pbd.c
pc.y pc: set exit status depending on errors 2020-12-15 14:37:36 +01:00
pcc.c pcc: back out -+ flag removal to allow gracefull upgrade path with new pcc but old cpp 2019-06-19 15:15:35 +02:00
pipefile.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
pr.c
primes.c
prof.c retire the dec alpha port 2016-05-04 16:11:48 +02:00
ps.c
pstree.c
ptrap.c ptrap: implement filtering on plumb attributes 2020-12-06 21:52:01 +01:00
pump.c
pwd.c
qr.c qr: fix exit status 2021-01-05 22:36:03 +10:30
ramfs.c ramfs: fix truncfile() for non multiple of extend size (64k) 2021-02-27 15:08:34 +01:00
ratrace.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
rdbfs.c
read.c
resample.c resample: simplify getint() 2015-08-03 18:30:02 +02:00
resize.c resize: add -n for nearest neighbour 2015-09-23 17:52:35 +02:00
rm.c
rotate.c
rx.c rx: remove ssh code 2017-01-13 19:54:42 +01:00
sat.c add sat(1) command 2018-03-18 03:03:12 +00:00
scram.c scram: remove _PTS(5). it just doesn't make any sense 2016-10-15 23:42:22 +02:00
screenlock.c screenlock: use initdisplay(2), top the window (thanks stuart morrow) 2021-01-28 18:07:48 -08:00
seconds.c seconds: remove junk from usage 2021-01-17 11:12:18 -08:00
sed.c sed: accept and ignore -E and -r flags for unix compatibility 2020-05-02 16:56:52 +02:00
seg.c
seq.c
sh.C
sha1sum.c sum, md5sum, sha1sum: set exit status properly on open/read errors 2018-09-18 15:58:22 -07:00
size.c
sleep.c
sort.c sort: fix memory leak (thanks Igor Boehm) 2021-01-01 11:48:39 -08:00
split.c fix misleading/wrong fd checks 2018-10-20 18:44:09 +00:00
srv.c libauth: change programs to use the new procsetuser() function 2020-12-19 18:02:37 +01:00
srvfs.c oexportfs: move legacy code for cpu and import to separate program 2020-12-13 20:09:03 +01:00
ssh.c ssh: work around github.com's broken cipher negotiation code (thanks Ori_B) 2019-05-27 02:11:16 +02:00
sshfs.c sshfs: update usage text to match man page 2020-07-29 13:56:03 +09:30
sshnet.c sshnet: prevent ssh process from keeping the mount alive 2020-05-26 21:37:25 +02:00
stats.c stats: don't query battery and temp as often when using acpi 2021-01-22 10:15:36 +01:00
strings.c
strip.c
sum.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
swap.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
tail.c
tar.c Parse global pax header in the right place. 2019-11-15 13:26:25 -08:00
tee.c
test.c test: fix expression parser 2021-02-06 15:51:09 +10:30
time.c
timepic.c timepic: string support 2015-09-29 20:49:28 +02:00
tlsclient.c tlsclient: allow dumping the server's certificate with new -d flag 2018-01-06 07:43:08 +01:00
tlssrv.c cmd/ip/*: chown the network connection after authentication 2019-09-21 23:36:44 +02:00
touch.c
touchfs.c
tprof.c
tput.c tput: check sbrk return value 2015-08-25 03:06:36 -07:00
tr.c
trace.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
truetypefs.c truetypefs: fall back to width if advance is zero 2018-10-12 08:34:17 -07:00
ttfrender.c add ttfrender(1) 2018-06-09 14:34:44 +00:00
tweak.c tweak: support showdata plumb action (thanks sirjofri) 2021-01-16 18:30:50 +01:00
uhtml.c uhtml: dont trust charset=utf-8 attribute, verify. 2016-03-13 23:47:24 +01:00
unicode.c
uniq.c
units.y
unlnfs.c
unmount.c
urlencode.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
walk.c walk: add D and T fmt characters (fileserver device/type) 2020-01-28 01:27:41 +00:00
wc.c improve usage messages (thanks henesy) 2020-03-10 10:09:34 -07:00
webcookies.c webcookies: remove straggling custom date parser 2021-01-19 18:14:53 -08:00
winwatch.c winwatch: always reflow when possible (thanks telephil9) 2021-02-02 11:56:45 +01:00
xargs.c
xd.c xd: use new bio magic to make -u more efficient 2017-06-12 19:56:57 +00:00
yacc.c stop fiddling with path construction. 2020-05-13 18:50:01 -07:00