]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
5 years agomerge
cinap_lenrek [Thu, 11 Oct 2018 16:34:14 +0000 (18:34 +0200)]
merge

5 years agondb/dns: use nil for pointers in dnresolve() args
cinap_lenrek [Thu, 11 Oct 2018 16:32:31 +0000 (18:32 +0200)]
ndb/dns: use nil for pointers in dnresolve() args

5 years agondb/dns: do recursive lookup for dnsslave=
cinap_lenrek [Thu, 11 Oct 2018 16:31:35 +0000 (18:31 +0200)]
ndb/dns: do recursive lookup for dnsslave=

5 years agondb/dns: avoid format strings in procname
cinap_lenrek [Thu, 11 Oct 2018 16:29:17 +0000 (18:29 +0200)]
ndb/dns: avoid format strings in procname

5 years agogames/gb: when the LCD is turned off, reset ppuy and ppustate to 0, fixes bug in...
aiju [Thu, 11 Oct 2018 16:25:11 +0000 (16:25 +0000)]
games/gb: when the LCD is turned off, reset ppuy and ppustate to 0, fixes bug in dragon warriors iii reported by mischief

5 years agoetheriwl: support type 2000 devices and the 2200 chip in x230t
mischief [Wed, 10 Oct 2018 23:37:13 +0000 (16:37 -0700)]
etheriwl: support type 2000 devices and the 2200 chip in x230t

5 years agonusb/joy: send magic packet to enable playstation controller events
mischief [Wed, 10 Oct 2018 20:56:28 +0000 (13:56 -0700)]
nusb/joy: send magic packet to enable playstation controller events

5 years agonusbrc: prevent nusb/kb from attaching to sony ps3 controller
mischief [Wed, 10 Oct 2018 20:49:03 +0000 (13:49 -0700)]
nusbrc: prevent nusb/kb from attaching to sony ps3 controller

5 years agohget: do a HEAD request to check if the file is already complete (thanks miscief)
cinap_lenrek [Wed, 10 Oct 2018 00:45:11 +0000 (02:45 +0200)]
hget: do a HEAD request to check if the file is already complete (thanks miscief)

when we continue a download, make sure the file isnt already
complete, as otherwise the server might respond with a 416
as the range request will out of range.

5 years agondb/dnstcp: return a proper non-answer when rejecting zone transfer
cinap_lenrek [Tue, 9 Oct 2018 04:34:27 +0000 (06:34 +0200)]
ndb/dnstcp: return a proper non-answer when rejecting zone transfer

5 years agondb/dns: fix format print warning for procsetname(), cleanup
cinap_lenrek [Tue, 9 Oct 2018 04:08:48 +0000 (06:08 +0200)]
ndb/dns: fix format print warning for procsetname(), cleanup

5 years agondb/dns: send_notify() to multiple ip addresses in parallel, filter myip()
cinap_lenrek [Tue, 9 Oct 2018 04:07:51 +0000 (06:07 +0200)]
ndb/dns: send_notify() to multiple ip addresses in parallel, filter myip()

5 years agondb/dnstcp: restrict DNS zone transfers to clients listed as dnsslave=
cinap_lenrek [Tue, 9 Oct 2018 04:02:36 +0000 (06:02 +0200)]
ndb/dnstcp: restrict DNS zone transfers to clients listed as dnsslave=

initial idea from Steve Simon, but doesnt require reverse
lookup of the callers ip address.

5 years agousbxhci: only clear RW1C bits when set.
cinap_lenrek [Mon, 8 Oct 2018 05:10:59 +0000 (07:10 +0200)]
usbxhci: only clear RW1C bits when set.

5 years agousbxhci: delay after reset, preserve reserved bits in legacy status control register...
cinap_lenrek [Mon, 8 Oct 2018 05:05:28 +0000 (07:05 +0200)]
usbxhci: delay after reset, preserve reserved bits in legacy status control register in handoff()

when clering smi enable bits in the legacy control/status register,
preserve the reserved bits. clear the RW1C bits.

linux code claims intel xhci controller needs a 1ms delay before
accessing any register after reset.

5 years agoremove /lib/tftpd from proto file
cinap_lenrek [Mon, 8 Oct 2018 00:18:02 +0000 (02:18 +0200)]
remove /lib/tftpd from proto file

