summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libdraw: Fix GUI programs on AIX (#398)Ben Huntsman2021-08-301-0/+4
|
* bin/9c, bin/9l: Re-enable optimization on AIX.Ben Huntsman2021-08-302-3/+3
|
* libthread: use setpgid instead of setpgrpAnthony Sorace2021-04-221-1/+1
|
* install(1): mention libfontconfig1-dev for DebianRuss Cox2021-04-092-203/+86
| | | | | | Also update install.txt, which mistakenly contained intro(1). Pointed out by Nicholas Schwartz.
* fspread: fix buffer overflowGünther Noack2021-04-051-4/+9
| | | | | | | | | | | | | | | Without this fix, fspread is trusting the server to return as much data as requested, or less. If a server responds with more data though, fspread writes beyond the bounds of the buffer to fill, which is passed in by the caller. It depends on the caller of fspread() where that buffer is, so there are various possible attack vectors. In the Plan9 kernel, I found this implemented in devmnt.c, where overly large responses are truncated to the size requested before copying, so I assume that this strategy works here too. This also affects fsread() and fsreadn(), which are based on fspread().
* all: update for new MIT licenseRuss Cox2021-03-2316-491/+196
| | | | | | | | | | | | | | | | | | | | | | | | On March 23, 2021, Nokia transferred the copyrights in the Plan 9 software to the Plan 9 Foundation, which relicensed them under the MIT license. This commit updates the Plan 9 from User Space license to reflect the new base license. The vast majority of the contributions beyond the base Plan 9 set were by me, many of them explicitly under an MIT license. Those are all under the new MIT license now as well. The port of mk to Unix was taken from Inferno via Vita Nuova and had been made available under GPL, but Vita Nuova has relicensed Inferno under the MIT license as well, to match the new Plan 9 license. Michael Teichgraber contributed src/lib9/zoneinfo.c explicitly under the Lucent Public License but has agreed to change the contribution to the MIT license now used in the rest of the distribution. There remain a few exceptions, most notably fonts. See the root LICENSE file for full details. The only mention of the Lucent Public License in the whole tree now is in the LICENSE file, explaining the history.
* mk: fix for Unix buildRuss Cox2021-03-231-2/+2
|
* acme: fix double-free in acmeerrorprocRuss Cox2021-03-231-4/+2
| | | | The receiver of cerr takes ownership of s.
* mount: find kext with MacFUSE >=4 and macOS >=11Connor Taffe2021-01-311-0/+3
|
* 9pfuse: support MacFUSE >=4Connor Taffe2021-01-311-1/+30
| | | | | | MacFUSE 4 removes support for passing device fd to the mount command. Adds support for the receiving the fd over a socket instead, and updates command paths and filesystem name.
* 9p: parse lines in rdwr commandDavid Arroyo2021-01-311-5/+9
| | | | | | | | Use bio(3) to read at most one line of input per iteration, even if there is more than one line available in the input buffer. This makes it easier to interact with line-oriented ctl files like that of factotum(4) from shell scripts, without the need to control when and how much data is flushed to a pipe.
* man9: rename IM to MRFazlul Shahriar2021-01-2911-27/+27
| | | | | Commit d32deab17bfffa5bffc5fab3e6577558e40888c5 renamed IM to MR but these man pages were missed.
* htmlroff: fix array boundsXiao-Yong Jin2021-01-291-2/+2
|
* eqn: enlarge errbuf to account for large tokensXiao-Yong Jin2021-01-292-2/+2
|
* xd: fix swizz8 loop countingXiao-Yong Jin2021-01-291-1/+1
|
* libhtml: fix array bounds in lexXiao-Yong Jin2021-01-291-1/+1
|
* libthread: call setpgrp in programs that will backgroundRuss Cox2021-01-141-0/+7
| | | | | | | This fixes the 'run stats from rc; exit rc; stats dies' problem. It's unclear whether this is the right fix or whether rc should be starting all its interactive commands in their own process groups. But at least it does fix stats dying.
* sam: avoid out-of-bounds read in rtermRuss Cox2021-01-141-2/+2
| | | | | | | | | | | Usually r->nused < r->nalloc and the read is in bounds. But it could in theory be right on the line and reading past the end of the allocation. Make it safe but preserve as much of the old semantics as possible. This use of rterm appears to be only for optimization purposes so the result does not matter for correctness.
* sam: remove backward ?:Russ Cox2021-01-141-1/+1
| | | | The exit code here is ignored anyway.
* rc: do not exit on EINTR from readRuss Cox2021-01-141-1/+10
| | | | This happens if lldb attaches to rc.
* lib9: reject postnote with special pidsRuss Cox2021-01-141-0/+5
|
* auxstats: do not postnote 0Russ Cox2021-01-141-1/+2
|
* acme, sam, samterm: remove weird switch usageRuss Cox2021-01-054-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | For whatever reason all three of these programs contain switches like: switch(x) { case 1: if(cond) case 2: f(); } Like Duff's device, this is legal C but more obscure than it really needs to be. This commit assumes those are intended as written and simply writes them more clearly. I did consider that maybe they are mistakes, but in the case of sam/regexp.c, my rewrite in this commit matches the acme/regx.c that has been in plan9port since I added acme in 2003. (I didn't bother to dig up the old Plan 9 releases.) Assuming acme/regx.c has been correct for the past two decades, this commit should be correct too.
* sam: rm dregsRuss Cox2021-01-054-293/+0
|
* stats: add threadmaybackgroundRuss Cox2021-01-055-40/+49
|
* acme: allow @ in file namesRuss Cox2020-12-301-1/+1
| | | | For upspin and other tools that put email addresses in names.
* wintext: add to moveplan9.files (#470)Jacob Vosmaer2020-12-301-0/+1
|
* 9term: add threadmaybackgroundRuss Cox2020-12-301-0/+6
|
* .gitignore: add LOCAL.config and lib/fortunes.indexRuss Cox2020-12-301-0/+2
|
* .gitignore: more binariesRuss Cox2020-12-301-0/+48
|
* libthread: drop schedlockRuss Cox2020-12-302-2/+1
| | | | Having two locks in the proc was causing deadlocks.
* 9c: drop PLAN9PORT_ASANRuss Cox2020-12-301-9/+0
| | | | It is no longer special.
* tcolors: add threadmaybackgroundRuss Cox2020-12-301-0/+6
|
* 9a: remove a few mentionsRuss Cox2020-12-302-16/+2
|
* .gitignore: enumerate ignored parts of bin/Russ Cox2020-12-301-17/+218
|
* all: remove $OBJTYPE from buildRuss Cox2020-12-3056-1291/+41
| | | | | | | Now that we assume pthreads, the only assembly left is in libmp and libsec. We only ever added assembly for 386. The portable C code is fine for plan9port.
* wintext: use rc not bashRuss Cox2020-12-301-14/+9
|
* 9term: use openpty on NetBSDNicola Girardi2020-12-301-0/+16
| | | | Fixes #376.
* devdraw: add /usr/X11R7 for NetBSDRuss Cox2020-12-301-0/+2
| | | | Fixes #362.
* libthread: simplifyRuss Cox2020-12-3023-1477/+12
| | | | | | | | Now that everything uses pthreads and pthreadperthread, can delete various conditionals, all the custom context code, and so on. Also update documents. Fixes #355.
* libthread: make pthreadperthread the defaultRuss Cox2020-12-302-21/+15
|
* libthread: fix pthreadperthread bugsRuss Cox2020-12-302-107/+187
|
* libthread: add threadmaybackgroundRuss Cox2020-12-3019-21/+120
| | | | | | | | Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
* libthread: delete NetBSD special caseRuss Cox2020-12-304-465/+4
| | | | | | | I added a direct call from thread.c to pthread.c's _threadpthreadstart in May, and no one has complained about NetBSD being broken. So probably no one is using this on NetBSD at all. Make pthread the only option.
* 9c: use -fcommon for clangRuss Cox2020-12-301-0/+1
| | | | Fixes #469.
* libthread: fix use after free of first thread in each procRuss Cox2020-12-151-1/+9
| | | | | | This was causing sporadic but frequent crashes at startup in 9pserve on the new M1 Macs, correctly diagnosing a use-after-free.
* time: print 1s of millisecondsRuss Cox2020-12-151-3/+3
|
* 9c, 9l: updates for macOS arm64.Anthony Sorace2020-09-272-0/+7
|
* all: a few more #define tricks for AIXRuss Cox2020-08-152-0/+36
| | | | | | This should make the AIX build finally work. Fixes #400.
* tmac: rename IM (italic manual) to MR (manual reference)Russ Cox2020-08-15286-1588/+1591
| | | | Suggested by G. Brandon Robinson.