]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
6 years agosnes: fix input botch
qwx [Sat, 9 Jun 2018 05:08:43 +0000 (07:08 +0200)]
snes: fix input botch

6 years agomklib: add %.acid target
mischief [Fri, 8 Jun 2018 16:48:31 +0000 (16:48 +0000)]
mklib: add %.acid target

6 years agoavl(2): add avlmin/avlmax in synopsis
mischief [Fri, 8 Jun 2018 16:37:39 +0000 (16:37 +0000)]
avl(2): add avlmin/avlmax in synopsis

6 years agogetuser(2): add source or sysname()
cinap_lenrek [Sun, 3 Jun 2018 21:46:47 +0000 (23:46 +0200)]
getuser(2): add source or sysname()

6 years agokernel: stop the practice of passing DMDIR to devir() perm argument
cinap_lenrek [Sun, 3 Jun 2018 21:33:35 +0000 (23:33 +0200)]
kernel: stop the practice of passing DMDIR to devir() perm argument

devdir internally replicates the qid in ther perm stat field
already and the practice of explicitely passing just causing
confusion when done inconsistently.

6 years agodevaoe: fix dotdot walk in devlinkdir, make perms consistent
cinap_lenrek [Sun, 3 Jun 2018 21:30:57 +0000 (23:30 +0200)]
devaoe: fix dotdot walk in devlinkdir, make perms consistent

6 years agodevenv: make #ec files not show up as world writable
cinap_lenrek [Sun, 3 Jun 2018 21:30:05 +0000 (23:30 +0200)]
devenv: make #ec files not show up as world writable

6 years agoip/dhcpd: parseip() error handling, make sure client ip is ipv4, add explicit length...
cinap_lenrek [Sun, 3 Jun 2018 18:52:10 +0000 (20:52 +0200)]
ip/dhcpd: parseip() error handling, make sure client ip is ipv4, add explicit length arguments to lookupname() and lookupserver()

6 years agoip/ipconfig: use ipmove() instead of memmove()
cinap_lenrek [Sun, 3 Jun 2018 18:31:48 +0000 (20:31 +0200)]
ip/ipconfig: use ipmove() instead of memmove()

6 years agofix incorrect character range in vga/unicode.font leading to missing CJK characters
aiju [Sat, 2 Jun 2018 07:49:37 +0000 (07:49 +0000)]
fix incorrect character range in vga/unicode.font leading to missing CJK characters

6 years agotcs: support EUC-JP JIS X 0212 codes
aiju [Sat, 2 Jun 2018 00:02:29 +0000 (00:02 +0000)]
tcs: support EUC-JP JIS X 0212 codes

6 years agomerge
cinap_lenrek [Fri, 1 Jun 2018 21:54:44 +0000 (23:54 +0200)]
merge

6 years agondb/cs: make ipv6 only host practical by checking ip version on local interfaces
cinap_lenrek [Fri, 1 Jun 2018 21:53:09 +0000 (23:53 +0200)]
ndb/cs: make ipv6 only host practical by checking ip version on local interfaces

avoid returning ip addresses that cannot be reached due
to lack of a compatible ip address. this means when here
is no ipv4 address configured, we wont return ipv4 addresses
and would not query dns for an A record.

likewise, when here is no ipv6 address configured then
we wont query dns for an AAAA record.

ipv6 lookups can still be disabled with the -4 flag just
as before.

6 years agodoom: don't set repl if scale is 1
qwx [Thu, 31 May 2018 03:11:33 +0000 (05:11 +0200)]
doom: don't set repl if scale is 1

6 years agosdram: properly support multiple ramdisks, so that ramdiskX corresponds to sdZX
cinap_lenrek [Tue, 29 May 2018 20:50:04 +0000 (22:50 +0200)]
sdram: properly support multiple ramdisks, so that ramdiskX corresponds to sdZX

6 years agoemulators ui: don't call flushmouse twice
qwx [Tue, 29 May 2018 03:28:31 +0000 (05:28 +0200)]
emulators ui: don't call flushmouse twice