5 years agoget rid of /lib/tftpd
cinap_lenrek [Mon, 8 Oct 2018 00:13:29 +0000 (02:13 +0200)]
get rid of /lib/tftpd

5 years agoip/dhcpd, ip/tftpd: change default for tftp homedir to /
cinap_lenrek [Mon, 8 Oct 2018 00:11:36 +0000 (02:11 +0200)]
ip/dhcpd, ip/tftpd: change default for tftp homedir to /

5 years agopc drivers: more pci cleanup
cinap_lenrek [Sun, 7 Oct 2018 21:38:41 +0000 (23:38 +0200)]
pc drivers: more pci cleanup

5 years agopc drivers: use pcienable() to handle device power up and missing initialization
cinap_lenrek [Sun, 7 Oct 2018 20:28:21 +0000 (22:28 +0200)]
pc drivers: use pcienable() to handle device power up and missing initialization

5 years agopc, pc64: add pcienable() and pcidisable() functions
cinap_lenrek [Sun, 7 Oct 2018 19:52:53 +0000 (21:52 +0200)]
pc, pc64: add pcienable() and pcidisable() functions

pcienable() puts a device in fully powered on state
and does some missing initialization that UEFI might
have skipped such as I/O and Memory requests being
disabled.

pcidisable() is ment to shutdown the device, but
currently just disables dma to prevent accidents.

5 years agoadd (unfinished but working) truetypefs
aiju [Sun, 7 Oct 2018 11:11:39 +0000 (11:11 +0000)]
add (unfinished but working) truetypefs

5 years ago9boot: get rid of 64 byte line length limit
cinap_lenrek [Sat, 6 Oct 2018 00:42:53 +0000 (02:42 +0200)]
9boot: get rid of 64 byte line length limit

5 years agomerge
cinap_lenrek [Fri, 5 Oct 2018 22:30:59 +0000 (00:30 +0200)]
merge

5 years agousbehci, usbxhci: add *noehcihandoff= and *noxhcihandoff= parameters
cinap_lenrek [Fri, 5 Oct 2018 22:29:05 +0000 (00:29 +0200)]
usbehci, usbxhci: add *noehcihandoff= and *noxhcihandoff= parameters

on Samsung ATIV Smart PC Pro XE00T1C-A01CL, the EHCI handoff
causes the system to freeze in UEFI mode as soon as we assert
the os semaphore bit.

until a general solution is found, provide these parameters to
disable the handoff for now as it seems to otherwise work fine.

5 years agopc, pc64: increase CONFADDR buffer from 4K to 24K
cinap_lenrek [Fri, 5 Oct 2018 22:26:07 +0000 (00:26 +0200)]
pc, pc64: increase CONFADDR buffer from 4K to 24K

move APBOOTSTRAP and TMPADDR to make space available for
boot parameters. which can become quite long such as *e820.

5 years agofortunes: I'm beginning to wonder if anyone is left that isn't part of 9front? -...
stanley lieber [Fri, 5 Oct 2018 03:23:50 +0000 (23:23 -0400)]
fortunes: I'm beginning to wonder if anyone is left that isn't part of 9front? -- Steve Stallion

5 years agocpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs)
cinap_lenrek [Tue, 2 Oct 2018 22:53:10 +0000 (00:53 +0200)]
cpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs)

5 years agodevip: remove unused QLock from udp and icmpv6 control blocks (thanks brho)
cinap_lenrek [Tue, 2 Oct 2018 22:47:34 +0000 (00:47 +0200)]
devip: remove unused QLock from udp and icmpv6 control blocks (thanks brho)

5 years ago5i ki qi vi: avoid buffer overflow in command read loop
cinap_lenrek [Sat, 29 Sep 2018 11:58:08 +0000 (13:58 +0200)]
5i ki qi vi: avoid buffer overflow in command read loop

5 years agoaudio/libogg: sync to ogg v1.3.3
mischief [Sat, 29 Sep 2018 00:28:51 +0000 (17:28 -0700)]
audio/libogg: sync to ogg v1.3.3

this corresponds to upstream git commit 4380566a44b8d5e85ad511c9c17eb04197863ec5.

5 years ago5e: byte access incorrectly checked for long; brk has to round up addresses
aiju [Fri, 28 Sep 2018 22:53:24 +0000 (22:53 +0000)]
5e: byte access incorrectly checked for long; brk has to round up addresses

