summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-18exportfs, oexportfs, iostats: make -d log to stderramavect
exportfs -d logs 9p traffic to /tmp/exportdb. -f allows writing to a different file. exportfs silently continues if it doesn't have permissions to create or write to /tmp/exportdb. These are poor behaviors. A better default is to write to stderr, since it is 9P debug info that is better immediately printed, and not user info that is better handled by syslog(). As a result, -f is obsolete and thus removed. Redirect responsibility is now on rc. As a side effect, rc will fail if it doesn't have permissions to write. exportfs(4) is updated to reflect all changes and with a better Synopsis. oexportfs is changed to match exportfs. oexportfs(4) is updated to reflect all changes. The Synopsis is not changed due to the number of flags. Removed -f from iostats. iostats(4) is updated to reflect all changes. ---
2021-08-17mk for only supported archsunobe@cpan.org
http://fqa.9front.org/fqa1.html#1.2 states the supported archs. However, clean and nuke also remove build files for 0 (spim) and q (power). 'mk all' using those archs fails; 'mk kernels' also tries to build all the kernels, even those which are not supported. For example, I tried to build the power arch (qc, qa, ql) and without surprise it failed (when building dtracy): ... mk dtracy qc -FTVw dtracy.c yacc -v -d -D1 parse.y qc -FTVw cgen.c qc -FTVw act.c qc -FTVw type.c == regfree == REGISTER R0 <11> STRUCT DTAct cgen.c:302 == regfree == REGISTER R0 <11> STRUCT DTAct act.c:266 == regfree == qc -FTVw agg.c cgen.c:299 unknown type in regalloc: STRUCT DTAct cgen.c:299 bad opcode in gmove INT -> STRUCT DTAct cgen.c:302 unknown type in regalloc: STRUCT DTAct cgen.c:302 bad opcode in gmove INT -> STRUCT DTAct cgen.c:302 error in regfree: 0 [0] REGISTERmk: qc -FTVw cgen.c : exit status=rc 387386: qc 387392: error R0 <11> STRUCT DTAct act.c:269 act.c:250 unknown type in regalloc: STRUCT DTAct act.c:250 bad opcode in gmove INT -> STRUCT DTAct act.c:266 unknown type in regalloc: STRUCT DTAct act.c:266 bad opcode in gmove INT -> STRUCT DTAct act.c:266 error in regfree: 0 [0] act.c:269 unknown type in regalloc: STRUCT DTAct act.c:269 bad opcode in gmove INT -> STRUCT DTAct act.c:269 error in regfree: 0 [0] act.c:274 unknown type in regalloc: STRUCT DTAct act.c:274 bad opcode in gmove INT -> STRUCT DTAct act.c:274 error in regfree: 0 [0] too many errors mk: for(i in cc ... : exit status=rc 382748: rc 387379: mk 387381: error mk: date for (i ... : exit status=rc 373781: rc 382226: mk 382227: error cpu% The patch below skips over non-supported architectures. Is that something we want? This way, 'mk kernels' should work without a problem (tested on amd64). Then if someone works on getting those architectures supported again in the future, they can be added back in.
2021-07-21venti: fix memory layersNoam Preil
2021-08-21mixfs: add reading (audio loopback)Sigrid Solveig Haflínudóttir
2021-08-20audio(1): replace references to juke(7) and playlistfs(7) with zuke(1) ↵Alex Musolino
(thanks unobe)
2021-08-18snoopy: ... and fix the memory leak for new dns rr typescinap_lenrek
2021-08-18snoopy: fix dns nil pointer crashes when formating dns packets (thanks sl)cinap_lenrek
snoopy shares ndb/dns's dns parser code, but has its own copy of rralloc() function, which is responsible to allocating auxiolary data structures on an RR depending on the type. ndb/dns gained some support for some new types, but snoopy's copy of rralloc() was not updated, resulting the auxiolary structures to be nil, and the shared parsing routines crashes when trying to dereference them. this just syncs the copies, we might consider moving rralloc() into its own file so it can be completely shared.
2021-08-18exportfs: revert e524e8d65a7573c46d7beb49e77bfc2d55a5563dOri Bernstein
It turns out that the '-f' flag was being used, and removing it broke things.
2021-08-17git: better handling of absolute paths, regex metacharsOri Bernstein
Git currently gets a bit confused if you try to manipulate files by absolute path. There were also a number of places where user-controlled file paths ended up getting passed to regex interpretation, which could confuse things. This change mainly does 2 things: - Adds a 'drop' function which drops a non-regex prefix from a string, and uses that to manipulate paths, simplifies 'subst', and removes 'subst -g', which was only used with fixed regexes; sed does this job fine. - When getting a path from a user, we make it absolute and then strip out the head Along the way it cleans up a couple of stupids: - 'for(f in $list) if(! ~ $#f 0) use $f: $f can't be a nil list because of list flattening. - removes a useless substitution here: all=`$nl{{git/query -c $1 $2; git/query -c $2 $3} | sed 's/^..//' | \ gsubst '^('$ourbr'|'$basebr'|'$theirbr')/*' | sort | uniq} where git/query -c doesn't produce paths prefixed with the query.
2021-08-14exportfs: make -d log to stderramavect
exportfs -d logs 9p traffic to /tmp/exportdb. -f allows writing to a different file. exportfs silently continues if it doesn't have permissions to create or write to /tmp/exportdb. These are poor behaviors. A better default is to write to stderr, since it is 9P debug info that is better immediately printed, and not user info that is better handled by syslog(). As a result, -f is obsolete and thus removed. Redirect responsibility is now on rc. As a side effect, rc will fail if it doesn't have permissions to write. exportfs(4) is updated to reflect all changes and with a better Synopsis.
2021-08-16ether82563: add 0x15bd i219-lm variant (thanks crab1)Sigrid Solveig Haflínudóttir
2021-08-15tinc: fix spelling and update manpage (thanks unobe)cinap_lenrek
Update tinc(8) man page to: 1. state the implementation aligns with 1.0.36 of tinc.org; 2. use same hostname as mentioned in usage line. Fix typos in tinc.c.
2021-08-13git/branch: make '-n' use HEAD when '-b' unspecifiedOri Bernstein
This brings the behavior in line with the manual page, and makes things less surprising for users.
2021-08-13date: remove '-m' flagOri Bernstein
It's only ever been used by git, and is obsoleted by 'date -f'. Remove it.
2021-08-12git/export: use 'date -f' instead of 'date -m'Ori Bernstein
The '-m' flag was added to date largely to support git scripts. It predates the tmdate code, which is why it exists, but it's a recent enough addition that nothing I'm aware of uses it, other than git. As a result, it would be good to remove it, so let's do that.
2021-08-11git: fix non-interruptible temporary warningOri Bernstein
harmless, but annoying.
2021-08-11qsort: ...forgot to include headers in the commit.Ori Bernstein
2021-08-11qsort: allow usize-sized arrays.Ori Bernstein
As part of the transition to 64 bit userspace APIs, we need to make our libc functions which take arrays all accept and deal with large sizes. This does the work for qsort.
2021-08-09x509: encode empty sequence as constructedOri Bernstein
According to the ASN.1 BER spec, we should be encoding all sequences (including empty ones) as constructed: 8.9.1 The encoding of a sequence value shall be constructed. 8.10.1 The encoding of a sequence-of value shall be constructed. 8.11.1 The encoding of a set value shall be constructed. 8.12.1 The encoding of a set-of value shall be constructed. However, we were only setting them as constructed when the list was non-empty. This changes it, and makes letsencrypt happy with the CSRs that we generate.
2021-08-07git/save: leave submodules unmangledOri Bernstein
When modifying a submodule, we would garble the mode, leading to an apparently dangling object. This fixes the issue.
2021-08-06etheriwl: fix botched merge...cinap_lenrek
2021-08-05mergecinap_lenrek
2021-08-05etheriwl: add support for wireless ac 7260 (thanks kemal!)cinap_lenrek
2021-08-05aux/cddb: include album name and correct track number keyJacob Moody
2021-08-059p(2): fix a typo (thanks humm)Sigrid Solveig Haflínudóttir
2021-08-04cat: remove stupid long castcinap_lenrek
2021-08-03libpanel: rename to match clean ruleOri Bernstein
when running 'mk clean', we get a stray libpanel.$O.a, because our 'mk clean' rule expects libpanel.a$O. This causes build failures after mk clean on a symbol change.
2021-07-31[PATCH] Support for igfx on Celeron(R) 2957U (thanks Lorenzo Bivens)cinap_lenrek
> After some tinkering I managed to get igfx working on this device. > hw cursor works. > The only caveat is that I can only get video over hdmi... > will revisit displayport later
2021-07-28kernel: fix off by one for $cputype buffer (thanks anthony martin)cinap_lenrek
2021-07-28kernel: increase bootfs.paq compression level and blocksizecinap_lenrek
With the intel wifi firmware, this saves around 3MB of the kernel image size.
2021-07-27kernel: simplify /boot/boot: 28K down to less than 4K.cinap_lenrek
- avoid print() format routines (saves alot of code) - avoid useless opens of /dev/cons (already done by initcode) - avoid useless binds of /env and /dev (already done by initcode) - do bind of /shr in bootrc, it is not needed by us - we'r pid 1 so kernel will print the exit message for us
2021-07-27git/fetch: be more robustOri Bernstein
currently, git/fetch prints the refs to update before it fully fetches the pack files; this can lead to updates to the refs before we're 100% certain that the objects are present. This change prints the updates after the packfile has been successfully indexed.
2021-07-25dial(2): dial returns an open data file, not a ctl one. also fixed little typo.rodri
2021-07-25libc: use usize for sbrk() incrementcinap_lenrek
2021-07-25libc: change usize to 64-bit for amd64 and arm64, make memory(2) functions ↵cinap_lenrek
use usize
2021-07-25bcm64: make the kernel use virtual timer counter register for cycles()cinap_lenrek
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