6 years ago6c, 8c: Fix nocast cast bug which prevents address arithmetic from being computed...
spew [Mon, 28 May 2018 23:38:33 +0000 (19:38 -0400)]
6c, 8c: Fix nocast cast bug which prevents address arithmetic from being computed at compile time

6 years agomerge
cinap_lenrek [Sun, 27 May 2018 21:05:00 +0000 (23:05 +0200)]
merge

6 years ago9boot: detect SYSLINUX "memdisk" and pass to kernel via ramdisk0= parameter
cinap_lenrek [Sun, 27 May 2018 21:03:38 +0000 (23:03 +0200)]
9boot: detect SYSLINUX "memdisk" and pass to kernel via ramdisk0= parameter

this makes virtual "memdisk" from SYSLINUX accessible to
the kernel, allowing the iso to be loaded via TFTP and
started without any ethernet or disk drivers available.

6 years agosdram: experimental ramdisk driver
cinap_lenrek [Sun, 27 May 2018 20:59:19 +0000 (22:59 +0200)]
sdram: experimental ramdisk driver

this driver makes regions of physical memory accessible as a disk.

to use it, ramdiskinit() has to be called before confinit(), so
that conf.mem[] banks can be reserved. currently, only pc and pc64
kernel use it, but otherwise the implementation is portable.

ramdisks are not zeroed when allocated, so that the contents are
preserved across warm reboots.

to not waste memory, physical segments do not allocate Page structures
or populate the segment pte's anymore. theres also a new SG_CHACHED
attribute.

6 years agosshfs(4): language
aiju [Sun, 27 May 2018 11:22:23 +0000 (11:22 +0000)]
sshfs(4): language

6 years agosshfs(4): don't drink and troff
aiju [Sun, 27 May 2018 11:09:01 +0000 (11:09 +0000)]
sshfs(4): don't drink and troff

6 years agosshfs(4): replace the much maligned -r option
aiju [Sun, 27 May 2018 11:06:07 +0000 (11:06 +0000)]
sshfs(4): replace the much maligned -r option

6 years agoBfn improvements
aiju [Sat, 26 May 2018 17:17:41 +0000 (17:17 +0000)]
Bfn improvements

6 years agocc: fix result of operation not used warning for void casts
spew [Thu, 24 May 2018 23:31:55 +0000 (19:31 -0400)]
cc: fix result of operation not used warning for void casts

6 years agodc(1): add pi program as example
aiju [Thu, 24 May 2018 14:42:43 +0000 (15:42 +0100)]
dc(1): add pi program as example

6 years agomerge
aiju [Thu, 24 May 2018 12:41:08 +0000 (13:41 +0100)]
merge

6 years agoape: floating point improvements (thanks spew)
aiju [Thu, 24 May 2018 12:40:44 +0000 (13:40 +0100)]
ape: floating point improvements (thanks spew)

6 years agondb/dnsdebug: handle .ip6.arpa names
cinap_lenrek [Wed, 23 May 2018 17:44:12 +0000 (19:44 +0200)]
ndb/dnsdebug: handle .ip6.arpa names

6 years agondb/dnsquery: handle .ip6.arpa names, don't mount the dns service
cinap_lenrek [Wed, 23 May 2018 17:43:45 +0000 (19:43 +0200)]
ndb/dnsquery: handle .ip6.arpa names, don't mount the dns service

6 years agoip/tftpd: deal with block wrap arround
cinap_lenrek [Mon, 21 May 2018 23:53:15 +0000 (01:53 +0200)]
ip/tftpd: deal with block wrap arround

6 years agopc64: fix fpu bug
cinap_lenrek [Mon, 21 May 2018 17:23:54 +0000 (19:23 +0200)]
pc64: fix fpu bug

fpurestore() unconditionally changed fpstate to FPinactive when
the kernel used the FPU. but in the FPinit case, the registers are
not saved by mathemu(), resulting in all zero initialized registers
being loaded once userspace uses the FPU so the process would have
wrong MXCR value.

the index overflow check was wrong with using shifted value.

6 years agoape: fix auth.h
cinap_lenrek [Sun, 20 May 2018 21:22:41 +0000 (23:22 +0200)]
ape: fix auth.h

6 years agoauthsrv: implement AuthNTLM
cinap_lenrek [Sun, 20 May 2018 20:59:24 +0000 (22:59 +0200)]
authsrv: implement AuthNTLM

