Commit graph

117 commits

Author SHA1 Message Date
rsc
5093c3fa40 try to implement the daemonize hack. 2004-10-22 18:45:08 +00:00
rsc
793d93626b new test program 2004-10-22 17:15:47 +00:00
rsc
ba15d71b0c debugging, more pthreads crap 2004-10-22 17:15:30 +00:00
rsc
ad6638adc7 add this. 2004-09-23 21:40:21 +00:00
rsc
e7821682ea add pthread 2004-09-23 19:03:46 +00:00
rsc
7966faa931 Continue fighting pthreads.
Clean up thread library a bit too.
2004-09-23 03:01:36 +00:00
rsc
c6687d4591 Continue the pthreads torture. 2004-09-21 01:11:28 +00:00
rsc
e5c26b01f7 various forgotten files 2004-09-20 15:08:57 +00:00
rsc
bcf527a98e Continue switching library over to pthreads when possible.
Tprimes works on Linux 2.6.  You can only have 128 procs
though.
2004-09-17 03:34:32 +00:00
rsc
06bb4ed20d Rewrite to remove dependence on rendezvous and its bizarre
data structures.  Makes it easier to use pthreads too.
Still need to add code for non-pthreads systems.

Just a checkpoint to switch work to another machine.
2004-09-17 00:38:29 +00:00
rsc
984e353160 PowerPC Linux support from ericvh.
Mainly adding va_copy/va_end.
Also fix bug in sprint wrapping
around top of memory.
2004-08-22 15:39:56 +00:00
rsc
73bef9b76b More consistent use of _exits and exits
in place of _exit and exit.
2004-08-11 01:56:35 +00:00
wkj
a87638642c Compare function pointers against 0 rather than nil. 2004-07-09 01:54:06 +00:00
rsc
99dfa1dad2 va_arg fix 2004-06-17 03:33:33 +00:00
rsc
65de82a30f clean up children more often 2004-06-09 14:23:34 +00:00
rsc
9a4289cfdc add network dialing 2004-06-09 14:11:28 +00:00
rsc
1be1539ea8 make sure only one guy can call exit. 2004-05-23 01:00:12 +00:00
rsc
f1bfc54e12 More little bug fixes 2004-05-14 17:45:39 +00:00
rsc
1a8f27c350 various bug fixes 2004-05-14 15:14:21 +00:00
rsc
30387d7ba6 Noblock is nonsense. 2004-05-12 18:22:54 +00:00
rsc
c4097c2951 Fix small bugs. 2004-05-11 17:51:27 +00:00
rsc
2e965b3324 various bug fixes 2004-05-05 04:22:16 +00:00
rsc
be36ff6885 add -W to specify window size.
various other little fixes.
2004-04-29 17:13:24 +00:00
rsc
10495dd324 add stubs for other systems.
add threadspawn.
2004-04-25 21:31:32 +00:00
rsc
1aa4e9c82e little things 2004-04-23 05:17:54 +00:00
rsc
7e42d21012 odds and ends 2004-04-21 23:43:46 +00:00
rsc
fb36ed82ec how much stack do we need? 2004-04-21 22:47:15 +00:00
rsc
2b4b2ae191 better error handling 2004-04-21 22:47:01 +00:00
rsc
a3785ca2cc Tweaks to make libthread tell Valgrind about its stack limits,
so that Valgrind can detect stack overflow for me.
2004-04-21 19:29:04 +00:00
rsc
a0f1e21ff9 make things work on SunOS 2004-04-20 02:03:38 +00:00
rsc
1b135a7805 clean up when finished.
don't set PLAN9
don't set PLAN9
2004-04-19 23:04:36 +00:00
rsc
be22ae2d07 SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
rsc
8ad517944e Today's changes.
More changes.
2004-03-25 23:03:57 +00:00
rsc
2277c5d7bb Small tweaks
Lots of new code imported.
2004-03-21 04:33:13 +00:00
rsc
d49a2e4801 Various fixes, add spell. 2004-03-09 12:45:12 +00:00
rsc
8c6f0e8ab4 Small bug fixes. 2004-03-05 05:58:48 +00:00
rsc
15680d56a6 Amazingly picky bug fixes from Valgrind. 2004-03-05 05:53:11 +00:00
rsc
4da83e7cce Various little fixes. 2004-03-05 03:13:13 +00:00
rsc
c91bd3283a Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.
Add debugging to fdwait.

