Commit Briefs
malloc: remove locking
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>
lib9: putenv wraps POSIX setenv, not legacy putenv
POSIX setenv does everything that p9putenv's body, so just delegate to that. Signed-off-by: Dan Cross <cross@gajendra.net>
devdraw: avoid deadlock in x11 resize
Fixes #347.
libmach: Fix type errors in FreeBSD.c
The ptrace handlers wanted to take u64int arguments, not ulong. Signed-off-by: Dan Cross <cross@gajendra.net>
devdraw: actually send resize event on resize
Fixes #340. Fixes #343.
factotum: update for new nbrecvul return value
Unclear whether the old semantics were the right ones, but at least this preserves what they've been for the past however many years.
compress: import Plan9 compress
Add #define USED(x)... boilerplate compress: import Plan9 manpage.
winwatch: Plan 9-ify.
This is new code, and custom to plan9port. Make it conform more closely to plan9 style. Signed-off-by: Dan Cross <cross@gajendra.net>
clock: Remove unused static variable in clock.c
`struct Tm tms` was set but never referenced; noticed in a compiler warning. Remove it. Signed-off-by: Dan Cross <cross@gajendra.net>
winwatch: port based Plan 9 winwatch
Port of Plan 9's winwatch(1).