6 years agomerge
cinap_lenrek [Sun, 20 May 2018 20:50:50 +0000 (22:50 +0200)]
merge

6 years agoseparate MSCHAP(v2) and NTLM(v2) authentication
cinap_lenrek [Sun, 20 May 2018 20:49:24 +0000 (22:49 +0200)]
separate MSCHAP(v2) and NTLM(v2) authentication

due to linux omiting the final Z(4) in the NTLMv2 reply, and
the need for the windom for LMv2 authentication, here is a new
AuthNTLM ticket request now with length and dom fields.

6 years agocamv: fix leak on resize
qwx [Sun, 20 May 2018 14:47:41 +0000 (16:47 +0200)]
camv: fix leak on resize

6 years agofplot: draw axes; zoom more naturally; unzoom
aiju [Sun, 20 May 2018 09:14:16 +0000 (09:14 +0000)]
fplot: draw axes; zoom more naturally; unzoom

6 years agoip/cifsd: limit response data count in TRANS2 for remotebuffersize, avoid empty filen...
cinap_lenrek [Sun, 20 May 2018 01:48:33 +0000 (03:48 +0200)]
ip/cifsd: limit response data count in TRANS2 for remotebuffersize, avoid empty filename for the root

6 years agoauthsrv: work arround linux omiting final Z(4) after the AvrPairs
cinap_lenrek [Sat, 19 May 2018 23:37:38 +0000 (01:37 +0200)]
authsrv: work arround linux omiting final Z(4) after the AvrPairs

6 years agodontkill: explicitely set exit status to ''
cinap_lenrek [Sat, 19 May 2018 21:15:22 +0000 (23:15 +0200)]
dontkill: explicitely set exit status to ''

6 years agocifsd: fix ntlmv2 authentication
cinap_lenrek [Sat, 19 May 2018 14:40:01 +0000 (16:40 +0200)]
cifsd: fix ntlmv2 authentication

in ntlmv2, the client will retry the challenge response trying a bunch
of different domain names assuming the same server challenge. so we have
to make retries work with factotum and the auth server.

also, windows 7 with compatlevel=4 sends all zeros LM response.

6 years agomerge
spew [Sat, 19 May 2018 01:39:19 +0000 (21:39 -0400)]
merge

6 years agossh:add -r for extra raw mode
spew [Sat, 19 May 2018 01:36:33 +0000 (21:36 -0400)]
ssh:add -r for extra raw mode

6 years agomerge
cinap_lenrek [Wed, 16 May 2018 19:43:29 +0000 (21:43 +0200)]
merge

6 years agondb/cs: prevent deadlock with ndb/cs by mounting /srv/dns *AFTER* /net
cinap_lenrek [Wed, 16 May 2018 19:41:42 +0000 (21:41 +0200)]
ndb/cs: prevent deadlock with ndb/cs by mounting /srv/dns *AFTER* /net

the dnsquery() library function should not start mouting /srv/dns on
its own. this problem arrises only for ndb/cs as it is started before
ndb/dns.

the issue with mounting /srv/dns before /net is when ndb/cs attempts
to read the list of interfaces, accessing /net/ipifc, which triggers
a rpc to ndb/dns as it is ontop of the mount. this can yield a deadlock
when ndb/dns blocks its 9p loop waiting for requests to complete on
a refresh and the requests are stuck waiting for ndb/cs to translate
a dial string for announce().

6 years agosshfs: if we're going to annoy everyone we should at least match documentation
aiju [Tue, 15 May 2018 15:19:28 +0000 (16:19 +0100)]
sshfs: if we're going to annoy everyone we should at least match documentation

6 years ago9boot: DHCPv6 support for efi
cinap_lenrek [Tue, 15 May 2018 00:18:50 +0000 (02:18 +0200)]
9boot: DHCPv6 support for efi

6 years agoemulators ui: fix input botch and typo
qwx [Mon, 14 May 2018 18:49:08 +0000 (20:49 +0200)]
emulators ui: fix input botch and typo

6 years agomerge
cinap_lenrek [Mon, 14 May 2018 17:19:50 +0000 (19:19 +0200)]
merge

