]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
7 years agoigfx: add support for haswell graphics
qwx [Mon, 22 May 2017 16:19:24 +0000 (18:19 +0200)]
igfx: add support for haswell graphics

add support for edp, dp and hdmi on haswell and haswell ult.
vga, dvi and specific configurations like ulx are unimplemented.

remaining issue: edp link training always fails (time out).

7 years agoio(1): %llx -> %ullx
aiju [Mon, 22 May 2017 09:04:51 +0000 (09:04 +0000)]
io(1): %llx -> %ullx

7 years agolibmach: fix wrong offset bug (thanks cinap); add VMX instructions
aiju [Mon, 22 May 2017 00:40:18 +0000 (00:40 +0000)]
libmach: fix wrong offset bug (thanks cinap); add VMX instructions

7 years agokernel: avoid panic with segio and SG_FAULT segments
cinap_lenrek [Sun, 21 May 2017 14:36:11 +0000 (16:36 +0200)]
kernel: avoid panic with segio and SG_FAULT segments

the problem is that segio doesnt check segment attributes
and it can't really in case of SG_FAULT which can be
inherited from pseg and toggle at any time.

so instead of returning -1 from fault into the fault$cputype
handler which then panics when fault happend kernel mode,
we jump into segio's waserror() block just like in the
demand load i/o error case (faulterror()).

7 years agovt: don't flush while there is keyboard input available
cinap_lenrek [Sat, 20 May 2017 12:45:47 +0000 (14:45 +0200)]
vt: don't flush while there is keyboard input available

7 years ago/sys/lib/acid/port: make line() also print the line number
BurnZeZ [Thu, 11 May 2017 19:34:54 +0000 (19:34 +0000)]
/sys/lib/acid/port: make line() also print the line number

7 years ago/sys/doc: fix mkfile to and remove files that now can be regenerated
cinap_lenrek [Tue, 9 May 2017 14:23:48 +0000 (16:23 +0200)]
/sys/doc: fix mkfile to and remove files that now can be regenerated

7 years agotroff: charlib: fix right hand special character
cinap_lenrek [Tue, 9 May 2017 14:10:44 +0000 (16:10 +0200)]
troff: charlib: fix right hand special character

7 years agorio: implement writable and truncatable /dev/text
cinap_lenrek [Sun, 7 May 2017 17:05:12 +0000 (19:05 +0200)]
rio: implement writable and truncatable /dev/text

7 years agokernel: fix namelenerror(), avoid memrchr() and make it static
cinap_lenrek [Sun, 7 May 2017 16:13:37 +0000 (18:13 +0200)]
kernel: fix namelenerror(), avoid memrchr() and make it static

make sure the loop terminates and doesnt get stuck at
name == aname. avoid memrchr() as it conflicts with
libc on unix (drawterm). declare namelenerror() as
static.

7 years agoupdate ape/bio.h (thanks jpm)
aiju [Sat, 6 May 2017 14:33:52 +0000 (14:33 +0000)]
update ape/bio.h (thanks jpm)

7 years agodevproc: can't wait for ourselfs to stop (thanks Shamar)
cinap_lenrek [Fri, 5 May 2017 22:49:47 +0000 (00:49 +0200)]
devproc: can't wait for ourselfs to stop (thanks Shamar)

7 years agoaux/statusmsg: use libbio for textmode output
BurnZeZ [Fri, 5 May 2017 21:43:30 +0000 (21:43 +0000)]
aux/statusmsg: use libbio for textmode output

calling write(1, "\b", 1); for each rune to be removed is a lot of
overhead, and we don’t want rio to turn each of these writes into a
draw operation.

also, it now prints to stderr before exiting if initdraw() fails

7 years agossh: add -h flag to pass host (for compatibility)
cinap_lenrek [Fri, 5 May 2017 19:04:31 +0000 (21:04 +0200)]
ssh: add -h flag to pass host (for compatibility)

