aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-19libthread: rm NetBSD pthread reference in sysofiles.shRuss Cox1-1/+1
It may be that pthreads on NetBSD is now good enough, but the build as written (introduced in 23a2368 at my suggestion) is certainly broken, since both NetBSD.c and pthread.c define the same functions. If NetBSD does support pthreads now, then a few things should happen together: - libthread/sysofiles.sh should drop its top NetBSD case entirely - libthread/NetBSD.c should be deleted - libthread/NetBSD-*-asm.s should be deleted - include/u.h's NetBSD case should define PLAN9PORT_USING_PTHREADS and #include <pthread.h> For now, restore to less clearly broken build.
2020-01-19all: remove Linux 2.4 vs 2.6 detectionRuss Cox9-130/+28
Linux 2.4 is dead. (The libthread code hasn't worked for Linux 2.4 for a long time.)
2020-01-19libthread: remove Linux 2.4 codeRuss Cox7-513/+462
Linux.c was for Linux 2.4 and is no longer used directly, only indirectly because NetBSD.c was a 1-line file #including Linux.c. So mv Linux.c NetBSD.c. Also rm Linux-*-asm.s which was for Linux 2.4 as well.
2020-01-19libthread: rm unused sparc-ucontext.hRuss Cox2-37/+0
More dead code.
2020-01-19libthread: rm Darwin pre-11.0.0 supportRuss Cox5-192/+0
Darwin 11.0.0 was Mac OS X 10.7.0 aka Lion. The previous version was Snow Leopard, which has been unsupported by Apple since February 2014.
2020-01-19libthread: rm FreeBSD 4 codeRuss Cox7-504/+54
Pretty sure FreeBSD 4 is gone now. :-)
2020-01-19libthread: rm OpenBSD.cRuss Cox1-145/+0
This should have been deleted in 20f5692b (2012-07-14), which removed the mkfile and sysofiles.sh references to it.
2020-01-19libthread: rm unused ARM (get|set)mcontext (#354)Neven Sajko1-43/+0
They were just a duplicate of my(get|set)mcontext from the other assembly file, and unused from threadimpl.h. Change-Id: Id8003e5177ed9d37a7f0210037acbe55bbf7f708
2020-01-169fs: remove tip (dead?), redirect sources to 9p.ioDan Cross1-3/+1
Fixes #195. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16devdraw: abort alt sequence on window change on macOSRuss Cox1-0/+4
Fixes #3.
2020-01-16libthread: NetBSD supports pthreads, remove ancient systems in sysofiles.shDan Cross1-8/+1
Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16malloc: remove lockingDan Cross3-41/+3
The issue manifests in fork: POSIX fork mandates that a fork'd process is created with a single thread. If a multithreaded program forks, and some thread was in malloc() when the fork() happened, then in the child the lock will be held but there will be no thread to release it. We assume the system malloc() must already know how to deal with this and is thread-safe, but it won't know about our custom spinlock. Judging that this is no longer necessary (the lock code was added 15 years ago) we remove it. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16lib9: putenv wraps POSIX setenv, not legacy putenvDan Cross1-7/+1
POSIX setenv does everything that p9putenv's body, so just delegate to that. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-15devdraw: avoid deadlock in x11 resizeRuss Cox2-0/+3
Fixes #347.
2020-01-15cmd/rio: xshove: set geometry by window idNicola Girardi1-1/+6
2020-01-15libmach: Fix type errors in FreeBSD.cDan Cross1-4/+4
The ptrace handlers wanted to take u64int arguments, not ulong. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-15devdraw: set windowrect correctly on x11 if window gets unexpected sizeRuss Cox1-2/+2
Fixes #54.
2020-01-15devdraw: actually send resize event on resizeRuss Cox1-0/+7
Fixes #340. Fixes #343.
2020-01-15factotum: update for new nbrecvul return valueRuss Cox1-2/+30
Unclear whether the old semantics were the right ones, but at least this preserves what they've been for the past however many years.
2020-01-15compress: remove (not distributed) from tar(1) manpage.sean1-1/+0
2020-01-15compress: import Plan9 compresssean3-0/+1526
Add #define USED(x)... boilerplate compress: import Plan9 manpage.
2020-01-15winwatch: Plan 9-ify.Dan Cross1-426/+412
This is new code, and custom to plan9port. Make it conform more closely to plan9 style. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-15clock: Remove unused static variable in clock.cDan Cross1-2/+0
`struct Tm tms` was set but never referenced; noticed in a compiler warning. Remove it. Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-15winwatch: port based Plan 9 winwatchmarkvanatten3-1/+596
Port of Plan 9's winwatch(1).
2020-01-159pfuse: update errortabOleg Nemanov1-0/+2
2020-01-15soelim: manpage fixes.sean1-4/+3
2020-01-15soelim: import from Plan9sean3-0/+47
Add entry in lib/moveplan9.files to trigger relocation during INSTALL.
2020-01-14venti/buildindex: fix hang on large indexesRuss Cox1-1/+1
Fixes #93.
2020-01-14devdraw: notify window resize promptly on x11Russ Cox5-13/+28
Fixes #339.
2020-01-14libdraw: send hangup to process when window is lostRuss Cox1-1/+5
This matches the Plan 9 behavior a bit better. Fixes #30.
2020-01-14lib9: make formatting lock-free againRuss Cox4-124/+83
First use of <stdatomic.h>. We will see if any supported systems don't have it yet. (C11 was so last decade.) Fixes #338.
2020-01-14acme: save/restore multiline tags in Dump/LoadRuss Cox1-4/+16
The dump substitutes each \n in a multiline tag with a 0xff byte. Since it is not valid UTF it cannot occur in an ordinary dump file. Old acmes will just read it in as an error rune. Fixes #135. Fixes #153.
2020-01-14tar: remove /bin/ when invoking compressorsphonologus1-6/+1
2020-01-14libthread: use mmap to allocate OpenBSD stacksRuss Cox6-8/+61
Should fix faults on OpenBSD. Fixes #218. Fixes #226.
2020-01-14libdraw: use proper pipe for default font dataRuss Cox1-6/+16
May fix a deadlock / missing font on OpenBSD. Fixes #308.
2020-01-14devdraw: do not force-hide menu and dock during full screen on macRuss Cox1-3/+15
This hides the menu on dock on all screens which is more than we want. The code was added to fix a problem with Catalina that I can no longer reproduce, so I guess it works now. Fixes #336.
2020-01-13devdraw: hide dock in full screen modeRuss Cox1-0/+13
Unfortunately this hides the dock even if it is on a different screen. We need to figure out how to tell. But this is more usable than not. Probably.
2020-01-13INSTALL: do not rm config after setting it upRuss Cox1-7/+7
Fixes #334.
2020-01-13devdraw: correctly hide Mac menu bar (#335)Xiao-Yong1-9/+9
`window:willUseFullScreenPresentationOptions:` is an instance method of the protocol `NSWindowDelegate`.
2020-01-13libthread: fix fault in teardown of procRuss Cox2-1/+2
Fixes #332.
2020-01-13acme: fix buffer overflow introduced in parsetag refactorRuss Cox3-8/+8
2020-01-13mouse(3): fix definition of MousectlRuss Cox1-4/+6
2020-01-13acme: fix movetodel for spaces in file namesRuss Cox1-11/+8
2020-01-13acme: allow spaces in window namesRuss Cox2-5/+20
There are many things we could do to make this work. an environment variable to control the character. Another option would be to use U+00A0 (non-breaking space), which renders the same as space. This change avoids changing the separator character and instead assumes that if the left side of the tag already ends in " Del Snarf |" then what comes before that is the file name. Acme already aggressively preserves the "Del Snarf |", so this should work decently well as a stop-gap. We can always try something else later. Fixes #26. Fixes #104. Fixes #329.
2020-01-13mk: fix hash function (#315)Neven Sajko1-7/+3
Avoid signed integer overflow using ulong instead of long h.
2020-01-13acme: one more place to use parsetagRuss Cox1-5/+1
2020-01-13acme: factor out tag parsing codeRuss Cox3-21/+28
2020-01-13lib9: do not fetch disk size for character devicesRuss Cox1-1/+1
Real disk devices should be block devices anyway. One user reported the disksize check causing a system reboot during vac of a tree with an "interesting" device. Fixes #103.
2020-01-13mk: treat X= as empty list in rc shellRuss Cox1-6/+12
This brings mk's behavior when using rc in line with Plan 9's. The existing code is for Unix environment data structures but also was assuming Unix shell semantics where empty and missing variables are mostly equivalent. The Plan 9 code (/sys/src/cmd/mk/plan9.c in the distribution) explicitly removes /env/name (creating an empty list) when the value is missing or an empty string. Fixes #255.
2020-01-13tmac: fix troff -ms .KS after .1CRuss Cox1-6/+6
Fixes #233.