5 years agoip/ipconfig: silently ignore prefix information with Autonomous flag clear
cinap_lenrek [Fri, 28 Sep 2018 18:23:53 +0000 (20:23 +0200)]
ip/ipconfig: silently ignore prefix information with Autonomous flag clear

5 years agoip/ipconfig: default onlink and autoflag to 1
cinap_lenrek [Fri, 28 Sep 2018 16:16:08 +0000 (18:16 +0200)]
ip/ipconfig: default onlink and autoflag to 1

5 years agodevip: only add interface route for "on-link" prefixes
cinap_lenrek [Fri, 28 Sep 2018 16:13:01 +0000 (18:13 +0200)]
devip: only add interface route for "on-link" prefixes

when a prefix is added with the onlink flag clear, packets
towards that prefix needs to be send to the default gateway
so we omit adding the interface route.

when the on-link flag gets changed to 1 later, we add the
interface route.

the on-link flag is sticky, so theres no way to clear it back
to zero except removing and re-adding the prefix.

5 years agovt: fix backup/forward after resize
cinap_lenrek [Thu, 27 Sep 2018 14:08:51 +0000 (16:08 +0200)]
vt: fix backup/forward after resize

5 years agovt: implement word select
cinap_lenrek [Thu, 27 Sep 2018 13:24:41 +0000 (15:24 +0200)]
vt: implement word select

5 years agoidn(2): add documentation for idn2utf() and utf2idn()
cinap_lenrek [Wed, 26 Sep 2018 13:58:19 +0000 (15:58 +0200)]
idn(2): add documentation for idn2utf() and utf2idn()

5 years agoprovide procsetname(2) manpage
cinap_lenrek [Wed, 26 Sep 2018 13:24:29 +0000 (15:24 +0200)]
provide procsetname(2) manpage

5 years agolibc: add procsetname()
cinap_lenrek [Wed, 26 Sep 2018 12:56:23 +0000 (14:56 +0200)]
libc: add procsetname()

5 years agolibc: return number of bytes produced for idn2utf() and utf2idn()
cinap_lenrek [Wed, 26 Sep 2018 12:32:17 +0000 (14:32 +0200)]
libc: return number of bytes produced for idn2utf() and utf2idn()

5 years agoip/ipconfig: increase maximum host and domainname size to 255 bytes. idn for -h option
cinap_lenrek [Tue, 25 Sep 2018 19:51:57 +0000 (21:51 +0200)]
ip/ipconfig: increase maximum host and domainname size to 255 bytes. idn for -h option

5 years agondb/inform: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:59:08 +0000 (20:59 +0200)]
ndb/inform: handle internationalized domain names

5 years agomerge
cinap_lenrek [Tue, 25 Sep 2018 18:45:11 +0000 (20:45 +0200)]
merge

5 years agoip/ipconfig: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:43:37 +0000 (20:43 +0200)]
ip/ipconfig: handle internationalized domain names

5 years agoip/dhcp6d: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:28:19 +0000 (20:28 +0200)]
ip/dhcp6d: handle internationalized domain names

5 years agoip/dhcpd: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:17:56 +0000 (20:17 +0200)]
ip/dhcpd: handle internationalized domain names

5 years agondb/dns: use libc's new idn functions
cinap_lenrek [Tue, 25 Sep 2018 18:17:00 +0000 (20:17 +0200)]
ndb/dns: use libc's new idn functions

5 years agowebfs: remove idn.c
cinap_lenrek [Tue, 25 Sep 2018 18:16:06 +0000 (20:16 +0200)]
webfs: remove idn.c

5 years agowebfs: fix memory leak in Nfmt(), use libc's new idn functions
cinap_lenrek [Tue, 25 Sep 2018 18:15:24 +0000 (20:15 +0200)]
webfs: fix memory leak in Nfmt(), use libc's new idn functions

5 years agolibc: add utf2idn() and idn2utf() functions to deal with internationalized domain...
cinap_lenrek [Tue, 25 Sep 2018 18:14:25 +0000 (20:14 +0200)]
libc: add utf2idn() and idn2utf() functions to deal with internationalized domain names

5 years agomerge
cinap_lenrek [Tue, 25 Sep 2018 13:06:13 +0000 (15:06 +0200)]
merge

