summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-31cmd/sam: Remove 256 character Plan 9 command output limitsamElias Fleckenstein
2021-08-30audiohda: fix syntax errorHEADfrontqwx
2021-08-29audiohda: add ztom z36*/z37* device idSigrid Solveig Haflínudóttir
2021-08-29ether8169: support rtl8402 variantSigrid Solveig Haflínudóttir
2021-08-29date(1): sync with realityOri Bernstein
'date -m' was removed, but evidence of its existence was left in the manpage.
2021-08-27git(1): "see also" consistency (thanks sirjofri)Ori Bernstein
adds commas between "see also" entries to make it consistent with other man pages.
2021-08-27/rc/bin/9fs: 9front.org files now live on port 9000.glenda
2021-08-26bring games/swar from 1ed sources.rodri
2021-08-25git/serve: add a '\n' after HEADOri Bernstein
Per the docs: the sender SHOULD include a LF, but the receiver MUST NOT complain if it is not present. I typoed away the SHOULD, and got missed the MUST NOT. thanks qbit.
2021-08-25git/compat: add support for ls-remote [-d]Ori Bernstein
This is used by 'go get' sometimes, so add it.
2021-08-24man page fixes (thanks stuart morrow)qwx
2021-08-23git/diff: clean up diffsOri Bernstein
We were overzealous about showing the changed header, as well as setting a junk variable for files that didn't exist; fix both.
2021-08-23git/commit: remove trailing 'subst -g'Ori Bernstein
the subst utility no longer supports a '-g' flag, but this was left behind in commit; this means that the lines listing modified files were not correctly commented in the commit header. This is mostly harmless, but when using an editor like sam to edit the commit message, the modified lines would have to be removed manually.
2021-08-22revert 8c228a123fa0c6062570964011854302bbf57242: accidental commitOri Bernstein
was testing out the git/import tweaks and accidentally pushed this commit. No comment on whether we want it, but it definitely wasn't ready for merge. Oops.
2021-08-22git/{diff,import}: make it easier to handle manually-asembled patch emailsori@eigenstate.org
Often, people (including myself) will write emails that can almost be applied with git/import. This changes git/diff and git/import so that things will generally work even when assembling diffs by hand: 1. git/import becomes slightly more lax: ^diff ... ^--- ... will both be detected as the start of a patch. 2. git/diff produces the same format of diff as git/export, starting with paths: --- a/path/to/file +++ b/path/to/file which means that the 'ape/patch -p1' used within git/import will just work. So with this, if you send an email to the mailing list, write up a committable description, and append the output of git/diff to the end of the email, git/import should just work. [this patch was send through the mailing list using the above procedure, and will be committed with git/import to verify that it works as advertised]
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