7 years agosed: add -u flag that flushes output buffers before reading in further input
aiju [Fri, 5 May 2017 08:22:13 +0000 (08:22 +0000)]
sed: add -u flag that flushes output buffers before reading in further input

7 years agobio(2): manpage typo
aiju [Thu, 4 May 2017 17:47:03 +0000 (17:47 +0000)]
bio(2): manpage typo

7 years agobio: add support for custom I/O handler via Biofn
aiju [Thu, 4 May 2017 17:42:12 +0000 (17:42 +0000)]
bio: add support for custom I/O handler via Biofn

7 years agossh(1): document -T tries option, #subsys cmd behaviour
cinap_lenrek [Wed, 3 May 2017 18:56:20 +0000 (20:56 +0200)]
ssh(1): document -T tries option, #subsys cmd behaviour

7 years agossh: quote cmd arguments with unix shell single quotes, request tty even with TERM...
cinap_lenrek [Wed, 3 May 2017 18:55:32 +0000 (20:55 +0200)]
ssh: quote cmd arguments with unix shell single quotes, request tty even with TERM=dumb

7 years agoctime(2): fix example (thanks raiz)
cinap_lenrek [Wed, 3 May 2017 18:47:46 +0000 (20:47 +0200)]
ctime(2): fix example (thanks raiz)

raiz → the reason that the manpage example works not because
it's a correct timezone file format, but because readtimezone()
(in libc) fails and defaults to GMT.

7 years agoupas/fs: handle partial fetches (imap server returning less messages than available)
cinap_lenrek [Tue, 2 May 2017 02:07:21 +0000 (04:07 +0200)]
upas/fs: handle partial fetches (imap server returning less messages than available)

7 years agoinst/configether: in manual network configuration, ask for dns server
cinap_lenrek [Mon, 1 May 2017 20:50:16 +0000 (22:50 +0200)]
inst/configether: in manual network configuration, ask for dns server

7 years agodist/ndb: move sources auth server to ndb/common, list root dns servers in ndb/local...
cinap_lenrek [Mon, 1 May 2017 20:49:35 +0000 (22:49 +0200)]
dist/ndb: move sources auth server to ndb/common, list root dns servers in ndb/local as a fallback

7 years ago5e: fix special bitshift and rotations
cinap_lenrek [Mon, 1 May 2017 18:22:23 +0000 (20:22 +0200)]
5e: fix special bitshift and rotations

7 years agovt(1): the "send" menu became "paste"
cinap_lenrek [Mon, 1 May 2017 00:31:50 +0000 (02:31 +0200)]
vt(1): the "send" menu became "paste"

7 years agosshfs(4): fix bad cross reference
cinap_lenrek [Mon, 1 May 2017 00:18:09 +0000 (02:18 +0200)]
sshfs(4): fix bad cross reference

7 years agovgamach64xx: remove drawdebug reference
cinap_lenrek [Mon, 1 May 2017 00:15:03 +0000 (02:15 +0200)]
vgamach64xx: remove drawdebug reference

7 years agomerge
cinap_lenrek [Sun, 30 Apr 2017 22:03:01 +0000 (00:03 +0200)]
merge

7 years agoip/torrent: avoid requesting same chunks
cinap_lenrek [Sun, 30 Apr 2017 22:01:14 +0000 (00:01 +0200)]
ip/torrent: avoid requesting same chunks

instead of always just requesting the missing range
of the current piece, remember the workpiece offset
and request sequential chunks from the workpiece.

this avoids double requests of the same ranges when
the peer does not respond with the data immidiately.

7 years agolibregexp: miscellaneous little cleanups
spew [Sun, 30 Apr 2017 20:08:36 +0000 (15:08 -0500)]
libregexp: miscellaneous little cleanups

7 years agosshfs: fix -r / retulting in "//foo" paths, memory leaks, use estrdup9p()
cinap_lenrek [Sun, 30 Apr 2017 16:28:06 +0000 (18:28 +0200)]
sshfs: fix -r / retulting in "//foo" paths, memory leaks, use estrdup9p()

