Commit graph

228 commits

Author SHA1 Message Date
wkj
829e822386 Appease the time_t monster. 2004-12-29 01:25:41 +00:00
wkj
c2070b2fc9 Include netinet/in.h to get ntohs prototype. 2004-12-29 01:25:18 +00:00
wkj
374886540d Formatting nit. 2004-12-29 01:24:13 +00:00
rsc
b37396bd11 make these files look like plan 9's 2004-12-28 20:01:58 +00:00
rsc
0341761074 add awaitfor and waitfor 2004-12-27 19:11:21 +00:00
rsc
e8edc17986 lock using Lock instead of QLock.
qlocks are complicated enough that
they need to be able to print during
debugging.
2004-12-27 05:18:22 +00:00
rsc
10b4555766 as wkj pointed out, notifyseton should not call notesetenable 2004-12-27 03:22:54 +00:00
rsc
eb7f99c552 fmtdef.h needed for VA_COPY 2004-12-27 00:11:32 +00:00
rsc
cdccf023aa add isNaN 2004-12-27 00:11:13 +00:00
rsc
e686c2b35e forgot this 2004-12-27 00:11:01 +00:00
rsc
5787ba4d73 add proper locking for libfmt! 2004-12-26 23:17:18 +00:00
rsc
a3add39bbc plan 9 changes 2004-12-26 23:17:03 +00:00
rsc
00975b7ef1 add portdate 2004-12-26 23:10:19 +00:00
rsc
5cd259167b portdates 2004-12-26 23:08:53 +00:00
rsc
ae1c9bc4ab more tests 2004-12-26 23:07:49 +00:00
rsc
df121a0027 import changes from plan 9 2004-12-26 23:07:37 +00:00
rsc
a76c0fd4a9 pick up plan 9 fltfmt changes 2004-12-26 22:36:52 +00:00
rsc
3f1a219769 various little changes.
also pick up latest fltfmt from plan 9
2004-12-26 22:36:12 +00:00
rsc
5f8fa94796 cleanups - lots of removed files now in thread library.
qlock.c - stubs to thread library
notify.c - clean interface slightly.
2004-12-26 21:51:15 +00:00
rsc
b2ff538258 add for unix port 2004-12-26 21:50:39 +00:00
rsc
bd36f714d2 add for unix port 2004-12-26 21:50:28 +00:00
rsc
e5aa96acbf clean up for unix port 2004-12-26 21:50:14 +00:00
rsc
9acaad4570 clean up signal handling 2004-10-23 02:59:33 +00:00
rsc
298f6bd657 print 0 %ux as 0x0 2004-10-22 17:13:54 +00:00
rsc
32116738e1 more debugging 2004-10-22 17:12:38 +00:00
rsc
aa200fe309 try to avoid calling notify on the "dumb" signals 2004-10-22 17:12:11 +00:00
rsc
99834d136f add core dump and signal to status line 2004-10-22 17:11:47 +00:00
rsc
8537259f82 Fix bug in rune half of __fmtcpy reported by rob. 2004-09-28 16:23:32 +00:00
rsc
05d8c6df6c Get rid of 9proc. 2004-09-23 03:06:04 +00:00
rsc
040d1d02f5 Get rid of 64-bit constants. 2004-09-23 03:05:40 +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
8d4a3514a8 was ffork-Linux.c. 2004-09-17 22:11:21 +00:00
rsc
282c88f9de Bite the bullet. Have to use different
binaries on 2.4 and 2.6.
2004-09-17 22:09:31 +00:00
rsc
b4c842f139 small tweaks 2004-09-17 22:08:43 +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
3f23048f7b remove temp files on close 2004-06-17 21:19:37 +00:00
wkj
72a653997c Unused variable. 2004-06-17 01:59:07 +00:00
rsc
e42882dc96 publish p9dialparse 2004-06-16 16:45:09 +00:00
rsc
bd2e802053 DAMN BERKELEY. 2004-06-16 03:50:28 +00:00
rsc
d9e16d252a get this right 2004-06-11 18:57:32 +00:00
rsc
e750400529 add OLOCK 2004-06-11 14:38:56 +00:00
rsc
9c63558707 asdf 2004-06-09 14:22:08 +00:00
rsc
f437e56d1d add strdup for debugging. 2004-06-09 14:15:47 +00:00
rsc
ca9b36624f work much harder to reclaim stacks 2004-06-09 14:14:11 +00:00
rsc
ceecb31310 satisfy valgrind 2004-06-09 14:13:49 +00:00
rsc
d1b4cfde55 use plan9 malloc 2004-06-09 14:12:04 +00:00
rsc
6c7460701e various bug fixes and paranoia 2004-05-23 00:59:33 +00:00
rsc
7e0e6522e5 lock malloc ourselves 2004-05-23 00:58:23 +00:00
rsc
1c39bb5919 fix race. 2004-05-20 21:39:24 +00:00
rsc
76e6aca867 old linux 2004-05-15 23:16:38 +00:00
rsc
983990c806 C
little bugs
.
wq
VS: ----------------------------------------------------------------------
2004-05-14 20:19:53 +00:00
rsc
631fe87f4c minor bug fixes 2004-05-14 20:08:02 +00:00
rsc
debcecb539 little bug fixes 2004-05-14 19:45:23 +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
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
wkj
115d4c0afc Ignore unknown pragmas.
Be less verbose when allocating uprocs.
Don't drop core dump turds all over the place when x11 goes away.
2004-05-03 17:26:17 +00:00
rsc
b1455f33a8 Little fixes. 2004-04-30 02:16:28 +00:00
rsc
be36ff6885 add -W to specify window size.
various other little fixes.
2004-04-29 17:13:24 +00:00
rsc
3d72637f9b Don't be stupid. 2004-04-26 19:28:28 +00:00
rsc
7317e77da3 display correct size of block devices for linux.
that was surprisingly easy.
2004-04-25 22:24:56 +00:00
rsc
d72054aa27 add this 2004-04-23 03:50:19 +00:00
rsc
141243821c just a stub. 2004-04-21 22:44:51 +00:00
rsc
06c4fd06ca add RFNOWAIT. this was probably a bad idea. 2004-04-21 22:44:37 +00:00
rsc
0b424d7bd7 always a good idea to drop the lock when you're done. 2004-04-21 07:47:50 +00:00
rsc
f928ea8571 yet more 2004-04-21 04:50:23 +00:00
rsc
868600f21e more stuff. 2004-04-21 04:50:13 +00:00
rsc
175b8a534a No more malloc or lock inside signal handlers. 2004-04-21 04:48:25 +00:00
wkj
60d3db8e6b Try to gather entropy from /dev/random. 2004-04-21 03:06:03 +00:00
rsc
dddc2ed156 Compute time zone using strftime. 2004-04-20 17:00:01 +00:00
rsc
a16e9f2de7 help out freebsd 4.9 2004-04-20 05:11:39 +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
5ad51f0cff bye bye 2004-04-08 19:57:05 +00:00
rsc
6f6553dfb7 Cache last uid, gid to make translation faster. 2004-04-08 19:31:21 +00:00
rsc
3a9dccd76e Change _p9strsig to return nil if tmp==nil.
Add atoi, atol, atoll.
These versions call strtol/strtoll with base==0.
The Unix versions use base==10.
2004-04-02 22:57:49 +00:00
rsc
d99b2f34e6 Sometimes it's amazing these haven't been turned
up by other compilers.
2004-03-26 19:20:10 +00:00
rsc
3df902ecd0 Only use futimesat on Solaris 9 2004-03-26 05:06:22 +00:00
rsc
be22ae2d07 SunOS can rot in hell. 2004-03-26 01:59:35 +00:00
rsc
70bcc7804e More files.
More files.
2004-03-25 23:08:53 +00:00
rsc
8ad517944e Today's changes.
More changes.
2004-03-25 23:03:57 +00:00
rsc
498bb22174 Add some missing files. 2004-03-21 14:05:38 +00:00
rsc
2277c5d7bb Small tweaks
Lots of new code imported.
2004-03-21 04:33: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
ff34e95bc3 Change pipes to preserve message boundaries. 2004-03-02 19:27:44 +00:00
rsc
05b7f431f0 Long-standing stability bugs fixed in 9pserve.
Update win to use acme interface directly instead of via pipes.
Add comment to pipe about lack of message boundaries.
2004-03-02 19:21:48 +00:00
rsc
8f314994db More Mac tweaks. 2004-03-02 17:34:15 +00:00
rsc
53dbac9485 Tweaks for the Macintosh. 2004-03-02 16:58:49 +00:00
rsc
d6df6c1e29 Update mkmk.sh. 2004-02-29 22:49:59 +00:00
rsc
91c13e54b5 Move utf, fmt. Small header file changes. 2004-02-29 22:11:15 +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
03480d7333 Why would the Linux man page actually tell the truth? 2004-01-09 20:07:49 +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
b3994ec5c7 More files related to user-level file servers.
Also add acme!
2003-12-11 17:50:28 +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
e95a70884b Bug fixes from the Valgrind oracle. 2003-12-09 06:37:26 +00:00
rsc
d3df308747 File system stuff. 2003-12-06 18:08:52 +00:00
rsc
e97ceade5e various tweaks. 2003-12-06 18:05:27 +00:00
rsc
c715a6127a nan 2003-12-04 19:18:28 +00:00
rsc
dff7e27317 Clean up yacc files in mkcommon, mkhdr.
Add nan to lib9.
Fix memory corruption bugs in 9term.
2003-12-04 19:16:29 +00:00
rsc
1c8efa18ee allow rfork(RFNOTEG|RFPROC|RFFDG) for rc. 2003-12-04 00:17:10 +00:00
rsc
669250d159 Various fixes.
B - fixed usage, DISPLAY :0 vs :0.0
	9term - fixed various terminal things
	rc - notice traps in Read
	_p9dir - only run disk code for disks
	dirread - getdirentries on FreeBSD and Linux
		are different w.r.t. meaning of off.
	notify - set up so signals interrupt system calls
	bprint - use bfmt.