6 years agodevip: don't set mtu of interface to zero when not specified (thanks joe9)
cinap_lenrek [Mon, 14 May 2018 17:18:13 +0000 (19:18 +0200)]
devip: don't set mtu of interface to zero when not specified (thanks joe9)

change 9f74a951ae6a introduced a bug that set the mtu of a new
interface to 0 when not specified in the add ctl.

6 years agodrop your /lib/keyboard sir william, I cannot wait till lunchtime.
qwx [Mon, 14 May 2018 13:17:54 +0000 (15:17 +0200)]
drop your /lib/keyboard sir william, I cannot wait till lunchtime.

6 years agomerge
aiju [Mon, 14 May 2018 13:01:00 +0000 (14:01 +0100)]
merge

6 years agoMy /lib/keyboard explodes with delight!
aiju [Mon, 14 May 2018 12:51:09 +0000 (13:51 +0100)]
My /lib/keyboard explodes with delight!

6 years agoaudio/pcmconv: fix accidental cast to float instead of double
BurnZeZ [Sun, 13 May 2018 19:58:16 +0000 (19:58 +0000)]
audio/pcmconv: fix accidental cast to float instead of double

6 years agoape: add signed fixed size integer typedefs to u.h
qwx [Sun, 13 May 2018 05:13:00 +0000 (07:13 +0200)]
ape: add signed fixed size integer typedefs to u.h

6 years agodemote libemu to common code
qwx [Sun, 13 May 2018 05:01:47 +0000 (07:01 +0200)]
demote libemu to common code

- too small, nothing else that won't be under /games will use it
- "libemu" as a name doesn't make sense here

6 years agoadd port of aiju's port of games/2600
qwx [Sat, 12 May 2018 17:21:48 +0000 (19:21 +0200)]
add port of aiju's port of games/2600

6 years agoadd libemu
qwx [Sat, 12 May 2018 17:20:53 +0000 (19:20 +0200)]
add libemu

move redundant code from emulators to a common library

6 years agoadd signed fixed size integer typedefs
qwx [Sat, 12 May 2018 17:19:52 +0000 (19:19 +0200)]
add signed fixed size integer typedefs

6 years agondb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove...
cinap_lenrek [Fri, 11 May 2018 20:37:28 +0000 (22:37 +0200)]
ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts

dblookup() used to only return the first matching entry. in
case of ipv6, we want all entries returned to get both v4
and v6 addresses... and these might not neccesarily be in
the same entry (see /lib/ndb/common). note also this makes
it behave the same as in cachedb mode which reads in the
whole database.

we do not know if v4 or v6 routing works, so the simplest
is just to query v4 and v6 nameservers in parallel. this is
done by changing serveraddrs() to return one address type,
and we make sure to get at least one v4 and one v6 address
each round.

get rid of the weigthed timeout code... there where too many
assumptions. instead, we give a round 500ms timeout (or 1 second
in patient mode) and honor the maximum query time.

6 years agomerge
cinap_lenrek [Fri, 11 May 2018 14:16:37 +0000 (16:16 +0200)]
merge

6 years agofix manpage cross references
cinap_lenrek [Fri, 11 May 2018 14:15:08 +0000 (16:15 +0200)]
fix manpage cross references

6 years agolibplumb: fix plumbunpackpartial()
cinap_lenrek [Thu, 10 May 2018 17:46:38 +0000 (19:46 +0200)]
libplumb: fix plumbunpackpartial()

- *morep was not set in error cases
- attr and ntext could be leaked

6 years agomerge
cinap_lenrek [Thu, 10 May 2018 17:38:01 +0000 (19:38 +0200)]
merge

6 years agoppp: set source specific default route regardless of primary flag, set link speed...
cinap_lenrek [Thu, 10 May 2018 17:36:14 +0000 (19:36 +0200)]
ppp: set source specific default route regardless of primary flag, set link speed thru new ctl message when -b is specified

6 years agoip: add some primitive rate limiting knobs to counteract bufferbloat
cinap_lenrek [Thu, 10 May 2018 17:31:58 +0000 (19:31 +0200)]
ip: add some primitive rate limiting knobs to counteract bufferbloat