5 years agoip/dhcpd: implement rfc3397 dhcp search domain option (dnsdomain)
cinap_lenrek [Tue, 25 Sep 2018 13:04:19 +0000 (15:04 +0200)]
ip/dhcpd: implement rfc3397 dhcp search domain option (dnsdomain)

5 years agoip/ipconfig: implement rfc3397 dhcp dns search option (dnsdomain)
cinap_lenrek [Tue, 25 Sep 2018 13:02:29 +0000 (15:02 +0200)]
ip/ipconfig: implement rfc3397 dhcp dns search option (dnsdomain)

5 years agoDisallow '/' in file names.
Ori Bernstein [Tue, 25 Sep 2018 08:02:31 +0000 (01:02 -0700)]
Disallow '/' in file names.

A bad rename call could send a path with a '/' to cwfs.
This is invalid, and should be disallowed.

5 years agoip/ipconfig: handle noconfig flag for router advertisement, add debug prints, cleanup
cinap_lenrek [Mon, 24 Sep 2018 11:56:25 +0000 (13:56 +0200)]
ip/ipconfig: handle noconfig flag for router advertisement, add debug prints, cleanup

5 years agolibhtml: increase Nestmax to render some convoluted pages (thanks fernan)
cinap_lenrek [Sun, 23 Sep 2018 21:35:41 +0000 (23:35 +0200)]
libhtml: increase Nestmax to render some convoluted pages (thanks fernan)

example page with broken citation list numbering:

https://en.m.wikipedia.org/wiki/Commodore_64

5 years agodevip, ipconfig: avoid overflow on lifetime checks
cinap_lenrek [Sun, 23 Sep 2018 20:07:56 +0000 (22:07 +0200)]
devip, ipconfig: avoid overflow on lifetime checks

5 years agodevip: valid and prefered life-time should be unsigned, add remove6 ctl command
cinap_lenrek [Sun, 23 Sep 2018 17:09:48 +0000 (19:09 +0200)]
devip: valid and prefered life-time should be unsigned, add remove6 ctl command

5 years agodevip: fix default parameter calculation for router life-time
cinap_lenrek [Sun, 23 Sep 2018 17:08:16 +0000 (19:08 +0200)]
devip: fix default parameter calculation for router life-time

router life time is in seconds, while max ra interval is
in milliseconds!

5 years agodevip: make updating ra6 router parameters atomic
cinap_lenrek [Sun, 23 Sep 2018 15:24:59 +0000 (17:24 +0200)]
devip: make updating ra6 router parameters atomic

when we fail to parse and validate the command, no update
should take place.

5 years agoip/ipconfig: valid lifetime is in seconds, not milliseconds.
cinap_lenrek [Sun, 23 Sep 2018 15:14:29 +0000 (17:14 +0200)]
ip/ipconfig: valid lifetime is in seconds, not milliseconds.

5 years agoip/ipconfig: remove expired default routes on router advertisement
cinap_lenrek [Sun, 23 Sep 2018 00:08:59 +0000 (02:08 +0200)]
ip/ipconfig: remove expired default routes on router advertisement

5 years agokeyboard(2) spelling (thanks Amavect)
23hiro [Sat, 22 Sep 2018 07:41:16 +0000 (09:41 +0200)]
keyboard(2) spelling (thanks Amavect)

5 years agovt: make selecting() wait until all buttons are lifted avoiding menu when chording
cinap_lenrek [Thu, 20 Sep 2018 19:25:38 +0000 (21:25 +0200)]
vt: make selecting() wait until all buttons are lifted avoiding menu when chording

5 years agovt: implement line selection by double click
cinap_lenrek [Thu, 20 Sep 2018 19:07:10 +0000 (21:07 +0200)]
vt: implement line selection by double click

5 years agocfs: close mount half of pipe, fixes cfs not exiting when unmounted
mischief [Wed, 19 Sep 2018 20:27:55 +0000 (13:27 -0700)]
cfs: close mount half of pipe, fixes cfs not exiting when unmounted

5 years agokprof: fix precedence (thanks geoff)
cinap_lenrek [Tue, 18 Sep 2018 23:11:49 +0000 (01:11 +0200)]
kprof: fix precedence (thanks geoff)

5 years agosum, md5sum, sha1sum: set exit status properly on open/read errors
mischief [Tue, 18 Sep 2018 22:58:22 +0000 (15:58 -0700)]
sum, md5sum, sha1sum: set exit status properly on open/read errors