2003-12-03 22:50:48 +00:00
rsc
1555bd7aaa call exit rather than _exits inside exits,
so that the c library atexit handlers get
a chance to run.
2003-11-26 00:48:56 +00:00
rsc
3765283ccf Silence some Mac OS X warnings. 2003-11-25 02:36:46 +00:00
rsc
6bb54fab15 more tweaks. 2003-11-25 02:22:49 +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
f9355efb2e Build correctly on FreeBSD.
(Will this process ever reach a fixed point?)
2003-11-24 00:47:50 +00:00
rsc
d2c4ee9e48 Tweaks to build properly on Linux. 2003-11-24 00:43:41 +00:00
rsc
478ee9636f Make things build on FreeBSD again. 2003-11-23 20:04:53 +00:00
rsc
1c253ceb58 Annoying changes to work on Sun boxes. 2003-11-23 19:49:17 +00:00
rsc
fd04aacee1 Various additions and fixes. 2003-11-23 18:12:54 +00:00
rsc
3d7e9092a4 Single-threaded plumber that can run "start" rules.
Thanks to Caerwyn Jones.
2003-10-14 02:35:00 +00:00
rsc
169aba14a4 Move werrstr into errstr, so that if you use werrstr
you have to get this __errfmt instead of the one
in libfmt that only does Unix error codes.
2003-10-14 02:10:47 +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
a6ea03aea9 Allow prec==0. 2003-10-11 02:49:01 +00:00
rsc
98014aa543 Macintosh. 2003-10-03 15:33:45 +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
522b0689c3 Reorg 2003-09-30 19:05:50 +00:00
rsc
b2cfc4e2e7 Initial revision 2003-09-30 17:47:41 +00:00