just use cleanname() to implement pathcat(), which
handles double slashes and ".." elements already.

have to free the partial dir structue on error in
parsedir().

use estrdup9p() instead of strdup().

7 years agovnc: substitute iprint() with fprint(2, (gone from libmemdraw)
cinap_lenrek [Sun, 30 Apr 2017 02:06:03 +0000 (04:06 +0200)]
vnc: substitute iprint() with fprint(2, (gone from libmemdraw)

7 years agokernel: fix rewinding in directories with pread() offset
cinap_lenrek [Sat, 29 Apr 2017 23:51:07 +0000 (01:51 +0200)]
kernel: fix rewinding in directories with pread() offset

reading directories with pread() offset has to work the same
way as read(), otherwise exportfs breaks rewinding in directories.

7 years agolib9p: allow rewinding in 9pfile directories
cinap_lenrek [Sat, 29 Apr 2017 23:49:21 +0000 (01:49 +0200)]
lib9p: allow rewinding in 9pfile directories

7 years agolibmemdraw: get rid of kernel iprint() emulation
cinap_lenrek [Sat, 29 Apr 2017 19:13:48 +0000 (21:13 +0200)]
libmemdraw: get rid of kernel iprint() emulation

7 years agolibmemdraw/libmemlayer: get rid of drawdebug prints
cinap_lenrek [Sat, 29 Apr 2017 19:10:28 +0000 (21:10 +0200)]
libmemdraw/libmemlayer: get rid of drawdebug prints

7 years agodevdraw: ignore drawdebug command
cinap_lenrek [Sat, 29 Apr 2017 19:09:11 +0000 (21:09 +0200)]
devdraw: ignore drawdebug command

7 years agolibdraw: get rid of _drawdebug variable
cinap_lenrek [Sat, 29 Apr 2017 19:03:52 +0000 (21:03 +0200)]
libdraw: get rid of _drawdebug variable

7 years agosshfs: add -r and -M options
aiju [Sat, 29 Apr 2017 18:44:01 +0000 (18:44 +0000)]
sshfs: add -r and -M options

7 years agocwfs: allow "none" user to rename files
cinap_lenrek [Sat, 29 Apr 2017 15:28:35 +0000 (17:28 +0200)]
cwfs: allow "none" user to rename files

7 years agosshfs: don't crash when no /etc/password file could be read on the remote side
cinap_lenrek [Sat, 29 Apr 2017 14:25:48 +0000 (16:25 +0200)]
sshfs: don't crash when no /etc/password file could be read on the remote side

in a cygwin environment, theres no /etc/passwd file to
translate numeric uid/gid's. changing passwdparse() to
ignore nil string argument.

7 years agosshfs: check correctly for directory bits; calculate parent directory correctly
aiju [Fri, 28 Apr 2017 20:42:38 +0000 (20:42 +0000)]
sshfs: check correctly for directory bits; calculate parent directory correctly

7 years agosshfs: reset SReq->reqid field to fix double-free of request ids
aiju [Fri, 28 Apr 2017 18:45:32 +0000 (18:45 +0000)]
sshfs: reset SReq->reqid field to fix double-free of request ids

7 years agosshfs: remove debug print
aiju [Fri, 28 Apr 2017 18:32:04 +0000 (18:32 +0000)]
sshfs: remove debug print

7 years agosshfs: don't cache directory contents
aiju [Fri, 28 Apr 2017 18:21:03 +0000 (18:21 +0000)]
sshfs: don't cache directory contents

7 years agoadd sshfs(4) manpage
aiju [Fri, 28 Apr 2017 17:15:20 +0000 (17:15 +0000)]
add sshfs(4) manpage

7 years agosshfs: look up uid/gid from /etc/^(passwd group)
aiju [Fri, 28 Apr 2017 16:34:24 +0000 (16:34 +0000)]
sshfs: look up uid/gid from /etc/^(passwd group)

7 years agoadd sshfs
aiju [Fri, 28 Apr 2017 15:41:48 +0000 (15:41 +0000)]
add sshfs

7 years agossh: add support for subsystems
aiju [Fri, 28 Apr 2017 15:41:39 +0000 (15:41 +0000)]
ssh: add support for subsystems

7 years agoupas/fs: fix warning about unused Err: label
cinap_lenrek [Thu, 27 Apr 2017 18:06:00 +0000 (20:06 +0200)]
upas/fs: fix warning about unused Err: label

7 years agogames/md: copy updated cpu.c from blit
aiju [Thu, 27 Apr 2017 08:46:44 +0000 (08:46 +0000)]
games/md: copy updated cpu.c from blit

7 years agoadd blit(1) manpage
aiju [Thu, 27 Apr 2017 08:42:41 +0000 (08:42 +0000)]
add blit(1) manpage

7 years agossh: make number of retries configurable
aiju [Mon, 24 Apr 2017 23:26:43 +0000 (23:26 +0000)]
ssh: make number of retries configurable

7 years agossh: loop keyboard-interactive on failure
aiju [Mon, 24 Apr 2017 23:16:59 +0000 (23:16 +0000)]
ssh: loop keyboard-interactive on failure

7 years agossh: fix typo
aiju [Mon, 24 Apr 2017 16:07:34 +0000 (16:07 +0000)]
ssh: fix typo

7 years agossh: add "none" method to find out list of acceptable methods
aiju [Mon, 24 Apr 2017 16:04:09 +0000 (16:04 +0000)]
ssh: add "none" method to find out list of acceptable methods

7 years agolibavl: fix documentation
spew [Mon, 24 Apr 2017 15:50:03 +0000 (10:50 -0500)]
libavl: fix documentation

7 years agossh(1): refer to thumbprint(6) for the sshthumbs file format
cinap_lenrek [Mon, 24 Apr 2017 00:21:43 +0000 (02:21 +0200)]
ssh(1): refer to thumbprint(6) for the sshthumbs file format

7 years agossh: print the whole ssh-rsa hostkey in base64 when thumb check fails
cinap_lenrek [Sun, 23 Apr 2017 23:46:22 +0000 (01:46 +0200)]
ssh: print the whole ssh-rsa hostkey in base64 when thumb check fails

in addition to the thumbprint, also print the whole
hostkey in base64 (same format as openssh uses) to
make verification easier.

7 years agolibsec: sha256 support for thumbprint files, use it in ssh as well
cinap_lenrek [Sun, 23 Apr 2017 17:00:08 +0000 (19:00 +0200)]
libsec: sha256 support for thumbprint files, use it in ssh as well

initThumbprints() now takes an application tag argument
so x509 and ssh can coexist.

the thumbprint entries can now hold both sha1 and sha256
hashes. okThumbprint() now takes a len argument for the
hash length used.

the new function okCertificate() hashes the certificate
with both and checks for any matches.

on failure, okCertificate() returns 0 and sets error string.

we also check for include loops now in thumbfiles, limiting
the number of includes to 8.

7 years agoupas/fs: don't abort on malformed unix header
cinap_lenrek [Sun, 23 Apr 2017 16:42:26 +0000 (18:42 +0200)]
upas/fs: don't abort on malformed unix header

7 years agossh(1): add $home/lib/thumbfile to FILE section
cinap_lenrek [Sun, 23 Apr 2017 01:31:20 +0000 (03:31 +0200)]
ssh(1): add $home/lib/thumbfile to FILE section

7 years agossh: document thumbfile options
cinap_lenrek [Sun, 23 Apr 2017 00:59:32 +0000 (02:59 +0200)]
ssh: document thumbfile options

7 years agossh: implement primitive hostkey verification
cinap_lenrek [Sun, 23 Apr 2017 00:54:41 +0000 (02:54 +0200)]
ssh: implement primitive hostkey verification

this checks $home/lib/sshthumbs for the sha256 hash
of the hosts rsa public key. if its not there, it
prints the rc command to add it and exits.

7 years agossh(1): add bugs section about host not being authenticated
cinap_lenrek [Sat, 22 Apr 2017 23:11:12 +0000 (01:11 +0200)]
ssh(1): add bugs section about host not being authenticated

7 years agossh(1): initial documentation, needs examples for authentication
cinap_lenrek [Sat, 22 Apr 2017 22:42:33 +0000 (00:42 +0200)]
ssh(1): initial documentation, needs examples for authentication

7 years agovt: handle underline attribute
cinap_lenrek [Sat, 22 Apr 2017 20:52:34 +0000 (22:52 +0200)]
vt: handle underline attribute

7 years agomerge
cinap_lenrek [Sat, 22 Apr 2017 20:21:47 +0000 (22:21 +0200)]
merge

7 years agovt: handle nocolor flag and reversed background colors
cinap_lenrek [Sat, 22 Apr 2017 20:19:17 +0000 (22:19 +0200)]
vt: handle nocolor flag and reversed background colors

7 years agomerge
spew [Sat, 22 Apr 2017 19:28:34 +0000 (14:28 -0500)]
merge

7 years agoreplica: use libavl for avl tree implementation
spew [Sat, 22 Apr 2017 19:28:02 +0000 (14:28 -0500)]
replica: use libavl for avl tree implementation

7 years agovt: handle insert/delete/home/end keys for vt220/xterm
cinap_lenrek [Sat, 22 Apr 2017 19:07:53 +0000 (21:07 +0200)]
vt: handle insert/delete/home/end keys for vt220/xterm

7 years agolibavl: lookup can return the closest match
spew [Sat, 22 Apr 2017 18:59:37 +0000 (13:59 -0500)]
libavl: lookup can return the closest match

7 years agovt: handle application/normal mode (really fixes cursor keys)
cinap_lenrek [Sat, 22 Apr 2017 18:16:07 +0000 (20:16 +0200)]
vt: handle application/normal mode (really fixes cursor keys)

7 years agomerge
cinap_lenrek [Sat, 22 Apr 2017 16:21:57 +0000 (18:21 +0200)]
merge

7 years agovt: fix xterm cursor keys
cinap_lenrek [Sat, 22 Apr 2017 16:01:49 +0000 (18:01 +0200)]
vt: fix xterm cursor keys

7 years agomerge
cinap_lenrek [Sat, 22 Apr 2017 00:42:16 +0000 (02:42 +0200)]
merge

7 years agovt: fix background drawing
cinap_lenrek [Sat, 22 Apr 2017 00:41:00 +0000 (02:41 +0200)]
vt: fix background drawing

7 years agonusb/ptp: treat any assocation as a directory
mischief [Fri, 21 Apr 2017 22:09:50 +0000 (15:09 -0700)]
nusb/ptp: treat any assocation as a directory

previously nusb/ptp showed only 'generic folder' association type as directories, but all associations work as directories. tested with LG G5/android 7.0

7 years agomerge
cinap_lenrek [Fri, 21 Apr 2017 17:25:25 +0000 (19:25 +0200)]
merge

7 years agossh: actually handle flow control and channel id's
cinap_lenrek [Fri, 21 Apr 2017 17:23:56 +0000 (19:23 +0200)]
ssh: actually handle flow control and channel id's

7 years agofix yacc bug (found by dan cross)
aiju [Fri, 21 Apr 2017 17:16:44 +0000 (17:16 +0000)]
fix yacc bug (found by dan cross)

7 years agossh: increase initial window size for better throughput
cinap_lenrek [Thu, 20 Apr 2017 23:45:11 +0000 (01:45 +0200)]
ssh: increase initial window size for better throughput

7 years agorsa(8): fix description of rsa2ssh (now, ssh2 format only)
cinap_lenrek [Thu, 20 Apr 2017 22:23:46 +0000 (00:23 +0200)]
rsa(8): fix description of rsa2ssh (now, ssh2 format only)

7 years agossh: cleanup debug messages
cinap_lenrek [Thu, 20 Apr 2017 22:09:30 +0000 (00:09 +0200)]
ssh: cleanup debug messages

7 years agossh: do not try authentication methods that we know are not possible
cinap_lenrek [Thu, 20 Apr 2017 21:45:56 +0000 (23:45 +0200)]
ssh: do not try authentication methods that we know are not possible

7 years agossh: implement password and keyboard-interactive authentication methods
cinap_lenrek [Thu, 20 Apr 2017 20:28:21 +0000 (22:28 +0200)]
ssh: implement password and keyboard-interactive authentication methods

7 years agovt: cursoron, don't resize winow when replying history
cinap_lenrek [Wed, 19 Apr 2017 20:34:47 +0000 (22:34 +0200)]
vt: cursoron, don't resize winow when replying history

7 years agossh: fix locking, and key reexchange handling
cinap_lenrek [Wed, 19 Apr 2017 19:03:26 +0000 (21:03 +0200)]
ssh: fix locking, and key reexchange handling

when we initiate re-key exchange we data packets can still
come in. so instead we have everything that can come in all
the time in dispatch() function (including KEXINIT) and have
the receiver process just call that in a loop. exclude dispatch
and the sender proc from corrupting each others sendpkt() calls
with the QLock sl.

7 years ago/lib/rob, /lib/theo: I don't think so.
stanley lieber [Wed, 19 Apr 2017 17:38:30 +0000 (13:38 -0400)]
/lib/rob, /lib/theo: I don't think so.

7 years agoremove accidentally pushed change to .hgignore
aiju [Wed, 19 Apr 2017 10:16:00 +0000 (10:16 +0000)]
remove accidentally pushed change to .hgignore

7 years agoblit: always show top-left corner; add tony kaku's -m flag
aiju [Wed, 19 Apr 2017 10:13:36 +0000 (10:13 +0000)]
blit: always show top-left corner; add tony kaku's -m flag

7 years agochange cpurc to look for service folder in /cfg/$sysname and /cfg/default
aiju [Wed, 19 Apr 2017 09:00:44 +0000 (09:00 +0000)]
change cpurc to look for service folder in /cfg/$sysname and /cfg/default

7 years agodisable all services except 17019, 17020 by default
aiju [Wed, 19 Apr 2017 08:51:18 +0000 (08:51 +0000)]
disable all services except 17019, 17020 by default

7 years agovt: but not too fast :-)
cinap_lenrek [Wed, 19 Apr 2017 00:18:28 +0000 (02:18 +0200)]
vt: but not too fast :-)