5 years agowebfs: remove automatic Referer header
mischief [Tue, 18 Sep 2018 20:14:00 +0000 (13:14 -0700)]
webfs: remove automatic Referer header

automatic Referer headers were found to break downloads from
sourceforge.net, causing html pages to appear instead of tarballs.

if a website does need them, they can be added as needed via hget's -r
flag, or added to mothra.

reverts commits 67f536d20329 and 6d999c39a9f0

5 years agomtx, ppc: remove cistrcmp() and cistrncmp() redefinition
cinap_lenrek [Tue, 18 Sep 2018 17:34:29 +0000 (19:34 +0200)]
mtx, ppc: remove cistrcmp() and cistrncmp() redefinition

5 years agokernel: fix livelock in rebalance (thanks Richard Miller)
cinap_lenrek [Mon, 17 Sep 2018 22:53:05 +0000 (00:53 +0200)]
kernel: fix livelock in rebalance (thanks Richard Miller)

Once a second rebalance() is called on cpu0 to adjust priorities,
so cpu-bound processes won't lock others out.  However it was only
adjusting processes which were running on cpu0.  This was observed
to lead to livelock, eg when a higher-priority process spin-waits
for a lock held by a lower priority one.

5 years agoboot(8): document tls and reboot methods
cinap_lenrek [Mon, 17 Sep 2018 16:09:33 +0000 (18:09 +0200)]
boot(8): document tls and reboot methods

5 years agobootrc: add experimental reboot method to load another kernel
cinap_lenrek [Sun, 16 Sep 2018 20:35:16 +0000 (22:35 +0200)]
bootrc: add experimental reboot method to load another kernel

syntax: reboot!bootfile[!method...]

this echos bootfile to /dev/reboot, causing bootfile kernel
to be started.

when method is given, we first connect to the filesystem and
set bootargs so that bootfile can be loaded from the target
network or local fileserver.

note, when no bootfile is given, this causes the kernel to
reboot to bios.

5 years agolibndb: add missing ndbdedup.c
cinap_lenrek [Sun, 16 Sep 2018 13:27:17 +0000 (15:27 +0200)]
libndb: add missing ndbdedup.c

5 years ago9boot: don't let user erase the prompt (thanks mischief)
cinap_lenrek [Sun, 16 Sep 2018 11:47:33 +0000 (13:47 +0200)]
9boot: don't let user erase the prompt (thanks mischief)

5 years agocpurc: handle multiple auth servers
cinap_lenrek [Sun, 16 Sep 2018 10:43:21 +0000 (12:43 +0200)]
cpurc: handle multiple auth servers

5 years agonetaudit: handle multiple ip addresses
cinap_lenrek [Sun, 16 Sep 2018 10:40:48 +0000 (12:40 +0200)]
netaudit: handle multiple ip addresses

5 years agolibndb: make ndbipinfo() walk ipnet for all matching entries, concatenate and dedup...
cinap_lenrek [Sun, 16 Sep 2018 10:39:47 +0000 (12:39 +0200)]
libndb: make ndbipinfo() walk ipnet for all matching entries, concatenate and dedup result

5 years agoip/tftpd: remove sunkernel hack
cinap_lenrek [Thu, 13 Sep 2018 20:15:42 +0000 (22:15 +0200)]
ip/tftpd: remove sunkernel hack

5 years agoape/make: fix \ line continuation parsing
cinap_lenrek [Thu, 13 Sep 2018 09:54:20 +0000 (11:54 +0200)]
ape/make: fix \ line continuation parsing

5 years agoport: sync two longjmp fixes from drawterm
mischief [Wed, 12 Sep 2018 07:35:45 +0000 (00:35 -0700)]
port: sync two longjmp fixes from drawterm

see drawterm commits f5e26ae93a6a and fa388286b4ca

5 years agosdahci(3): correct device name for top level control messages (thanks joe9)
mischief [Tue, 11 Sep 2018 07:23:35 +0000 (00:23 -0700)]
sdahci(3): correct device name for top level control messages (thanks joe9)

5 years agoatazz(8): fix probe formatting
mischief [Tue, 11 Sep 2018 06:39:58 +0000 (23:39 -0700)]
atazz(8): fix probe formatting

5 years agondb/cs: don't do dns lookups when all we got is loopback or link local addresses
cinap_lenrek [Sun, 9 Sep 2018 13:38:53 +0000 (15:38 +0200)]
ndb/cs: don't do dns lookups when all we got is loopback or link local addresses

