Neven Sajko
0237dec768
libthread: fix ARM build by renaming file
...
Fixes #363
Change-Id: Ic8ad5ccce3935fdf00732d78d3024b535db90447
2020-02-11 06:58:26 -05:00
Martin Palma
f66f0a587b
devdraw: fix cmd-r
to toggle retina vs. non-retina mode on macOS ( #361 )
...
and not unexpectedly quitting an application.
Fixes #360
2020-02-03 14:59:58 -05:00
Russ Cox
4197af4122
libthread: comment stack border a bit more
2020-01-24 13:09:55 -05:00
Russ Cox
93e2e820a5
acme: report close failure in Put, this time for sure
...
Missed in 0b349f6f
that Bterm is not closing fd.
2020-01-24 13:09:11 -05:00
Russ Cox
f6c9f7b14c
libthread: fix test deps, cleanup in mkfile
2020-01-19 23:04:58 -05:00
Russ Cox
4698bde236
libthread: clean up sysofiles.sh a bit more
2020-01-19 23:04:58 -05:00
Russ Cox
37e7d24c0c
libthread: rm OpenBSD tas implementations
...
OpenBSD is using pthreads now, so no need for tas.
2020-01-19 23:04:58 -05:00
Russ Cox
41b3e8b989
libthread: use consistent stack calculation code in makecontext
...
Also reduce duplication: makecontext is per-arch not per-os-arch.
May fix #353 .
2020-01-19 23:04:58 -05:00
Russ Cox
ac8042dfa9
libthread: rm NetBSD pthread reference in sysofiles.sh
...
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-19 23:04:58 -05:00
Russ Cox
cb8f735786
all: remove Linux 2.4 vs 2.6 detection
...
Linux 2.4 is dead.
(The libthread code hasn't worked for Linux 2.4 for a long time.)
2020-01-19 23:04:58 -05:00
Russ Cox
8d82ccefd2
libthread: remove Linux 2.4 code
...
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-19 23:04:58 -05:00
Russ Cox
c181e39eea
libthread: rm unused sparc-ucontext.h
...
More dead code.
2020-01-19 21:26:30 -05:00
Russ Cox
52397aaf2b
libthread: rm Darwin pre-11.0.0 support
...
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-19 21:26:30 -05:00
Russ Cox
8dcb18f71b
libthread: rm FreeBSD 4 code
...
Pretty sure FreeBSD 4 is gone now. :-)
2020-01-19 21:26:23 -05:00
Russ Cox
d15607b9dd
libthread: rm OpenBSD.c
...
This should have been deleted in 20f5692b
(2012-07-14),
which removed the mkfile and sysofiles.sh references to it.
2020-01-19 20:52:35 -05:00
Neven Sajko
57157d856e
libthread: rm unused ARM (get|set)mcontext ( #354 )
...
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-19 20:43:55 -05:00
Dan Cross
83b1e7a39b
9fs: remove tip (dead?), redirect sources to 9p.io
...
Fixes #195 .
Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16 17:22:27 +00:00
Russ Cox
1d0d432ccb
devdraw: abort alt sequence on window change on macOS
...
Fixes #3 .
2020-01-16 12:07:47 -05:00
Dan Cross
23a2368980
libthread: NetBSD supports pthreads, remove ancient systems in sysofiles.sh
...
Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-16 17:01:44 +00:00
Dan Cross
7bf2db4c2a
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>
2020-01-16 16:54:19 +00:00
Dan Cross
3ef80ba5f5
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>
2020-01-16 16:46:58 +00:00
Russ Cox
0be57355f9
devdraw: avoid deadlock in x11 resize
...
Fixes #347 .
2020-01-15 12:01:12 -05:00
Nicola Girardi
4241cae2a1
cmd/rio: xshove: set geometry by window id
2020-01-15 11:55:37 -05:00
Dan Cross
d46053106d
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>
2020-01-15 16:51:14 +00:00
Russ Cox
fe2b2de984
devdraw: set windowrect correctly on x11 if window gets unexpected size
...
Fixes #54 .
2020-01-15 11:26:01 -05:00
Russ Cox
ba60bab3cd
devdraw: actually send resize event on resize
...
Fixes #340 .
Fixes #343 .
2020-01-15 11:09:16 -05:00
Russ Cox
e75dbb6af8
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.
2020-01-15 10:49:28 -05:00
sean
2c3c82126b
compress: remove (not distributed) from tar(1) manpage.
2020-01-15 10:00:14 -05:00
sean
cb58f3291c
compress: import Plan9 compress
...
Add #define USED(x)... boilerplate
compress: import Plan9 manpage.
2020-01-15 10:00:14 -05:00
Dan Cross
6510a2d353
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>
2020-01-15 09:58:24 -05:00
Dan Cross
0ac4bfee32
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>
2020-01-15 09:20:41 -05:00
markvanatten
a9b462061c
winwatch: port based Plan 9 winwatch
...
Port of Plan 9's winwatch(1).
2020-01-15 08:43:01 -05:00
Oleg Nemanov
dc24d309d5
9pfuse: update errortab
2020-01-15 08:32:00 -05:00
sean
e0434ae424
soelim: manpage fixes.
2020-01-15 08:27:57 -05:00
sean
40685d24d8
soelim: import from Plan9
...
Add entry in lib/moveplan9.files to trigger
relocation during INSTALL.
2020-01-15 08:27:57 -05:00
Russ Cox
5c06214952
venti/buildindex: fix hang on large indexes
...
Fixes #93 .
2020-01-14 19:46:47 -05:00
Russ Cox
1f799495e4
devdraw: notify window resize promptly on x11
...
Fixes #339 .
2020-01-14 19:43:32 -05:00
Russ Cox
40d787ab12
libdraw: send hangup to process when window is lost
...
This matches the Plan 9 behavior a bit better.
Fixes #30 .
2020-01-14 18:05:51 -05:00
Russ Cox
9505cd15a6
lib9: make formatting lock-free again
...
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-14 18:04:00 -05:00
Russ Cox
d28913a9e6
acme: save/restore multiline tags in Dump/Load
...
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-14 16:49:43 -05:00
phonologus
a0691bc460
tar: remove /bin/ when invoking compressors
2020-01-14 14:52:18 -05:00
Russ Cox
8c573cab68
libthread: use mmap to allocate OpenBSD stacks
...
Should fix faults on OpenBSD.
Fixes #218 .
Fixes #226 .
2020-01-14 13:58:47 -05:00
Russ Cox
4ae529dbfe
libdraw: use proper pipe for default font data
...
May fix a deadlock / missing font on OpenBSD.
Fixes #308 .
2020-01-14 13:32:17 -05:00
Russ Cox
4c54893156
devdraw: do not force-hide menu and dock during full screen on mac
...
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-14 12:06:34 -05:00
Russ Cox
3d1382b98a
devdraw: hide dock in full screen mode
...
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-13 23:56:29 -05:00
Russ Cox
952a9afae0
INSTALL: do not rm config after setting it up
...
Fixes #334 .
2020-01-13 23:38:04 -05:00
Xiao-Yong
b741db607a
devdraw: correctly hide Mac menu bar ( #335 )
...
`window:willUseFullScreenPresentationOptions:` is an instance method
of the protocol `NSWindowDelegate`.
2020-01-13 23:33:59 -05:00
Russ Cox
481b596d93
libthread: fix fault in teardown of proc
...
Fixes #332 .
2020-01-13 23:26:42 -05:00
Russ Cox
573169dd88
acme: fix buffer overflow introduced in parsetag refactor
2020-01-13 23:17:39 -05:00
Russ Cox
125cfe1c0d
mouse(3): fix definition of Mousectl
2020-01-13 23:17:39 -05:00