Commit graph

221 commits

Author SHA1 Message Date
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
481b596d93 libthread: fix fault in teardown of proc
Fixes #332.
2020-01-13 23:26:42 -05:00
Russ Cox
369923f6fc libthread: fix nbrecvul, recvul to match man page, Plan 9
They return 0 on failure, not -1.
Bug introduced in my original libthread-for-Unix code.

Fixes #230.
2020-01-13 17:00:58 -05:00
Russ Cox
0158bceec7 libthread: run first thread in proc on system stack
For pthread systems that are fussy about which stack is used,
this makes sure that threadmain runs on a system stack.
If you only use proccreate (never threadcreate), all threads run
on system stacks.
2020-01-12 15:08:28 -05:00
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
Russ Cox
9e4b56e764 libthread: add threadspawnd
R=rsc
http://codereview.appspot.com/6742064
2012-10-22 12:32:09 -04:00
Russ Cox
220c15d2b7 fix gcc 4.7 warnings (thanks Tuncer Ayaz)
R=rsc
http://codereview.appspot.com/6744053
2012-10-20 13:36:52 -04:00
Russ Cox
20f5692b7f openbsd updates (thanks Pascal Stumpf)
R=rsc
http://codereview.appspot.com/6401049
2012-07-14 10:16:54 -04:00
Russ Cox
813b3eea8b OS X PowerPC fixes (thanks Cameron Kaiser) 2011-10-23 17:55:23 -04:00
Russ Cox
b4f9ba7894 libthread: fix 10.5.8 build - uname says 9.8.0 2011-10-14 00:01:12 -04:00
Russ Cox
04e0a9bb81 libthread: Lion context routines 2011-10-13 23:57:54 -04:00
Russ Cox
fc567f476a build: OS X 64-bit build
R=rsc
http://codereview.appspot.com/4838047
2011-08-02 14:28:04 -04:00
Richard Miller
9cf92718e9 arm: build fixes
Get p9p to build cleanly for ARM - based on suggestions from rsc and eekee, plus a final tweak from me.  Tested (a bit) on sheevaplug (ubuntu jaunty), Nokia N800 (maemo 4) and Nokia N900 (maemo 5).

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4524056
2011-05-18 13:20:56 -04:00
Russ Cox
ba940ae61c libthread: context switching for arm, still not complete 2009-11-18 04:12:17 -05:00
Russ Cox
fa662c9571 INSTALL: fix build on Snow Leopard
http://codereview.appspot.com/116073
2009-09-11 13:51:50 -04:00
Russ Cox
0829f75bba libthread: make page work on OS X 2009-08-17 17:29:44 -07:00
Russ Cox
0ac670585c libthread: work around gcc warning on FreeBSD 2008-12-23 13:03:07 -08:00
Russ Cox
d19769ae98 libthread: correct sysfatal handler prototype 2008-10-26 17:01:59 -04:00
Tim Wiess
69d1259cf9 libthread: add proper sysfatal 2008-07-20 03:11:05 -04:00
Russ Cox
faf1fb6c7e libthread: abort on single-threaded lock contention 2008-07-09 11:41:14 -04:00
Russ Cox
df1ee4e1af libthread: fix 64-bit bug in threadstart (Nathaniel Filardo) 2008-06-01 08:41:51 -04:00
Russ Cox
0215811dc2 libthread: fix no-receive nbrecv etc. bug (David Jeannot) 2008-05-06 12:51:19 -04:00
Russ Cox
80f2165d27 libthread: input sanity checks 2008-05-05 23:08:35 -04:00
Russ Cox
b32d9d9c2e libthread: remove bogus write in threadmain 2008-02-28 08:49:34 -05:00
Russ Cox
2640996af8 libthread: use our own swapcontext/makecontext even on OS X 10.5 2007-11-05 13:14:52 -05:00
Russ Cox
ea55a42c96 libthread: better OS X 10.5 test (Jeff Sickel) 2007-11-03 16:10:39 -04:00
Russ Cox
e7ae61181c libthread: Apple OS X 10.5 (Leopard) tweaks (Jeff Sickel, Bakul Shah) 2007-10-30 13:33:12 -04:00
Russ Cox
47ede89e4a libthread: simplify alt tracking, possibly fixing bug 2007-08-22 11:14:30 -04:00
rsc
528dba4d31 use standard sun context routines 2007-05-01 10:51:23 +00:00
rsc
9b3fcf01c5 Mac FUSE support (thanks to Jeff Sickel) 2007-01-18 12:52:54 +00:00
rsc
ff63eeb1bd pin 2006-06-26 05:49:10 +00:00
rsc
df970459f9 pin 2006-06-26 05:47:59 +00:00
rsc
d93cc14ece fix proc leak; add p9usepwlibrary 2006-06-12 17:20:42 +00:00
rsc
26eba9db1a sparc 2006-06-04 16:07:25 +00:00
rsc
17558fbe2d set RFNOTEG when we can 2006-06-04 16:06:49 +00:00
rsc
286f68524e avoid zombie when execvp fails 2006-05-12 20:52:12 +00:00
rsc
fa07e3d777 16-byte align 2006-04-22 00:50:08 +00:00
rsc
af6e459f18 put threadinfo back 2006-04-21 03:58:52 +00:00
rsc
110c707dda darwin 386 start 2006-04-21 03:34:44 +00:00
rsc
cb0e769110 no // 2006-04-04 16:09:46 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
c33c1419f4 fixes 2006-02-16 06:22:03 +00:00
rsc
8712d1a38e more 2006-02-16 06:18:19 +00:00
rsc
229086e790 more fix 2006-02-16 06:11:08 +00:00
rsc
07b075d589 more sparc64 2006-02-16 06:02:46 +00:00
rsc
05eb37f267 maybe 2006-02-14 07:35:14 +00:00
rsc
76a78f4320 sparc64 rule 2006-02-14 06:52:41 +00:00
rsc
4940b55216 add wait 2006-02-12 16:48:50 +00:00
rsc
0c7c441e90 sparc64 attempt 2006-02-10 05:32:42 +00:00
rsc
bafbb3918a doubtful this will work 2006-02-09 08:20:11 +00:00