5 years agolibip: ignore ipv6 link local addresses for myipaddr()
cinap_lenrek [Sun, 9 Sep 2018 13:35:14 +0000 (15:35 +0200)]
libip: ignore ipv6 link local addresses for myipaddr()

5 years agodevarch: reading msr 0xffffffff
cinap_lenrek [Sat, 8 Sep 2018 23:53:53 +0000 (01:53 +0200)]
devarch: reading msr 0xffffffff

5 years agodevarch: restrict i/o port access to 64K, disallow msr 32-bit wrap arround (thanks...
cinap_lenrek [Sat, 8 Sep 2018 23:41:35 +0000 (01:41 +0200)]
devarch: restrict i/o port access to 64K, disallow msr 32-bit wrap arround (thanks aiju)

5 years agostats: fix etherstats, avoid vmax == 0
cinap_lenrek [Sat, 8 Sep 2018 22:24:43 +0000 (00:24 +0200)]
stats: fix etherstats, avoid vmax == 0

5 years agolibmach: substitute /dev/zero for /proc/$pid/fpregs when missing (for snapfs)
cinap_lenrek [Sat, 8 Sep 2018 21:31:30 +0000 (23:31 +0200)]
libmach: substitute /dev/zero for /proc/$pid/fpregs when missing (for snapfs)

5 years agodevarch: fix /dev/msr (thanks joe9, aiju)
cinap_lenrek [Sat, 8 Sep 2018 20:24:36 +0000 (22:24 +0200)]
devarch: fix /dev/msr (thanks joe9, aiju)

the end condition port < offset+n could never become
false when offset truncated to 32 bit signed port is
negative. change the condition variables to unsigned
int.

msr's are not byte addressible, so advance reads by
one instead of 8.

5 years agolibvorbis: fix broken free() (thanks mischief)
cinap_lenrek [Sat, 8 Sep 2018 13:15:08 +0000 (15:15 +0200)]
libvorbis: fix broken free() (thanks mischief)

5 years agomerge
cinap_lenrek [Sat, 8 Sep 2018 12:50:41 +0000 (14:50 +0200)]
merge

5 years agorc: fix Xpipefd unbalancing the redir stack
cinap_lenrek [Sat, 8 Sep 2018 12:49:00 +0000 (14:49 +0200)]
rc: fix Xpipefd unbalancing the redir stack

Xpipefd wants the pipe descriptor to be closed in turfredir(), so
it pushes the redirection, but this breaks Xpopredir after normal
redirection. so we shuffle the Xpipefd redir to the bottom of the
stack.

5 years agofortunes: I've been looking into running Plan 9 in JSLinux -- Skip Tavakkolian
stanley lieber [Thu, 6 Sep 2018 23:08:57 +0000 (19:08 -0400)]
fortunes: I've been looking into running Plan 9 in JSLinux -- Skip Tavakkolian

5 years agoaudio/libogg: nuke old libogg.au
mischief [Wed, 5 Sep 2018 15:37:01 +0000 (08:37 -0700)]
audio/libogg: nuke old libogg.au

5 years agovt: fix selection past baseline (thanks BurnZeZ)
cinap_lenrek [Tue, 4 Sep 2018 18:55:10 +0000 (20:55 +0200)]
vt: fix selection past baseline (thanks BurnZeZ)

5 years agovt: fix selrange() to recover whitespace indention
cinap_lenrek [Mon, 3 Sep 2018 20:37:45 +0000 (22:37 +0200)]
vt: fix selrange() to recover whitespace indention

5 years agovt: get rid of "clear" menu entry, fix 24x80 resize, reset selection on setdim()...
cinap_lenrek [Mon, 3 Sep 2018 19:51:32 +0000 (21:51 +0200)]
vt: get rid of "clear" menu entry, fix 24x80 resize, reset selection on setdim(), document snarf/plumb

5 years agovt: fix plumbsel(), snarfsel()
cinap_lenrek [Mon, 3 Sep 2018 18:54:26 +0000 (20:54 +0200)]
vt: fix plumbsel(), snarfsel()

- plumbsel()
- remove debug prints
- use smalloc() to convert to bytes
- fix spurious -1 close of plumb fd

- snarfsel()
- fix rune buffer leak in open error case