summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-17mergecinap_lenrek
2020-10-17ndb/dnsdebug: add -c flag to debug caching dns server behaviourcinap_lenrek
2020-10-17ndb/dns: mark ns record authoritative when in our area for delegationcinap_lenrek
I have the problem that i need to delegate a subdomain to another name server that is confused about its own zone (and its own name) returning unusable ns records. With this, one can make up a nameserver entry in ndb that is authoritative and owned by us for that nameserver, and then put it in the soa=delegated ns entry. This promotes the ns record in the soa=delegated to Authoritative, which avoids overriding the ns rr's from the confused server for the delegated zone.
2020-10-15games/nes: workaround for truncated chrSigrid
2020-10-12ip/torrent: try harder allocating portscinap_lenrek
we used to only allocate ports from 6881 to 6890, which limits the maximum of parallel torrents to 9. this change make it go up to 9000, which gives us at best 2120 ports, which is overkill but ports might be randomly occupied by other connections.
2020-10-11upas/fs: fix truncation of plumb datecinap_lenrek
the new date format introduced by the previous commit; using numeric timezone offsets; needs one character more, so increase the date format buffer to 31 characters.
2020-10-09kernel: get rid of unused ucallocbcinap_lenrek
the whole idea of a ucallocb() is bad, as even access to the metadata header would be in uncached memory. also, it tuns out that it was never used by anyone.
2020-10-09vmx: add Kmod4Sigrid
2020-10-05etheriwl: add Wireless 8260 cardOri Bernstein
After the latest tweaks to the order of operations, the card works.
2020-10-05mergecinap_lenrek
2020-10-05etheriwl: remove stations *after* disabling binding quotas, drain all queues ↵cinap_lenrek
in rxoff7000()
2020-10-04rio: move the code for 'send' into a functionkvik
Makes the code a bit nicer and allows reusing wsend() in patches.
2020-10-04etheriwl: add for Intel Wireless-AC 9260cinap_lenrek
the 9000 series uses a new receive descriptor format wich appears to reqire 4k aligned buffers. the old format "halfworks" and just makes the firmware not respond to any commands after the enable paging command. the smartfifo command appears to causes problems. but apparently not issuing it at all seems to work fine on both the 8265 and 9260. so removing the code for now. issuing the bindingquota command before associated makes association impossible. but enabling afterwards works fine. (tested in 8265 and 9260). the prph access functions now mask the address with 0xfffff. it is unclear why linux and openbsd drivers specify addresses beyond that in ther register constants. the timeevent change is interesting. the timeevent needs to be restarted when it has stoped to make sure probing/association packets are sent during the evnet.
2020-10-01bootrc: allow kbmap to be set via plan9.ini (thanks Aaron Bieber)kvik
2020-09-29acme: revert stray changesOri Bernstein
forgot I had local changes when testing, re-revert scrolling.
2020-09-27vncv: implement rfb 3.8 protocol (thanks Iruatã)Ori Bernstein
Gnome and bhyve's VNC servers implement the RFB 3.8 protocol, so we need to support it in the client in order to connect.
2020-09-26aux/vga: eepc igfx support (thanks p.kosyh)Ori Bernstein
This patch to makes 1024x600x32 work. Without it only 800x600 is supported. To load this mode, run: aux/vga -m eeepc -l 1024x600x32
2020-09-26upas: convert to tmdate, change timezone formatOri Bernstein
Complete the conversion of upas to remove ctime, use the new date library, and print time zones in +hhmm format, instead of NNN format. This may affect code that expects specific names for timezones. Fix that code.
2020-09-25tmdate(1): fix missing arg, fix formatting (thanks joe9)Ori Bernstein
2020-09-25mergeOri Bernstein
2020-09-25tmdate(2): fix mistakes in prototype (thanks moody)Ori Bernstein
2020-09-25aux/acpi: connect EC region handler, fixes battery status on eeepc 1000px ↵Sigrid
(thanks Peter Kosyh)
2020-09-23syscall: fix build problem caused by stale tab.hkvik
Recently the script which generates tab.h and the code including it got incompatibly changed. People reported problems involving syntax errors when trying to rebuild the system following a sysupdate. The problem was with the script being embedded within a mkfile rule, meaning that mk didn't notice it changing and therefore didn't rebuild the target file. For people who were rebuilding the system this meant that the old tab.h got included, causing syntax errors. This patch moves the codegen script into a file and tells mk about this new dependency, so that tab.h will get rebuilt for everyone. I also took an opportunity to rewrite the script, hopefuly making it easier to follow.
2020-09-23ftpd: handle "allo" command by treating it as a no-opAlex Musolino
RFC959 says: "The ALLO command should be treated as a NOOP (no operation) by those servers which do not require that the maximum size of the file be declared beforehand..."
2020-09-22libc: ignore '?' in date format stringsOri Bernstein
Ignoring '?' when formatting date strings allows the format strings to be reused for parsing. This is convenient, since we don't need to duplicate the format strings.
2020-09-22libc: make yday 0-based, as docs suggestOri Bernstein
Tm.yday is docuemnted as being 0-based, and our new api should respect that. Fix the code so that this is true.
2020-09-22acme: import changes from plan9port (thanks jxy)Ori Bernstein
Import the following improvements and bugfixes from plan9port: 4650064a acme: scale window bodies on resize, not including tag space d28913a9 acme: save/restore multiline tags in Dump/Load d2df5d6c acme: fix crash in X |cat with multiple windows 3d6e5cb5 acme: preserve window position and selection during Get
2020-09-21ape/limits.h: fix typo in (U)LLONG_MAXOri Bernstein
Fix missing 'L' in the size suffix, so we were overflowing the maximum size.
2020-09-21diff: support unified diff via -uOri Bernstein
The format produced by `diff -u` is inferior to that produced by `diff -c`, but it's what ape/patch and unix patch expect, so it's useful to generate it. This patch adds `diff -u`.
2020-09-20syscall: utility overhaulkvik
Following is a list of functional changes: * The -o flag outputs the entire buffer to the length returned by the syscall, or, in case of fd2path(2) and errstr(2), to '\0'. * The -x flag is removed; the above makes it possible to pipe into xd(1) to get the same result. * The -s flag uses dirfmt(2) to format the stat message, instead of trying to imitate ls(1). * Stderr reports are normalized and made easier to parse. The code also suffered a number of stylistic changes.
2020-09-17upas/fs: fix handing of multi-line header fields (thanks theinicke)Ori Bernstein
Right now, upasfs exposes header lines as is, without stripping out new lines. It also documents that it provides one header per line in the info file. As a result, when we get a mail with headers that span lines, our tools get confused. These split lines are not semantically meaningful. From RFC5322: 2.2.3. Long Header Fields Each header field is logically a single line of characters comprising the field name, the colon, and the field body. For convenience however, and to deal with the 998/78 character limitations per line, the field body portion of a header field can be split into a multiple-line representation; this is called "folding". The general rule is that wherever this specification allows for folding white space (not simply WSP characters), a CRLF may be inserted before any WSP. As a result, to simplify processing, we should just strip out the line separators when exposing the headers from upasfs.
2020-09-16ptrap: fix /env/status always being set on main process exitBurnZeZ
2020-09-16syscall: don't append '\n' to the outputkvik
2020-09-16window: fix error exit with the -m flagkvik
When called with the -m flag window would always exit with some error, usually status='no match', because of an if-match being the last status-setting command in the script.
2020-09-16win: fix window recreation commandkvik
2020-09-14/lib/rob, /lib/rsc, /lib/theo: So it sounds like everyone is in favor of the ↵stanley lieber
entire generics proposal and all the semantics, and all we have left to hammer out is the bracket characters? Do I have that right?
2020-09-13mergecinap_lenrek
2020-09-13kernel: massive pci code rewritecinap_lenrek
The new pci code is moved to port/pci.[hc] and shared by all ports. Each port has its own PCI controller implementation, providing the pcicfgrw*() functions for low level pci config space access. The locking for pcicfgrw*() is now done by the caller (only port/pci.c). Device drivers now need to include "../port/pci.h" in addition to "io.h". The new code now checks bridge windows and membars, while enumerating the bus, giving the pc driver a chance to re-assign them. This is needed because some UEFI implementations fail to assign the bars for some devices, so we need to do it outselfs. (See pcireservemem()). While working on this, it was discovered that the pci code assimed the smallest I/O bar size is 16 (pcibarsize()), which is wrong. I/O bars can be as small as 4 bytes. Bit 1 in an I/O bar is also reserved and should be masked off, making the port mask: port = bar & ~3;
2020-09-13games/4s: increase thread size (thanks majiru)Ori Bernstein
It seems like on amd64, we're overflowing the stack. Let's not do that.
2020-09-12faces: remove log supportOri Bernstein
Use a damn plumber, you animals!
2020-09-12tmdate(1): document tz fieldOri Bernstein
2020-09-10ctime(2), tmdate(2): document ctime/tmparse incompatibilityOri Bernstein
Tmparse and ctime don't mix. The timezone name may be too long for the number of characters ctime mandates. Document this footgun.
2020-09-07tmdate(2): one more typoOri Bernstein
no more top arse. only bottom arse.
2020-09-07tmdate(2): fix examples, stale references (thanks deuteron)Ori Bernstein
There were a number of ideas that were tried out as the tmdate api evolved. As a result, there were some references in the manpage to things that are no more. Fix them.
2020-09-07tmdate(2): fix name of tm structOri Bernstein
There was a leftover from when this library was separate with different types.
2020-09-06etheriwl: add support for Intel Wireless AC 8265cinap_lenrek
2020-09-06wifi: add packet timestamping supportcinap_lenrek
2020-09-03walk(1): improve wording, formattingOri Bernstein
Clean up the wording of the walk(1) manpage, improve the formatting of the format characters.
2020-09-01tmparse: put in local timezone hackOri Bernstein
Ctime is defined as printing a 3-character timezone name. The timezone name is ambiguous. For example, EST refers to both Australian and American eastern time. On top of that, we don't want to make the tzabbrev table exhaustive. So, we put in this hack: Before we consult the well known table of timezones, we check if the local time matches the timezone name. On top of that, tm2sec If you want unambiguous timezone parsing, use numeric timezone offsets (Z, ZZ formats).
2020-09-01seconds: tolerate trailing whitespace in datesOri Bernstein
This allows handling dates with leading and trailing whitespace, including newlines.