6 years agoadd usb tablet support
aiju [Tue, 8 May 2018 08:28:48 +0000 (08:28 +0000)]
add usb tablet support

6 years agolibmp: add awk-generated tests
aiju [Sat, 5 May 2018 12:14:39 +0000 (12:14 +0000)]
libmp: add awk-generated tests

6 years agompdiv: get signs right...
aiju [Sat, 5 May 2018 12:03:45 +0000 (12:03 +0000)]
mpdiv: get signs right...

6 years agomp: more tests
aiju [Sat, 5 May 2018 08:49:38 +0000 (08:49 +0000)]
mp: more tests

6 years agompmagadd: oops...
aiju [Fri, 4 May 2018 21:42:08 +0000 (21:42 +0000)]
mpmagadd: oops...

6 years agompmagadd: force output sign +1 always
aiju [Fri, 4 May 2018 21:41:16 +0000 (21:41 +0000)]
mpmagadd: force output sign +1 always

6 years agompdiv: fix sign bug
aiju [Fri, 4 May 2018 21:18:46 +0000 (21:18 +0000)]
mpdiv: fix sign bug

6 years agopc: add $ operator
aiju [Fri, 4 May 2018 10:07:39 +0000 (11:07 +0100)]
pc: add $ operator

6 years agolibmp: add new tests
aiju [Fri, 4 May 2018 00:42:59 +0000 (00:42 +0000)]
libmp: add new tests

6 years agomplogic: don't drop carry out
aiju [Thu, 3 May 2018 23:31:24 +0000 (23:31 +0000)]
mplogic: don't drop carry out

6 years agopc(1): always allocate at least one mpdigit (itomp assumes this)
aiju [Thu, 3 May 2018 13:06:15 +0000 (14:06 +0100)]
pc(1): always allocate at least one mpdigit (itomp assumes this)

6 years agomerge
cinap_lenrek [Thu, 3 May 2018 10:28:41 +0000 (12:28 +0200)]
merge

6 years agolibplumb: fix old leak introduced in 18b8ed1a5ea3
mischief [Thu, 3 May 2018 08:26:09 +0000 (01:26 -0700)]
libplumb: fix old leak introduced in 18b8ed1a5ea3

6 years agoipconfig(8): clarify -p and -P options
cinap_lenrek [Thu, 3 May 2018 07:09:39 +0000 (09:09 +0200)]
ipconfig(8): clarify -p and -P options

6 years agogames/mines: chain new CLists in splitknown correctly
aiju [Wed, 2 May 2018 23:01:39 +0000 (23:01 +0000)]
games/mines: chain new CLists in splitknown correctly

6 years agogames/mines -g: elements taken from list should be -2, not -1
aiju [Wed, 2 May 2018 22:47:04 +0000 (22:47 +0000)]
games/mines -g: elements taken from list should be -2, not -1

6 years agoip/linklocal: invert the localadm bit from mac address instead of just setting it
cinap_lenrek [Wed, 2 May 2018 18:34:43 +0000 (20:34 +0200)]
ip/linklocal: invert the localadm bit from mac address instead of just setting it

6 years agoremove ipv6on, update ipconfig(8)
cinap_lenrek [Wed, 2 May 2018 18:29:29 +0000 (20:29 +0200)]
remove ipv6on, update ipconfig(8)

6 years agoip/ipconfig: fix exit status for ndbconfig
cinap_lenrek [Tue, 1 May 2018 22:03:54 +0000 (00:03 +0200)]
ip/ipconfig: fix exit status for ndbconfig

6 years agotermrc: fix mistake
cinap_lenrek [Tue, 1 May 2018 22:03:24 +0000 (00:03 +0200)]
termrc: fix mistake

6 years agotermrc: put #u in front for endpoint renaming to be effective, handle multipe ether...
cinap_lenrek [Tue, 1 May 2018 21:46:57 +0000 (23:46 +0200)]
termrc: put #u in front for endpoint renaming to be effective, handle multipe ether= tuples in ndb

6 years agomerge
cinap_lenrek [Tue, 1 May 2018 21:40:00 +0000 (23:40 +0200)]
merge