if drawing can't keep up with the host, make sure we
eventually redraw the screen and check for user events.

7 years agovt: make it fast
cinap_lenrek [Tue, 18 Apr 2017 23:46:20 +0000 (01:46 +0200)]
vt: make it fast

7 years agovt: send interrupt on exit, open logfile OCEXEC, run host after environment got expor...
cinap_lenrek [Tue, 18 Apr 2017 01:13:15 +0000 (03:13 +0200)]
vt: send interrupt on exit, open logfile OCEXEC, run host after environment got exported, send rest of arguments to host

7 years agossh: close the channel when vt hangs up
cinap_lenrek [Tue, 18 Apr 2017 01:06:39 +0000 (03:06 +0200)]
ssh: close the channel when vt hangs up

7 years agovt: allow for a bit of buffering
cinap_lenrek [Mon, 17 Apr 2017 22:21:51 +0000 (00:21 +0200)]
vt: allow for a bit of buffering

7 years agovt: convert from event to threads
cinap_lenrek [Mon, 17 Apr 2017 22:18:03 +0000 (00:18 +0200)]
vt: convert from event to threads

the event library doesnt do any flow control. if the host
keeps sending data while the user is mousing arround,
extract() will collect the data until memory fills up.

so instead we abandon the event library and convert
the program to use channels.