summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-25kernel: page counts a ulong, not usizecinap_lenrek
2021-07-23arm64: use generic timer virtual counter for cycles()cinap_lenrek
We used to use performance cycle counter for cycles(), but it is kind of useless in userspace as each core has its own counter and hence not comparable between cores. Also, the cycle counter stops counting when the cores are idle. Most callers expect cycles() to return a high resolution timestamp instead, so do the best we can do here and enable the userspace generic timer virtual counter.
2021-07-22/sys/src/9/mkfile: add bcm64 (thanks stuart morrow)cinap_lenrek
2021-07-21gzip, bzip2: add -n flag to suppress modification timestampcinap_lenrek
2021-07-21ssh: fix typo (thanks izaki)Jacob Moody
2021-07-20brk(2): .... we define lowest addres not used by the program above, so use ↵cinap_lenrek
that instead
2021-07-20brk(2): sbrk(0) returns end address, not the basecinap_lenrek
sbrk(0) returns the current end address of the BSS segment, not the base. This might have been confused with the behaviour of segbrk(), which when given a zero address returns the base.
2021-07-18mergecinap_lenrek
2021-07-18screenlock: don't poll to top window (thanks Stuart Morrow)cinap_lenrek
> String becomes stringbg so we have guaranteed max contrast in case the > user changes the picture. (If you don't change the picture, it's > white-on-black-on-black (sic) and you would never notice the change.)
2021-07-18auth/rsa2jwk: add code to produce jwk rsa keysOri Bernstein
This is useful for acmed, and possibly other web technologies.
2021-07-18git/fetch: fix overly eager 's/pack/idx/g' in refactorOri Bernstein
This would break pulling. We would try to index into a place that didn't exist.
2021-07-17aux/cddb: Provide -e option to print commands to rip audio with tags.Jacob Moody
Also parse title/track artist and year.
2021-07-17git/fetch: ensure we clean packfiles on failureOri Bernstein
When pulling into a git repository that is group writable as a non-owner, the pack file is left in place because we do not have permission to remove it. We also leave it behind if we bail out early due to an error, or due to only listing the changes. This pushes down the creation of the file, and cleans it up on error. thanks to Anthony Martin for spotting the bug. git/fetch: ensure we clean packfiles on failure When pulling into a git repository that is group writable as a non-owner, the pack file is left in place because we do not have permission to remove it. We also leave it behind if we bail out early due to an error, or due to only listing the changes. This pushes down the creation of the file, and cleans it up on error. Also, while we're here, clean up index caching, and ensure we close the fd in all cases. thanks to Anthony Martin for spotting the bug.
2021-07-16kbdfs: allow to escape ctlr-alt-del with shift for vmx and vnc.cinap_lenrek
2021-07-15webfs(4): fix typoskvik
2021-07-15legal: mercurial -> gitcinap_lenrek
2021-07-15legal: remove references to python and mercurialcinap_lenrek
THIS IS AN EX PYTHON!!
2021-07-15archacpi: make *acpi=1 the defaultcinap_lenrek
2021-07-15ether82563: add pci id for i219-LM from ThinkPad P17 Gen1 Professional ↵cinap_lenrek
Mobile Workstation (thanks tschak909)
2021-07-14graphics(2): fix typokvik
2021-07-14pc, pc64: increase confmem slots to 64cinap_lenrek
Lenovo Thinkpad P17 Gen1 Professional Mobile Workstation comes up with around 36 separate memory ranges. ridiculous!
2021-07-14libaml: fix gc bug, need to amltake()/amldrop() temporary buffercinap_lenrek
we have to protect the temporary buffer allocated by rwfield() as rwreg() calls amlmapio() which might cause further aml code execution causing gc() which frees it under us (as it is not referenced from the interpreter state). this fixes a panic on boot of a Lenovo Thinkpad P17 Gen1 Professional Mobile Workstation
2021-07-12fs(4): describe the noauth toggle better (thanks izaki)Ori Bernstein
2021-07-12strcat(2): 0 → nil in manpage in refrence to pointersJacob Moody
2021-07-11virtio: set FeaturesOk flag after feature negotiation, and enable queues ↵cinap_lenrek
before DriverOk flag
2021-07-11vmx: reset virtio queue state on device resetcinap_lenrek
when a virtio device gets reset, we have to also reset the device shadow indices: availableidx and usedidx. for extra safetly, we also reset the buffer descriptor table addresses. this is accomplished by adding a vioqreset(VIOQueue*) function that brings the queue to its initial reset state. this fixes non functional ethernet after reboot(8).
2021-07-11virtio: add non-legacy virtio 1.0 drivers for disk and ethernetcinap_lenrek
The new interface uses pci capability structures to locate the registers in a rather fine granular way making it more complicated as they can be located anywhere in any pci bar at any offset. As far as i can see, qemu (6.0.50) never uses i/o bars in non-legacy mode, so only mmio is implemented for now. The previous virtio drivers implemented the legacy interface only which uses i/o ports for all register accesses. This is still the preferred method (and also qemu default) as it is easier to emulate and most likely faster. However, some vps providers like vultr force the legacy interface to disabled with qemu -device option "disable-legacy=on" resulting on a system without a disk and ethernet.
2021-07-10kernel: export pcienumcaps() for custom capability enumeration in drivers ↵cinap_lenrek
(virtio) This used to be a internal function, but virtio uses multiple structures with the same cap type to indicate the location of various register blocks in the pci bars so export it.
2021-07-10aux/cddb: freedb.org is dead, use gnudb.orgJacob Moody
2021-07-09mouse(3): mousein is NOT exclusive, see 30907f1d00a7646ccbb420a18f60ccb0bf36e740Sigrid Solveig Haflínudóttir
2021-07-08rc: add subshell-function syntaxOri Bernstein
fn foo @{bar} is now equivalent to fn foo {@{bar}}. As a side effect, this disallows creating functions named after keywords without first quoting them.
2021-07-08libsec: take just the CN part of Distinguished Name in subjectAltNamecinap_lenrek
2021-07-08fortunes: unremoveOri Bernstein
2021-07-08fortunes: revision: allow pseudo options after --end-of-optionsOri Bernstein
2021-07-06git: create .git/objects/ on git/initkvik
2021-07-06vmx: emulate ps/2 intellimouse scrollingSigrid Solveig Haflínudóttir
2021-07-04rsa(8): document auth/x5092pub, fix usage linescinap_lenrek
2021-07-04libsec: do proper type checking, fix wrong deduplication checkcinap_lenrek
2021-07-04libsec: add X509reqtoRSApub() function and return subject alt names in ↵cinap_lenrek
X509to*pub() name buffer We need a way to parse a rsa certificate request and return the public key and subject names. The new function X509reqtoRSApub() works the same way as X509toRSApub() but on a certificate request. We also need to support certificates that are valid for multiple domain names (as tlshand does not support certificate selection). For this reason, a comma separated list is returned as the certificate subject, making it symmetric to X509rsareq() handling. A little helper is provided with this change (auth/x5092pub) that takes a certificate (or a certificate request when -r flag is provided) and outputs the RSA public key in plan 9 format appended with the subject attribute.
2021-07-04git/export: make output pipable to /bin/mailOri Bernstein
git/export *almost* produces output that can be emailed with upas using git/export $commit | mail maintainer@site.com but, the From: commit-id date line that git generates trips it up. Luckily, 'git am' doesn't seem to care much if that line is missing, so we can simply omit it with no issue.
2021-07-03libc: add encode(2) variants for custom alphabetsOri Bernstein
There are a number of alphabets in common use for base32 and base64 encoding, such as url-safe encodings. This adds support for passing a function to encode into arbitary alphabets.
2021-07-01devmouse: default to no blanking instead of 30 minute blank timeoutcinap_lenrek
2021-06-30upas/Mail: avoid showing empty To: and CC: lines in compose windowsAlex Musolino
2021-06-30upas/Mail: fix CC addresses in "Reply All" compose windowsAlex Musolino
2021-06-29git/revert: revertOri Bernstein
the old implementation was correct; we want to mark it dirty and let walk sort it out.
2021-06-28git/revert: fix previous commit (helps if you save the file, thanks qwx)Ori Bernstein
git/revert: fix previous commit (helps if you save the file, thanks qwx)
2021-06-28git/branch: mark files we couldn't update as dirtyOri Bernstein
2021-06-27manual: don't match nonexistent file while preprocessingAnthony Martin
Authsrv(6) used to be called auth(6) before the fourth edition and was preprocessed by eqn(6) before the third edition. The mkfile was never updated to reflect the changes. All other files are accounted for: % cd /sys/man % for(i in TS EQ PS G1) echo $i `{grep -l '^\.'$i ?/[0-9a-z]*} TS 1/tbl EQ 1/eqn 3/usb PS 1/pic G1 1/grap %
2021-06-27pic(1): restore example sectionAnthony Martin
It was erroneously elided when removing the tpic command in commit 891a8c4f2.
2021-06-27segment(3): restore missing phraseAnthony Martin
It was accidentally removed when documenting the sticky segment type in commit 99ed9623b.