6 years agoip/ipconfig: populate /net/ndb from v6 router advertisements, configure multiple...
cinap_lenrek [Tue, 1 May 2018 21:32:28 +0000 (23:32 +0200)]
ip/ipconfig: populate /net/ndb from v6 router advertisements, configure multiple addresses in ndbconfig()

we now update /net/ndb with the following information gathered
from router advertisements (rfc6106 and plan9 specific options):

- recursive dns servers (option 25, ndb: dns=)
- dns search list (option 31, ndb: dnsdomain=)
- plan9 fileserver (option 250, ndb: fs=)
- plan9 authserver (option 251, ndb: auth=)

note the plan9 specific options can be disabled with the -G flag.

for ndbconfig (-N flag), we now collect all ip addresses in ndb
belonging to the devices mac address and configue them all. v6
addresses are getting added when a link local address exists
or the -6 flag has been specified to automatically configure one.

move the dhcp code in its own dhcp.c file and make symbols static
that are not used across modules.

6 years agondb/cs: fix crash in ndbredorder due to ndbnew() not maintaining the ->line ring
cinap_lenrek [Tue, 1 May 2018 20:17:27 +0000 (22:17 +0200)]
ndb/cs: fix crash in ndbredorder due to ndbnew() not maintaining the ->line ring

we have to maintain the ->line chain for ndbreorder() to work, so add
a little helper: ndbline() which replicates the ->entry chain and links
the last tuple to the first; makeing the whole list into a single line.

6 years agolibplumb: allow attributes larger than 4096, set some malloc tags
mischief [Tue, 1 May 2018 19:47:26 +0000 (12:47 -0700)]
libplumb: allow attributes larger than 4096, set some malloc tags

6 years agondb/csquery: insert \n between read chunks
cinap_lenrek [Sat, 28 Apr 2018 02:40:09 +0000 (04:40 +0200)]
ndb/csquery: insert \n between read chunks

6 years agoip/ppp: remove old struct
cinap_lenrek [Sat, 28 Apr 2018 02:39:09 +0000 (04:39 +0200)]
ip/ppp: remove old struct

6 years agolibndb: cleanup
cinap_lenrek [Sat, 28 Apr 2018 02:38:34 +0000 (04:38 +0200)]
libndb: cleanup

6 years agompdiv: fix dividing 0 by a small power of two
aiju [Thu, 26 Apr 2018 13:55:02 +0000 (14:55 +0100)]
mpdiv: fix dividing 0 by a small power of two

6 years agomerge
cinap_lenrek [Tue, 24 Apr 2018 19:25:16 +0000 (21:25 +0200)]
merge

6 years agodevip: improve arp and ndp code
cinap_lenrek [Tue, 24 Apr 2018 18:21:09 +0000 (20:21 +0200)]
devip: improve arp and ndp code

there appears to be confusion about the refresh flag of arpenter().
when we get an arp reply, it makes more sense to just refresh
waiting/existing entries instead creating a new one as we do not
know if we are going to communicate with the remote host in the future.

when we see an arp request for ourselfs however, we want to always
enter the senders address into the arp cache as it is likely the sender
attempts to communicate with us and with the arp entry, we can reply
immidiately.

reject senders from multicast/broadcast mac addresses. thats just silly.

we can get rid of the multicast/broadcast ip checks in ethermedium and
do it in arpenter() instead, checking the route type for the target to
see if its a non unicast target.

enforce strict separation of interface's arp entries by passing a
rlock'd ifc explicitely to arpenter, which we compare against the route
target interface. this makes sure arp/ndp replies only affect entries for
the receiving interface.

handle neighbor solicitation retransmission in nbsendsol() only. that is,
both ethermedium and the rxmitproc just call nbsendsol() which maintains
the timers and counters and handles the rotation on the re-transmission
chain.

6 years agoforp: fix ternary operator
aiju [Tue, 24 Apr 2018 11:58:54 +0000 (12:58 +0100)]
forp: fix ternary operator

6 years agolibsat, forp: fix va_list hack on amd64
aiju [Tue, 24 Apr 2018 11:20:07 +0000 (12:20 +0100)]
libsat, forp: fix va_list hack on amd64