Rewrite getcallerpc on PowerMac to be correct.
2004-03-05 02:25:41 +00:00
rsc
02a1a5c18b Debugging libthread for acme. 2004-03-05 01:12:11 +00:00
rsc
53dbac9485 Tweaks for the Macintosh. 2004-03-02 16:58:49 +00:00
rsc
b4705757e5 Threaded read9pmsg. 2004-02-29 22:54:49 +00:00
rsc
2517c38a8c Add fdwait routines. 2004-02-29 22:53:51 +00:00
rsc
5a8e63b2f0 Fighting the good fight.
Move libfmt, libutf into subdirectories of lib9.

Add poll-based socket i/o to libthread, so that we can
avoid using multiple procs when possible, thus removing
dependence on crappy pthreads implementations.

Convert samterm, acme to the single-proc libthread.

Bring libcomplete, acme up-to-date w.r.t. Plan 9 distribution.
2004-02-29 22:10:26 +00:00
rsc
d51419bf43 various tweaks. 2004-02-09 19:33:05 +00:00
rsc
49588d5d90 Tweaks to various bits.
Until I hear otherwise, Refs aren't used enough to
merit their own assembly.  They are now implemented with locks.
2003-12-17 04:34:52 +00:00
rsc
32f69c36e0 Add support for user-level 9P servers/clients and various bug fixes to go with them. 2003-12-11 17:48:38 +00:00
rsc
e97ceade5e various tweaks. 2003-12-06 18:05:27 +00:00
rsc
3765283ccf Silence some Mac OS X warnings. 2003-11-25 02:36:46 +00:00
rsc
64bcfff3a1 More tweaks on Linux and Solaris. 2003-11-25 02:11:11 +00:00
rsc
f7012583e9 Add the #goo to allow use in C++.
Silence a few more warnings.
Strip down the mkfiles more.
Fix bug in X11 mouse handling, note groups.
2003-11-25 01:40:27 +00:00
rsc
912fba95e7 Changes for Mac OS X. Most important is stack sizes in samterm,
which were completely bogus.  (Libthread used to ignore them but
not anymore.  Maybe we really should ignore them, but that breaks
Venti, which needs *really* big stacks.)
2003-11-24 22:39:06 +00:00
rsc
2db9e4821d tweaks. 2003-11-24 20:16:30 +00:00
rsc
478ee9636f Make things build on FreeBSD again. 2003-11-23 20:04:53 +00:00
rsc
50e628cb8f runthread needn't be inline 2003-11-23 18:38:17 +00:00
rsc
8a708fb239 sun support 2003-11-23 18:18:41 +00:00
rsc
cd7ddc9b5f make -> mk
remove clumsy stack hack.
fix exec.
fix nthreads maintenance.
fix threadexitsall not to kill self.
add sun support.
2003-11-23 18:18:00 +00:00
rsc
8110278003 Fix a bug in Linux? 2003-10-14 01:46:24 +00:00
rsc
90026180d1 Use new directory structure. 2003-10-11 03:58:46 +00:00
rsc
00b80edb97 Licensing and various tweaks. 2003-10-11 02:59:10 +00:00
rsc
4cecbbe678 wasn't supposed to go in. 2003-10-01 02:53:27 +00:00
rsc
a46395ecf9 More Darwin. 2003-10-01 02:53:00 +00:00
rsc
a995e477ff Various tweaks to make things run on Mac OS.
The main change is the use of pthread to implement ffork.
2003-10-01 02:50:57 +00:00
rsc
8af7f5d093 Rendezvous tester. 2003-10-01 00:44:57 +00:00
rsc
e767dd4930 Add extra build targets. 2003-10-01 00:44:50 +00:00
rsc
522b0689c3 Reorg 2003-09-30 19:05:50 +00:00
rsc
76193d7cb0 Initial revision 2003-09-30 17:47:42 +00:00