summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-12mergecinap_lenrek
2020-06-12ramfs: make Elocked[] more consistent (thanks fazlul)cinap_lenrek
Go expects the error to be one of the three errors returned in Bell Labs Plan 9. As listed in https://github.com/golang/go/blob/f7ba82d68f90e20aa9e6aa973cb6f12321abec71/src/cmd/go/internal/lockedfile/lockedfile_plan9.go#L16: // Opening an exclusive-use file returns an error. // The expected error strings are: // // - "open/create -- file is locked" (cwfs, kfs) // - "exclusive lock" (fossil) // - "exclusive use file already open" (ramfs) var lockedErrStrings = [...]string{ "file is locked", "exclusive lock", "exclusive use file already open", }
2020-06-11acme: implement position-dependent scroll-wheel scrollingkvik
This brings acme scrolling behaviour in line with that of 9front's rio and sam, where the amount scrolled varies with a vertical position of the pointer within the window, similar to how the scrollbar works. At some point it would be good to implement a line-at-a-time scrolling when the Shift key is pressed, as seen in rio. For this to happen the acme keyboard input needs to be rewritten in terms of /dev/kbd instead of relying on keyboard(2) -- that is, the /dev/cons interface.
2020-06-09libplumb: add missing mkfileOri Bernstein
2020-06-07acme: document log file in manpageOri Bernstein
2020-06-07acme: add missing logf.ccinap_lenrek
2020-06-07ip/6in4: request ipv4 packets only in ipmux filtercinap_lenrek
2020-06-07devip: implement ipv6 support in ipmux packet filtercinap_lenrek
Added a ver= field to the filter to distinguish the ip version. By default, a filter is parsed as ipv6, and after parsing proto, src and dst fields are converted to ipv4. When no ver= field is specified, a ip version filter is implicitely added and both protocols are parsed. This change also gets rid of the fast compare types as the filed might not be aligned correctly in the packet. This also fixes the ifc= filter, as we have to check any local address.
2020-06-07snoopy: add ipmux pseudo protocolcinap_lenrek
the ipmux pseudo protocol handles the extra ipv6 interface address prefixed to the ip header as used by /net/ipmux packet filter.
2020-06-07devip: fix parseipmask() prototype in ip.hcinap_lenrek
2020-06-06acme: import event log from plan9port (thanks fshahriar)Ori Bernstein
Based off the following 3 commits: 4a3fb87264f8bc03fc62f00ef335056f30d18023 45f8ba54143323f08a21343633764caa59aa3ea3 fdf6ef333705c844bcf3ccf2f93b2773f1a6aa41 Reading /mnt/acme/log reports a log of window create, put, focus, and delete events, as they happen. It blocks until the next event is available. Example log output: 8 new /Users/rsc/foo.go 8 put /Users/rsc/foo.go 8 del /Users/rsc/foo.go This lets acme-aware programs react to file writes, for example compiling code, running a test, or updating an import block.
2020-06-06devip: pick less surprising interface address in header for incoming UDP packetscinap_lenrek
We used to just return the first address of the incoming interface regardless of if the address matches the source ip type and scope. This change tries to find the best interface address that will match the source ip so it can be used as a source address when replying to the packet.
2020-06-06mergecinap_lenrek
2020-06-06aux/vga: use 64-bit physical addresses for pci membarcinap_lenrek
2020-06-06devlml: use 64-bit physical addressescinap_lenrek
2020-06-06audiosb16: cleanup audioprobe(), cast ISAConf.port to ulongcinap_lenrek
2020-06-06audioac97: use 64-bit physical addressescinap_lenrek
2020-06-06audiohda: use 64-bit physical addresses, check pci membar typescinap_lenrek
2020-06-06pc/pcmciamodem: cast i/o port to ulongcinap_lenrek
2020-06-06pc/pmmc: check pci membar typecinap_lenrek
2020-06-06uartaxp: use 64-bit physical addresses and check pci membar typescinap_lenrek
2020-06-06pc/wavelan: print Ether.port as 64-bit valuecinap_lenrek
2020-06-06sd53c8xx: use 64-bit physical addressescinap_lenrek
2020-06-06sdmv50xx: use 64-bit physical addresses and check pci membar typecinap_lenrek
2020-06-06sdiahci: use 64-bit physical addressescinap_lenrek
2020-06-06sdodin: use 64-bit physical addresses and check pci membar typecinap_lenrek
2020-06-06sdnvme: make sure pci membar type is memorycinap_lenrek
2020-06-06usbuhci: make sure pci membar type is i/ocinap_lenrek
2020-06-06usbehcipc: use 64-bit physical addresses and check pci membar typecinap_lenrek
2020-06-06pc/ether*: use 64-bit physical addresses and check pci membar types and sizescinap_lenrek
2020-06-06pc/vga*: use 64-bit physical addresses and check pci membar types and sizescinap_lenrek
2020-06-06archacpi: use 64-bit uvlong for physical addressescinap_lenrek
2020-06-06devvga: use 64-bit physical addresses for framebuffercinap_lenrek
2020-06-06devpccard: use 64-bit physical addressescinap_lenrek
2020-06-06usbxhci: use 64-bit physical addressescinap_lenrek
2020-06-06devpnp, devether, devusb: cast ISAConf.port to uvlong (for 32-bit ↵cinap_lenrek
implementations) The ISAConf.port might still be 32-bit on some archs.
2020-06-06devusb: print Hci.port as 64-bit uvlongcinap_lenrek
2020-06-06devether: print Ether.port as 64-bit uvlongcinap_lenrek
2020-06-06devpnp: print pci membar as 64-bit uvlongcinap_lenrek
2020-06-06bcm64: bring pci code in line with the pc/pc64cinap_lenrek
2020-06-06bcm64: use uvlong for ISAConf.portcinap_lenrek
2020-06-06bcm64: use 64-bit uvlong physical address in vmap()cinap_lenrek
2020-06-06pc, pc64: implement 64-bit pci membar supportcinap_lenrek
2020-06-06pc, pc64: use 64-bit physical addresses for ISAConf.portcinap_lenrek
2020-06-06pc, pc64: use 64-bit physical addresses for vmap() and upaalloc()cinap_lenrek
2020-06-05ape: add missing rerrstr.cOri Bernstein
2020-06-05ape: make libplumb available under ape.Ori Bernstein
This adds the mkfiles and plumb.h to ape, similar to how libdraw is made available. This is used for ports such as netsurf.
2020-06-04aux/getflags: fix named rune arguments.Ori Bernstein
Flags can be runes. That means that we can't just look at p[1] to decide if we have a named argument, we need to look one rune forward. This change does that.
2020-06-01mergecinap_lenrek
2020-05-31acme: implement 'scratch' ctl command (thanks Drew DeVault)kvik
The new command marks the target window as a scratch window -- a window whose state cannot be "dirtied" by changes made to its body, therefore avoiding warnings about unsaved changes when deleting the window or exiting acme. Existing examples of scratch windows are error, directory, and guide windows, whose scratchness is set internally. With the new command users and programs alike can create their own scratch windows. This is put to use in acme's own win(1).