Commit graph

1746 commits

Author SHA1 Message Date
rsc
2860b3559c openbsd 2005-07-21 00:03:55 +00:00
rsc
b4b686415d openbsd 2005-07-20 23:29:56 +00:00
rsc
1d41999e22 use 9ar 2005-07-20 19:07:22 +00:00
rsc
769eb1988a fix ifdef 2005-07-20 19:00:03 +00:00
rsc
0613fe4b84 fix freebsd 2005-07-19 22:59:09 +00:00
rsc
1c171e3add I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
rsc
42a57eff1c better architecture splitting 2005-07-19 17:40:15 +00:00
rsc
d67cd5c33c better mk test 2005-07-19 16:02:31 +00:00
rsc
2b6c15d87f stats pages 2005-07-19 15:18:40 +00:00
rsc
4599822f71 correct $BIN 2005-07-19 14:52:08 +00:00
rsc
bea4b9f724 openbsd 2005-07-19 11:48:01 +00:00
rsc
9d654ebc8c openbsd 2005-07-19 11:43:12 +00:00
rsc
1041ea6f68 stolen from freebsd; maybe work on openbsd? 2005-07-19 11:43:01 +00:00
rsc
fff4d1f20a unbugger venti 2005-07-19 01:39:50 +00:00
rsc
ac1747b052 fix usage 2005-07-18 22:51:05 +00:00
rsc
c7b428f2eb secstore moved to auth 2005-07-18 22:50:56 +00:00
rsc
9f95eb6fd6 announce to networks 2005-07-18 00:05:41 +00:00
rsc
16ea7713b5 change default handle 2005-07-18 00:03:18 +00:00
rsc
dcc0b3ca1d better cr handling 2005-07-18 00:01:56 +00:00
rsc
c6f92061c0 ignore window size change 2005-07-14 12:48:02 +00:00
rsc
6cc5b304fa hold mode in raw mode 2005-07-14 00:20:41 +00:00
rsc
fcb69ec5d8 invoke plan9 diff 2005-07-14 00:09:44 +00:00
rsc
8be32ce2cb cannot trust system libraries to lock properly. sigh. 2005-07-14 00:06:43 +00:00
rsc
7508190269 silence fprint 2005-07-14 00:03:57 +00:00
rsc
3c47d76174 gcc4 2005-07-13 23:01:04 +00:00
rsc
f691849bf6 freebsd 5 2005-07-13 22:51:29 +00:00
rsc
c44f783b4b nil 2005-07-13 21:50:47 +00:00
rsc
7635ebf65a unused.var 2005-07-13 21:43:14 +00:00
rsc
a8ec4910fd apple 2005-07-13 21:34:11 +00:00
rsc
f462256db2 stupid.apple 2005-07-13 21:30:18 +00:00
rsc
2e32846495 warnings 2005-07-13 21:29:42 +00:00
rsc
bd18885d96 sentinel 2005-07-13 21:27:52 +00:00
rsc
82908b6586 sentinel 2005-07-13 21:20:35 +00:00
rsc
78052719a8 new 2005-07-13 21:00:26 +00:00
rsc
52bba5f01e warnings 2005-07-13 17:32:56 +00:00
rsc
34d0c826bb no mode on vtcachealloc 2005-07-13 17:22:01 +00:00
rsc
103335c208 unbugger sunrpc, diskfs 2005-07-13 14:19:06 +00:00
rsc
d4780b1c14 warnings 2005-07-13 14:18:43 +00:00
rsc
6eaf9471a7 move to bin 2005-07-13 14:04:48 +00:00
rsc
18baaf44d4 remove empty file 2005-07-13 14:04:07 +00:00
rsc
e3769d22f7 move hist 2005-07-13 14:03:30 +00:00
rsc
c1e6f6426f update 2005-07-13 13:59:50 +00:00
rsc
e9254adc8f cleanup 2005-07-13 13:44:40 +00:00
rsc
a699daf6af work around bug in mk? 2005-07-13 13:44:35 +00:00
rsc
7b99eb2732 use vtfilecreate right 2005-07-13 13:40:24 +00:00
rsc
3082404ea9 update 2005-07-13 13:40:05 +00:00
rsc
df03d60c04 keystrokes 2005-07-13 10:53:20 +00:00
rsc
7643b2635c cleanup 2005-07-13 10:52:39 +00:00
rsc
d7b202dfbd no c++ comments 2005-07-13 10:52:08 +00:00
rsc
a28c0548f4 better errors 2005-07-13 10:51:30 +00:00
rsc
2d70c581f4 better error messages 2005-07-13 10:50:44 +00:00
rsc
2e9749ec60 unix is not a variable name 2005-07-13 10:50:16 +00:00
rsc
e2d62fb931 no more L characters. sigh. 2005-07-13 10:48:09 +00:00
rsc
37c7bc13fd exit gracefully on error 2005-07-13 10:47:40 +00:00
rsc
4bb8d72564 rebuild 2005-07-13 10:47:05 +00:00
rsc
1df4bce6ff add $MKFLAGS 2005-07-13 10:46:41 +00:00
rsc
f0bf146d21 add listen1 2005-07-13 03:59:53 +00:00
rsc
0b1c1f414d more files 2005-07-13 03:59:24 +00:00
rsc
9c8fc12873 zero unused io 2005-07-13 03:58:11 +00:00
rsc
e87f5d7cec no mode 2005-07-13 03:57:57 +00:00
rsc
8f5c6c7d79 no black and white 2005-07-13 03:57:45 +00:00
rsc
b2f9ee0de5 free subfonts correctly 2005-07-13 03:57:24 +00:00
rsc
3b634dc7e4 no used(Point) 2005-07-13 03:56:55 +00:00
rsc
a3532cf354 keyboard not mouse 2005-07-13 03:56:44 +00:00
rsc
4d0bbfacdd more places to look 2005-07-13 03:56:36 +00:00
rsc
ca63c078d9 more places where display can be nil 2005-07-13 03:56:21 +00:00
rsc
2ec48bbca3 align macros for sun 2005-07-13 03:55:52 +00:00
rsc
835c1e4786 better error messages 2005-07-13 03:55:44 +00:00
rsc
9e4627500f mark broken code 2005-07-13 03:55:24 +00:00
rsc
871e83a03e add printevent 2005-07-13 03:54:55 +00:00
rsc
ac33a34a29 formatting changes; attempt at keyboard-based window switching 2005-07-13 03:54:35 +00:00
rsc
7ce3f20d73 stupid sun 2005-07-13 03:54:01 +00:00
rsc
29ee83f080 remove unused symtab 2005-07-13 03:53:55 +00:00
rsc
e0405f4c8b use more distinguishable +/- 2005-07-13 03:53:49 +00:00
rsc
1cab7105bd needed cast 2005-07-13 03:53:34 +00:00
rsc
44e41b1f3a various needed casts 2005-07-13 03:53:24 +00:00
rsc
55d360f653 lets try hold mode in raw mode 2005-07-13 03:53:17 +00:00
rsc
17cfc1dd5f dirbuf is an extern on sun 2005-07-13 03:52:48 +00:00
rsc
d82651b8fd no [] initializers 2005-07-13 03:52:37 +00:00
rsc
d7d96fb3e2 remove X11 2005-07-13 03:52:28 +00:00
rsc
91cf20ddca add diskfs to buggered 2005-07-13 03:52:19 +00:00
rsc
e12c800fbc try to use system binaries 2005-07-13 03:52:10 +00:00
rsc
004aa293f3 Dump-like file system backup for Unix, built on Venti. 2005-07-13 03:49:41 +00:00
rsc
0c98da8bf8 File system access library. 2005-07-13 03:48:35 +00:00
rsc
a0d146edd7 return of venti 2005-07-12 15:23:36 +00:00
wkj
88bb285e3d Don't insert a bogus <nil> into printed path. 2005-06-22 04:05:14 +00:00
rsc
e3ffbf3b84 set $PLAN9 if necessary 2005-05-19 17:13:24 +00:00
rsc
4c06b8eec1 fixes for vnfs 2005-05-19 14:39:10 +00:00
rsc
f92a2ceba4 handle 0 precision better 2005-05-19 14:39:00 +00:00
rsc
d4aef6a074 handle arbitrary length names in subfontname.
handle overflow in offset computation in font.c
2005-05-12 16:55:14 +00:00
rsc
52006c8244 add vtlognames 2005-05-12 14:03:57 +00:00
rsc
6a4599d779 change labels to get better function boundaries 2005-05-12 14:03:48 +00:00
rsc
a1ad1acf25 remove declaration of errno 2005-05-07 22:42:17 +00:00
rsc
2b6040818e use full prototypes 2005-05-07 22:42:14 +00:00
rsc
bb0266fe61 no wide character constants; sigh 2005-05-07 22:42:06 +00:00
rsc
bc7da02954 OS X Tiger changes 2005-05-07 22:41:59 +00:00
rsc
857072dc11 try to do better with headers 2005-05-07 22:37:26 +00:00
rsc
fc11cb4bbb make sure to set p9unix 2005-05-07 22:36:07 +00:00
rsc
78378021c8 check auth_proxy return value properly 2005-05-07 22:33:54 +00:00
rsc
033c6013b2 fix row dump/load inconsistency - thanks to peter canning 2005-05-02 04:30:54 +00:00
rsc
7e9e092da8 Correct putsnarf-then-getsnarf race. 2005-05-02 04:20:14 +00:00
rsc
1d620367bd remove old tar 2005-05-02 03:32:38 +00:00
rsc
addf6d6a56 remove rule - breaks mac 2005-05-02 03:11:29 +00:00
rsc
910ca53df0 try a different approach to .S files 2005-05-01 22:28:11 +00:00
rsc
40ce5ba674 For Mac OS X Tiger - no SIGIO, SIGWINCH, or WCOREDUMP. 2005-05-01 18:40:25 +00:00
rsc
52e6164443 OpenBSD support. 2005-05-01 18:40:01 +00:00
rsc
cea10000c5 OpenBSD/power support. 2005-05-01 18:38:12 +00:00
rsc
e9ad899486 Fixes from Roland Kaufmann 2005-05-01 17:58:39 +00:00
rsc
7d2df235d4 Add more smiley faces 2005-05-01 17:56:53 +00:00
rsc
040b6da028 Allow unicode in identifiers. 2005-05-01 17:56:35 +00:00
rsc
8e4ae643c3 more netbsd support. 2005-03-28 19:37:33 +00:00
rsc
5ba33c04da NetBSD support. Thanks to Christoph Lohmann. 2005-03-28 15:58:14 +00:00
rsc
78b5635d69 More debugging; do not use /dev/tty explicitly. 2005-03-24 05:45:01 +00:00
rsc
3ae1a866fe Automatically add - prefix, try to make output clearer. 2005-03-24 05:17:21 +00:00
rsc
65fb6fb74c Be a bit more resilient to errors. 2005-03-24 05:17:01 +00:00
rsc
8f88ddb02c unused neditwrsel 2005-03-23 20:20:17 +00:00
rsc
5e77b8bb61 Two bug fixes.
1. Make sure cmdname NUL-terminates its arguments.
2. Fix the elogapply warning, hopefully.
2005-03-23 20:19:53 +00:00
rsc
011090f03b add -A 2005-03-21 17:27:25 +00:00
rsc
5c84c448b8 add srv -a option 2005-03-21 17:24:21 +00:00
rsc
b8c9f31785 new 2005-03-21 07:37:34 +00:00
rsc
e961291897 sftp session cache 2005-03-21 07:37:13 +00:00
rsc
b1e32ef366 better expansions 2005-03-21 05:13:45 +00:00
rsc
8057b1ce3f fix q1 computation bug in expandfile(). only affects external programs 2005-03-21 04:56:47 +00:00
rsc
590c5b346f more bugs fixed; nice amount of printing 2005-03-21 04:27:18 +00:00
rsc
5a3960716d fix :5 in window (don't open directory).
search for file windows better (don't lose files).
2005-03-21 03:59:19 +00:00
rsc
baf7825e82 update usage, use sftp -b /dev/stdin 2005-03-20 23:39:48 +00:00
rsc
80097b0182 fix race 2005-03-18 23:16:34 +00:00
rsc
611d815b8b bug fix from plan 9 2005-03-18 21:52:19 +00:00
rsc
d27787fba7 cleanup 2005-03-18 21:52:04 +00:00
rsc
b5932d3d2a silence gcc 2005-03-18 21:51:52 +00:00
rsc
811a3affff net* => netfile* 2005-03-18 20:05:58 +00:00
rsc
e3331bf21b use fixed name 2005-03-18 19:34:22 +00:00
rsc
8c0613150e use nil instead of 0 2005-03-18 19:34:00 +00:00
rsc
5544aaf99b use typecommit; use nil in place of 0 again 2005-03-18 19:33:50 +00:00
rsc
3b33df997f better tag handling in dollars 2005-03-18 19:33:32 +00:00
rsc
f334d75632 better scrolling 2005-03-18 19:33:26 +00:00
rsc
b636466107 use netfile* instead of net* 2005-03-18 19:30:58 +00:00
rsc
7c709434ec new files 2005-03-18 19:30:22 +00:00
rsc
3a6f92eed1 add verbose9pserve environment variable; fix afid ref 2005-03-18 19:22:01 +00:00
rsc
5a79cf71c2 drop readerr 2005-03-18 19:21:04 +00:00
rsc
3880f0203b new 2005-03-18 19:19:40 +00:00
rsc
1d2f561222 add ls 2005-03-18 19:19:33 +00:00
rsc
377210f6c7 bugger factotum because directories never disappear in cvs 2005-03-18 19:18:57 +00:00
rsc
0ba4eb47d4 no need to setproc(0) 2005-03-18 19:05:50 +00:00
rsc
72f4d44f86 do not touch TSTP, TTIN, TTOU 2005-03-18 19:04:49 +00:00
rsc
57d7df40f4 shuffle 2005-03-18 19:04:28 +00:00
rsc
1dd11f5932 try leaving TTIN, TTOU alone 2005-03-18 19:04:05 +00:00
rsc
915734a70c better error message 2005-03-18 19:03:45 +00:00
rsc
4ee543e58c try harder to put background jobs in background; do not print in response to SIGPIPE 2005-03-18 19:03:25 +00:00
rsc
ca30274bd9 add -9 for debugging 2005-03-18 19:02:55 +00:00
rsc
c042e61ec7 ignore tstp 2005-03-18 19:01:39 +00:00
rsc
56a48c69aa add hget (no ftp support) 2005-03-18 18:57:16 +00:00
rsc
8dd8a81f71 add threaddata 2005-03-18 18:56:17 +00:00
rsc
670dd11a8a be more faithful to plan 9 environment --
allocate window on top of screen.
2005-03-18 18:55:47 +00:00
rsc
168518a993 correct command-printing bug 2005-03-18 18:54:54 +00:00
rsc
6a8f21b2cc better png handling 2005-03-18 18:54:29 +00:00
rsc
ccff3cd0c3 add flushimage 2005-03-18 18:54:08 +00:00
rsc
6b6159b3a7 line editing from rob 2005-03-18 18:09:57 +00:00
rsc
2a373ea419 month old bug fix from rob 2005-03-18 18:05:48 +00:00
rsc
c1fca1adb0 garbage collection 2005-03-18 18:05:41 +00:00
rsc
edefa2492c sunos 2005-03-15 20:27:59 +00:00
rsc
268d64df84 add signal.h 2005-03-15 20:27:00 +00:00
rsc
4a560b7a09 do not set $PLAN9 2005-03-15 20:26:45 +00:00
rsc
db318aa36d syntax errors 2005-03-15 20:26:30 +00:00
rsc
22a88b6735 do not add to void* 2005-03-15 19:50:16 +00:00
rsc
1f8a80722f appease sun 2005-03-15 16:11:47 +00:00
rsc
b3e7c02689 get rid of .= syntax 2005-03-15 14:17:57 +00:00
rsc
d5c40a0da2 Add dollarsign support. 2005-03-14 21:02:14 +00:00
rsc
d96da29b37 Add $foo window names back to acme, enabled with -'$'.
See the comment in wind.c about why this isn't the right
solution.
2005-03-14 20:53:10 +00:00
rsc
7551b2ec8b use plan 9 versions 2005-03-09 17:12:40 +00:00
rsc
4b970769b9 more robust win 2005-03-05 13:11:00 +00:00
rsc
8ba3811378 make chatty9p an extern int for the mac. 2005-03-04 14:47:18 +00:00
rsc
c31f81ac8b open: preserve error on failed open
write: handle offset correctly for fswrite
2005-03-01 20:56:27 +00:00
wkj
10ff532fdc Fix up OBJTYPE on 64-bit x86 FreeBSD machines. 2005-02-22 16:58:04 +00:00
rsc
f8d580d82b make directories as neeeded 2005-02-21 15:03:01 +00:00
rsc
98660df250 better symlink 2005-02-21 14:25:12 +00:00
rsc
5db61d6221 syntactically correct c code always a plus 2005-02-21 04:28:34 +00:00
rsc
d24aad8fd7 bug fix from lucho 2005-02-20 22:51:24 +00:00
rsc
3e1960ce9e fix -d from lucho 2005-02-18 18:28:00 +00:00
rsc
d7688cce37 add check for procscheduler returning 2005-02-16 17:15:56 +00:00
rsc
7eded25c3c make hwrite work with chunked encoding 2005-02-16 17:13:41 +00:00
rsc
80b8842f3e hard-to-find locking bug 2005-02-15 18:08:28 +00:00
rsc
0c891f28db whoops -- close afid in auth_freerpc 2005-02-15 05:04:36 +00:00
rsc
0cbccd3a0e add support for alpha 2005-02-15 05:04:18 +00:00
rsc
429f8aa4c1 ignore tty notes; still not 100% right 2005-02-15 05:04:01 +00:00
wkj
cae9bfe9da Reduce the differences between yaccpar and yaccpars.
Add support for passing an argument through yyparse to yylex.
2005-02-14 20:27:13 +00:00
rsc
5ddc97fc3e disable logging 2005-02-14 19:33:42 +00:00
rsc
8ee6ad4d96 different fix for main proc bug 2005-02-14 18:58:56 +00:00
rsc
c800cb7bac bug fix 2005-02-13 23:56:27 +00:00
rsc
3170c7d40b hide xreadcons 2005-02-13 23:29:32 +00:00
rsc
e1a2296329 more bug fixes 2005-02-13 23:08:55 +00:00
rsc
6acff93f3d lower case 2005-02-13 22:10:33 +00:00
rsc
1757e76a73 new 2005-02-13 22:09:47 +00:00
rsc
ef2eeaf3bd no zombies 2005-02-13 21:40:12 +00:00
rsc
134c20c605 handle /dev/stdin always 2005-02-13 21:38:32 +00:00
rsc
0faf0f0baa add log 2005-02-13 19:26:14 +00:00
rsc
06f4d9201a add getnetconninfo 2005-02-13 19:25:44 +00:00
rsc
18b1814390 use nci to label connections 2005-02-13 18:35:32 +00:00
rsc
8f4871fd2e work around stupid linux bug 2005-02-13 18:35:19 +00:00
rsc
74fc94d47e add dsa x509 2005-02-13 18:35:11 +00:00
rsc
039b8c9af0 add %lB for lower case 2005-02-13 18:34:57 +00:00
rsc
52e5e85b02 allow parseattr(nil) 2005-02-13 18:34:38 +00:00
rsc
b2e0da3e39 bug fix 2005-02-13 18:33:41 +00:00
rsc
e5d68728eb add local address to dial 2005-02-13 18:33:26 +00:00
rsc
fb7a39bc56 add pass proto 2005-02-13 18:32:56 +00:00
rsc
05abefb2a0 bigger buffers; add rdwr 2005-02-13 18:32:38 +00:00
rsc
510d89fc13 more add 2005-02-13 18:04:53 +00:00
rsc
57fcfc2a0b add others 2005-02-13 18:04:20 +00:00
rsc
ce94dbe662 add ssh-agent via factotum 2005-02-13 18:04:00 +00:00
rsc
ea77b9ce7c new program readcons 2005-02-13 18:03:41 +00:00
rsc
6e527fbc4d new auth 2005-02-13 05:59:29 +00:00
rsc
0f8ec41b0a moving to auth 2005-02-13 05:58:45 +00:00
rsc
f0fb9c573e make key prompt work 2005-02-11 22:16:21 +00:00
rsc
68f2c92c6f less chatty 2005-02-11 22:16:11 +00:00
rsc
ba285d2ba9 open correct factotum file 2005-02-11 22:04:12 +00:00
rsc
f93c7b2dc8 fix warnings 2005-02-11 21:18:00 +00:00
rsc
510f0dbf6b no anon union 2005-02-11 21:16:01 +00:00
rsc
b90bacec60 $WSYSTYPE not WSYSTYPE 2005-02-11 21:06:56 +00:00
rsc
031c900094 add x11 include 2005-02-11 21:03:09 +00:00
rsc
6c0209f6f0 build changes 2005-02-11 20:32:41 +00:00
rsc
7d59ed7114 changes 2005-02-11 19:51:21 +00:00
rsc
15423fd052 use ndb directly for authdial 2005-02-11 19:46:29 +00:00
rsc
1b3e768e01 do not need auth_wep or login 2005-02-11 19:46:12 +00:00
rsc
49f498ae11 remove factotum directory 2005-02-11 19:45:55 +00:00
rsc
783aadbdcd better handling of failed setproc 2005-02-11 19:44:37 +00:00
rsc
4999080d5b fix doubleclick 2005-02-11 19:44:27 +00:00
rsc
276bf4edf1 add write -l 2005-02-11 19:44:04 +00:00
rsc
d83256bba4 unbugger 2005-02-11 19:42:55 +00:00
rsc
d957951b75 new 2005-02-11 19:41:16 +00:00
rsc
096ff3e14a add secstored; use readcons 2005-02-11 19:39:51 +00:00
rsc
fbca1e1c5b use explicit %# 2005-02-11 17:01:25 +00:00
rsc
42400cf81f add fsamount, nsamount; use ndb for authdial; use explicit %# 2005-02-11 17:01:18 +00:00
rsc
59518849d8 add _fsunmount; do version in fsinit; add nsinit; add chatty9pclient 2005-02-11 17:00:46 +00:00
rsc
2aa7d30367 call srv->start at start 2005-02-11 17:00:06 +00:00
rsc
b589fce2fb hard code list of plan 9 services in case they are not in /etc/services 2005-02-11 16:58:23 +00:00
rsc
26a5fd5725 set pid=-1 explicitly 2005-02-11 16:58:06 +00:00
rsc
2e397eb47c bug fixes; add secstore 2005-02-11 16:56:15 +00:00
rsc
3889d01d4b add secstore 2005-02-11 16:55:50 +00:00
rsc
7a130107ee add disabled to ignore list 2005-02-11 16:55:38 +00:00
rsc
91968d0ac9 better path for ahd 2005-02-11 16:55:23 +00:00
rsc
5aa723da3c bug fix in auth 2005-02-11 16:55:15 +00:00
rsc
7b8a3f12c7 remove threadregs; use %# explicitly; use attachargs 2005-02-11 16:54:59 +00:00
rsc
5a2237bb22 tweak 2005-02-11 16:54:25 +00:00
rsc
80568494de bug fixes; quieter 2005-02-11 16:53:54 +00:00
rsc
0d4243f789 use nsamount and fsamount 2005-02-11 16:53:27 +00:00
rsc
2709e6e368 new allocrpc interface 2005-02-11 16:44:33 +00:00
rsc
211073f16a set corpid 2005-02-11 16:44:04 +00:00
rsc
9d5979815d send output to fd instead of 0 2005-02-11 16:42:48 +00:00
rsc
2f4ba94e0f debugging 2005-02-11 05:23:12 +00:00
rsc
b16534fd70 reserve var 2005-02-11 02:34:48 +00:00
rsc
ed9fe82834 Remove libthread_db nonsense. 2005-02-11 02:02:56 +00:00
rsc
281c90a5be more pthread 2005-02-11 00:01:49 +00:00
rsc
18443075fb cannot assign args 2005-02-08 21:03:36 +00:00
rsc
c52410ac25 do not use auth.h 2005-02-08 21:03:29 +00:00
rsc
80ecfd2430 add auth 2005-02-08 21:03:12 +00:00
rsc
b1cd1d55e1 use sysfatal 2005-02-08 21:02:54 +00:00
rsc
641405320f add crypt 2005-02-08 21:02:40 +00:00
rsc
648bb6f75a lucho changes 2005-02-08 20:58:10 +00:00
rsc
fa467fbe51 fix paste again 2005-02-08 20:41:39 +00:00
rsc
b7edc22192 send nul with choice 2005-02-08 20:35:31 +00:00
rsc
5fc55a953e avoid unix special files 2005-02-08 20:27:10 +00:00
rsc
8a75090664 add mode chars 2005-02-08 20:25:07 +00:00
rsc
46199d113e bug fix 2005-02-08 20:24:52 +00:00
rsc
2acd6fa6ff expose unix mode bits 2005-02-08 20:17:02 +00:00
rsc
0a22905232 start adding DM bits 2005-02-08 20:08:28 +00:00
rsc
31f809b54d remove debugging 2005-02-08 19:13:34 +00:00
rsc
f3ecd8ae84 play nicer with others w.r.t. signal masks 2005-02-08 19:08:47 +00:00
rsc
8d9f61e1c9 try to handle DEL better 2005-02-08 18:33:06 +00:00
rsc
dc305d0368 Maybe it will run on SunOS 5.8 now. 2005-02-08 18:01:04 +00:00
rsc
dd4afdf4eb Avoid yet another X11 stack overflow. 2005-02-08 17:56:35 +00:00
rsc
46cfcf550f stupid gcc 2005-02-03 15:41:39 +00:00
rsc
3842363abc silence archive warning for .a files 2005-02-02 22:32:56 +00:00
rsc
c4553e9cd0 more nowsys 2005-02-02 22:27:17 +00:00
rsc
41e0f84ca6 break x11 for sure 2005-02-02 22:04:41 +00:00
rsc
98e19d6df6 do not readdir files - from zoltan jarai 2005-01-30 19:45:08 +00:00
rsc
6bc22c7d87 disable chording 2005-01-30 18:00:26 +00:00
rsc
f76e039c43 fix mkfile again 2005-01-30 17:09:40 +00:00
rsc
38c087aa6d add - 2005-01-30 16:49:46 +00:00
rsc
b1307713a2 add lex files 2005-01-30 16:49:13 +00:00
rsc
b8e710da0b why bother? 2005-01-30 16:48:14 +00:00
rsc
669a062b5a osprocid can be -1 2005-01-30 16:35:05 +00:00
rsc
2c0803972b silence warning 2005-01-30 16:34:48 +00:00
rsc
9d01e22178 add errors file 2005-01-30 16:34:12 +00:00
rsc
9fe5a62166 use correct graphics format 2005-01-30 16:28:21 +00:00
rsc
efe1241109 handle sysnames in labels 2005-01-30 16:27:45 +00:00
rsc
0b22e9bd85 handle non-zero mintag properly 2005-01-30 15:59:09 +00:00
rsc
65da859889 update usage 2005-01-29 17:03:53 +00:00
rsc
a2d6635774 add diff -a 2005-01-29 16:50:51 +00:00
rsc
33baa59ecc better offset handling 2005-01-28 05:41:12 +00:00
rsc
97e85ebf11 cope with unix ORCLOSE 2005-01-27 20:55:51 +00:00
rsc
5bae51dd93 fix rowdump bug 2005-01-27 20:52:51 +00:00
rsc
07494878dc remove searching print; check fids in use; handle addr correctly again 2005-01-27 20:36:04 +00:00
rsc
693892caf5 remove debugging print 2005-01-27 07:20:06 +00:00
rsc
17ab31aac6 add autoindent (-a) and chording.
clean up argument parsing.
2005-01-27 06:10:35 +00:00
rsc
4ac5f249ad add -c option 2005-01-26 07:10:02 +00:00
rsc
57d2613621 handle @ better in winsize 2005-01-26 04:02:26 +00:00
rsc
c6ff2c768d volatile 2005-01-24 00:49:08 +00:00
rsc
de39860a2a more searchpath-related changes 2005-01-23 23:19:47 +00:00
rsc
1fdb4a5450 rename scheduler to have a more distinctive name, so stack traces can end there 2005-01-23 22:57:53 +00:00
rsc
0753502edf avoid saying unsigned long, for unix port 2005-01-23 22:57:21 +00:00
rsc
6dd68c9ad7 add undocumented Abort builtin 2005-01-23 22:57:06 +00:00
rsc
a05c312b47 do not clobber register names 2005-01-23 22:56:50 +00:00
rsc
d925d643cb sort cores; print stack as command 2005-01-23 22:51:46 +00:00
rsc
4a727cddff less verbose 2005-01-23 22:51:01 +00:00
rsc
b030a6c390 change to use attach functions.
$a means switch thread in core dumps.
(maybe that should be $A now?).
2005-01-23 22:48:54 +00:00
rsc
4f2ac1b76b Working on better handling of multithreading in general
and core dumps in particular.  See notes:

new types: register is something that when dereferenced gives you
	the registers.  the Ureg is no longer mapped at 0.
	refconst is something that gives a constant when dereferenced.

new builtin register("AX") creates register values
new builtin refconst(0x123) creates refconst values

new builtin var("foo") is equivalent to the variable foo
	(it returns foo but can also be used as the lhs of an assignment).

new acid function getregs() returns a list of the current values of registers.
new acid function setregs() sets the current registers to those values.
	note that getregs and setregs operate on register locations, not the
		register values themselves.
new acid function resetregs() sets registers to register("AX"), etc.
new acid function clearregs() sets all registers to constant -1.
the default register settings are as in resetregs(), not small numbers.

new acid variables coretext, pids, systype, corefile, cmdline.

new behavior: local variable lookup, stk, etc., use the acid values of registers
	(*PC, *SP, and so on), so the thread support code can change the context
	completely.

unary + is applicable to more data types and prints more often.
2005-01-23 22:48:19 +00:00
rsc
4a62371140 Add searchpath(). 2005-01-23 22:33:59 +00:00
rsc
dd944ec72a Start working through proper handling of pthreads when
debugging Linux core dumps.  Pthreads for active processes
is still not supported, nor are other systems.
2005-01-23 22:33:04 +00:00
rsc
a0e8d02d09 Apparently SuSE 9.1's X distribution uses even bigger
buffers than the standard ones.  64kB appears to be enough
for a stack in that case, but let's just go nuts and make
the stacks enormous, so that it takes a few more doublings
of X's stack needs before we run into this problem again.

The VM system should take care of not actually using most
of the memory anyway.
2005-01-23 16:02:04 +00:00
rsc
311b2afde9 arg count 2005-01-21 20:23:06 +00:00
rsc
7ca705927e use better versions 2005-01-21 20:21:12 +00:00
rsc
f0264abf26 ignore host read eof while exiting 2005-01-20 22:59:50 +00:00
rsc
303cb7c6db todo 2005-01-20 17:53:14 +00:00
rsc
1b0c8a154a use correct yacc 2005-01-19 19:48:58 +00:00
rsc
10b819c6bd add errno 2005-01-19 19:12:48 +00:00
rsc
a331ac4c61 do not use shutdown on mac 2005-01-19 16:51:37 +00:00
rsc
9b3d503bac avoid c99 2005-01-19 16:50:07 +00:00
rsc
ec41125f3b avoid c99 extensions 2005-01-19 16:48:25 +00:00
rsc
6dfd0c502a try again 2005-01-19 16:44:22 +00:00
rsc
c384ebd2ce try again at x86-64 2005-01-19 16:42:34 +00:00
rsc
6987199d12 continue x86-64 2005-01-19 04:05:19 +00:00
rsc
6135dd6916 do not close -1 2005-01-19 03:53:20 +00:00
rsc
803292c631 proccreate race 2005-01-18 20:53:12 +00:00
rsc
1c8159def5 free hdr->cmd 2005-01-18 20:49:25 +00:00
rsc
1bdf170864 extract cmd in right place 2005-01-18 20:49:11 +00:00
rsc
58698c9c12 add 2005-01-18 20:45:12 +00:00
rsc
20173464d2 add core cmd 2005-01-18 20:26:26 +00:00
rsc
170d47ee1f print core cmd 2005-01-18 20:26:12 +00:00
rsc
5579b860db check for lack of registers 2005-01-18 20:17:28 +00:00
rsc
2e49032b85 bigger chunking 2005-01-18 20:17:17 +00:00
rsc
515b6e5bff add threadgetname 2005-01-18 20:17:12 +00:00
rsc
361e279c59 bug fixes 2005-01-18 20:15:18 +00:00
rsc
668b32b76c explain nptl stuff 2005-01-18 18:14:14 +00:00
rsc
9a4f7bced2 explain nptl stuff 2005-01-18 18:13:24 +00:00
rsc
3d867865ef better exit handling 2005-01-18 18:13:16 +00:00
rsc
daefa1a92f add fsseek 2005-01-18 18:11:39 +00:00
rsc
0ebee0de76 add x86 64 2005-01-18 05:57:56 +00:00
rsc
8650250482 64-bit nonsense 2005-01-18 05:57:35 +00:00
rsc
fc7c0c592a better comment 2005-01-18 05:43:41 +00:00
rsc
adbb83845c remove venti for now 2005-01-18 05:25:09 +00:00
rsc
4753f0691a more exits 2005-01-17 21:30:15 +00:00
rsc
7a2c88509b allow config to override kernel version 2005-01-17 21:30:05 +00:00
rsc
38c10d1abc do not call exits in threaded programs 2005-01-17 21:29:00 +00:00
rsc
87ccb5f9cf nil deref 2005-01-17 15:37:27 +00:00
rsc
91124c1bcf different naming convention 2005-01-16 22:57:50 +00:00
rsc
0b561695d6 useful warning comment 2005-01-16 21:31:21 +00:00
rsc
b50e9caf31 handle section (9p) 2005-01-16 21:30:59 +00:00
rsc
10f14b04f3 update return interface 2005-01-16 21:28:44 +00:00
rsc
32053cdfb3 use EARGF 2005-01-16 21:16:03 +00:00
rsc
a20a146803 make vacfs work; thanks to lucho 2005-01-16 21:15:30 +00:00
rsc
17465d1425 must use tcp explicitly 2005-01-16 21:13:23 +00:00
rsc
a0d2173ce4 too big fd 2005-01-16 17:37:11 +00:00
rsc
3300f9cd89 Long-standing bug in syminit, tickled by placing
initshell before syminit.  Don't understand why syminit
exists at all.
2005-01-15 20:54:41 +00:00
rsc
5ad21e8620 use threadexits instead of exits 2005-01-15 16:34:14 +00:00
rsc
0fdffa38a1 ridiculous precision 2005-01-14 20:53:44 +00:00
rsc
23aada8926 floating percent 2005-01-14 20:21:15 +00:00
rsc
732489da90 no /fd/0 2005-01-14 20:08:31 +00:00
rsc
162ef0743b update paths 2005-01-14 19:43:41 +00:00
rsc
c358f4aa5e license 2005-01-14 19:42:33 +00:00
rsc
cb98c6f854 stupid sun 2005-01-14 18:46:35 +00:00
rsc
7ea6c4fcbe try to fix sun 2005-01-14 18:38:20 +00:00
rsc
147e5e8702 stupid sun 2005-01-14 18:35:33 +00:00
rsc
f940ad0699 stupid programmer 2005-01-14 18:35:17 +00:00
rsc
6b32f96d74 smart sun 2005-01-14 18:33:54 +00:00
rsc
d7925b13e3 stupid sun 2005-01-14 18:32:36 +00:00
rsc
9268e33d65 stupid sun 2005-01-14 18:25:05 +00:00
rsc
0dc9950215 stupid sun 2005-01-14 18:21:12 +00:00
rsc
2b3b1e8984 oops sunos 2005-01-14 18:11:21 +00:00
rsc
399ab50aa4 signedness 2005-01-14 18:05:05 +00:00
rsc
2d3f13df35 not reached 2005-01-14 17:57:32 +00:00
rsc
4a8edd8d41 add procwakeupandunlock 2005-01-14 17:56:21 +00:00
rsc
5ba56e9139 silence warning 2005-01-14 17:55:23 +00:00
rsc
459eae0c70 fix unsharp 2005-01-14 17:40:02 +00:00
rsc
1ac1981659 where did this change go? 2005-01-14 17:31:01 +00:00
rsc
359c1e017e works on Linux 2.6 2005-01-14 04:24:09 +00:00
rsc
78e51a8c66 checkpoint 2005-01-14 03:45:44 +00:00
rsc
2634795b5f 64-bit fixes from lucho 2005-01-14 03:33:11 +00:00
rsc
133c240533 these mkfiles only confuse 2005-01-13 04:58:16 +00:00
rsc
3940506bcc forgotten files 2005-01-13 04:56:07 +00:00
rsc
357621cd82 more small changes 2005-01-13 04:50:11 +00:00
rsc
c8b6342d3c Many small edits. 2005-01-13 04:49:19 +00:00
rsc
a9eaaa03e0 maintain $path and $PATH simultaneously 2005-01-12 16:59:50 +00:00
rsc
7b0c2f155d no more 9commands 2005-01-11 21:28:31 +00:00
rsc
37cc72d323 paranoia 2005-01-11 21:28:00 +00:00
rsc
e9dbe11dbf don't rfork(RFNOTEG) because then you lose
the ability to read from the console.  damn.

also, handle case where child exits before
fork returns in parent.  have to record that
sigchld was seen and then run the handler later.
2005-01-11 21:06:55 +00:00
rsc
c70667367f get rid of the 9foo commands in favor of the 9 script 2005-01-11 20:57:41 +00:00
rsc
1c096fa40a better cleanup of tmp files 2005-01-11 20:57:00 +00:00
rsc
63abaa8216 fix cflags 2005-01-11 19:46:56 +00:00
rsc
ed7f32b9d7 unbugger postscript 2005-01-11 19:46:33 +00:00
rsc
4de03b544c add $plan9 variable 2005-01-11 19:46:06 +00:00
rsc
b8f742db85 os x changes 2005-01-11 17:43:53 +00:00
rsc
dcba4bf6bd fixes for openbsd 2005-01-11 17:14:07 +00:00
rsc
2e65dc0d02 changes from rob 2005-01-11 16:48:35 +00:00
rsc
515bd9ec76 do rfork(RFNOTEG) before exec 2005-01-10 00:28:14 +00:00
rsc
d8c78a8d56 add -r flag to reverse scrolling behavior.
from peter canning.
2005-01-10 00:21:13 +00:00
rsc
266f8e128c oops 2005-01-07 23:11:34 +00:00
rsc
3088012119 symopen 2005-01-07 23:11:11 +00:00
rsc
0a76e9690e symopen 2005-01-07 23:10:37 +00:00
rsc
6af7b77611 oops 2005-01-07 22:59:51 +00:00
rsc
50f7ec339a initial darwin 2005-01-07 21:47:30 +00:00
rsc
1aa9c533e0 allow lock passing 2005-01-07 20:52:07 +00:00
rsc
8b549a6214 symopen 2005-01-07 20:45:11 +00:00
rsc
1ab0f6f00b new program from presotto 2005-01-07 20:41:13 +00:00
rsc
931ba0b740 fix from axel 2005-01-07 20:07:33 +00:00
rsc
566f93c70d fix sunos 2005-01-07 19:11:44 +00:00
rsc
c761d0aa4f unbugger 2005-01-07 18:52:18 +00:00
rsc
39dbe6e72b small hidings 2005-01-07 18:45:17 +00:00
rsc
60efa1d2b9 seems to correct lack of focus when
coming back from being hidden.
not strictly correct in multithreaded
programs but let's see if anything breaks.
2005-01-07 18:44:21 +00:00
rsc
21621d7e20 gcc 2005-01-07 18:04:24 +00:00
rsc
a19ff5b204 debugging for sam, and an old fix forgotten 2005-01-07 18:03:36 +00:00
wkj
b80755cf2d Update CVS turd. 2005-01-07 17:41:02 +00:00
wkj
8a830ad090 First pass at supporting FreeBSD 5.x.
I do not yet have a way of testing this.
2005-01-07 17:38:08 +00:00
rsc
b4135f04f1 debugging 2005-01-07 17:26:07 +00:00
rsc
c619cc2cb9 more name conflicts 2005-01-07 17:21:09 +00:00
rsc
60ee914042 stupid FreeBSD name conflict 2005-01-07 17:20:02 +00:00
rsc
e45084490f ignore spurious sigchilds on sunos 2005-01-07 17:06:01 +00:00
rsc
005a85f3a2 success on the sun 2005-01-07 08:02:54 +00:00
rsc
c345061e8d sunos fixes 2005-01-07 07:47:37 +00:00
rsc
c71af67adc do not depend on flock 2005-01-07 07:19:35 +00:00
rsc
0dfd6525a6 no need to include sec.h 2005-01-07 06:41:21 +00:00
rsc
6b4c8671de add _flushmemscreen declaration 2005-01-07 04:05:32 +00:00
rsc
bdfd1b275b add declaration for elfdl386mapdl. 2005-01-07 04:03:29 +00:00
rsc
d0f5cbcf04 make regdesc global 2005-01-07 04:02:28 +00:00
rsc
5eb2d21999 use fmtvprint to avoid needing
to copy the arguments.
(stupid va_copy).
2005-01-06 23:45:51 +00:00
rsc
a0a331aad9 add _procwakeupandunlock
to help ease locking contention
on Linux 2.4.
2005-01-06 23:43:42 +00:00
rsc
815552b9ed go back to 1000 scheds 2005-01-06 23:13:56 +00:00
rsc
bb426e77f6 more precision on time 2005-01-06 23:11:14 +00:00
rsc
a620761c92 add some annoying lock loop prints -- let's see
if they ever fire.

also fix race in delaystack.  it was actually happening!
that just goes to show that while i can reason very well
about what can and cannot happen, i have no intuition
at all for how likely they are.
2005-01-06 23:08:55 +00:00
rsc
af89fc108d more debugging 2005-01-06 23:07:19 +00:00
rsc
f8104b3d3d exit on eof 2005-01-05 04:01:12 +00:00
rsc
33adad7dc7 update mkmk.sh 2005-01-04 22:44:52 +00:00
rsc
b253a743b2 scrolling 2005-01-04 22:43:50 +00:00
rsc
9aa1c92f74 add new | syntax.
syntax will change.
2005-01-04 22:41:27 +00:00
rsc
9e6fcbd790 forgot this 2005-01-04 22:31:35 +00:00
rsc
b2ad2ef138 in with the new 2005-01-04 22:30:59 +00:00
rsc
48bfee4e5b in with the new 2005-01-04 22:30:15 +00:00
rsc
c7acb53e03 add _threaddaemonize 2005-01-04 22:23:24 +00:00
rsc
15cd8255b5 more debugging 2005-01-04 22:22:18 +00:00
rsc
230ead2fbe better handling 2005-01-04 22:22:09 +00:00
rsc
c66e8adfa3 remove thread.c 2005-01-04 22:21:33 +00:00
rsc
b4e8c4b6d6 use 9pclient 2005-01-04 22:21:23 +00:00
rsc
817f7637e8 good thing no one uses this. 2005-01-04 22:21:01 +00:00
rsc
d165fa680c do not free r until done with it! 2005-01-04 22:20:52 +00:00
rsc
7e19561a6c hide some routines 2005-01-04 22:20:21 +00:00
rsc
1818ce0f28 minor fixes; hide some routines 2005-01-04 22:20:14 +00:00
rsc
ba3de38060 no need for disk or scsi 2005-01-04 22:19:58 +00:00
rsc
834469a3a4 fix error message 2005-01-04 22:19:46 +00:00
rsc
70723aae3c cache answer 2005-01-04 22:19:25 +00:00
rsc
a1d42887d6 add execl and rand 2005-01-04 22:19:18 +00:00
rsc
b94ad13d4b cache answer 2005-01-04 22:19:07 +00:00
rsc
66c10f02c3 avoid duplicated code.
guarantee that EINTR is "interrupted".
2005-01-04 22:18:54 +00:00
rsc
f84eebeb81 use fcntl F_SETLK instead of flock, for sun's. 2005-01-04 22:18:40 +00:00
rsc
b4223cd6f2 exception names 2005-01-04 22:18:13 +00:00
rsc
a6662a3672 unused variables 2005-01-04 22:17:58 +00:00
rsc
d40457248b use 9pclient 2005-01-04 22:17:47 +00:00
rsc
d2e350c019 parse -s option 2005-01-04 22:17:37 +00:00
rsc
f4b26b64bc do threading right 2005-01-04 22:17:10 +00:00
rsc
b10db40d3b exit correctly 2005-01-04 22:17:00 +00:00
rsc
28aaab76cf exit correctly. 2005-01-04 22:16:38 +00:00
rsc
8cc98332ad use 9pclient 2005-01-04 22:16:30 +00:00
rsc
f6127ed209 more tests 2005-01-04 22:15:53 +00:00
rsc
ed01060152 3d color cube 2005-01-04 22:13:32 +00:00
rsc
2ce287bb13 don't use (){} struct constructor 2005-01-04 22:10:43 +00:00
rsc
372e9667df Goodbye SHORTLIB 2005-01-04 22:10:29 +00:00
rsc
eb423b5cc0 use 9pclient instead of fs 2005-01-04 22:09:51 +00:00
rsc
3f54e7c8a4 good bye SHORTLIB 2005-01-04 22:09:40 +00:00
rsc
b0a81ab05d set SYSVERSION for 9c 2005-01-04 22:09:23 +00:00
rsc
1a0f021ef8 bugger fs in case it comes back 2005-01-04 22:09:09 +00:00
rsc
627bae9c76 clean up mkfile; fix winctlprint bug reported by peter canning 2005-01-04 21:39:23 +00:00
rsc
f755d50401 don't need to rename Fid 2005-01-04 21:29:20 +00:00
rsc
05636f8303 don't need to rename Fid anymore 2005-01-04 21:28:37 +00:00
rsc
93a6f8d76a back to threadnotify 2005-01-04 21:28:25 +00:00
rsc
452c09358f change to use new library. 2005-01-04 21:27:19 +00:00
rsc
30968c3fe9 typo flags => flag 2005-01-04 21:27:02 +00:00
rsc
100d566802 new prototype 2005-01-04 21:26:49 +00:00
rsc
f583e2b1d8 don't be dumb. 2005-01-04 21:26:30 +00:00
rsc
9e0b427274 small fixes; goodbye SHORTLIB 2005-01-04 21:26:13 +00:00
rsc
4bd8ec4c1c change comparison function to be consistent.
(now qsort on sunos should stop crashing.)
2005-01-04 21:25:48 +00:00
rsc
0daf9c0941 have lrand now 2005-01-04 21:25:26 +00:00
rsc
c39bd3556b allow - as input file 2005-01-04 21:25:17 +00:00
rsc
e2a1725dfc more debugging 2005-01-04 21:24:52 +00:00
rsc
020c80587a an old saddle 2005-01-04 21:24:19 +00:00
rsc
24c02865d8 placeholder; does not yet build 2005-01-04 21:23:50 +00:00
rsc
d1e9002f81 3D geometry 2005-01-04 21:23:01 +00:00
rsc
46f79934b7 lib9pclient is the new libfs 2005-01-04 21:22:40 +00:00
rsc
2600337aa7 remove libfs. now lib9pclient 2005-01-02 19:46:12 +00:00
rsc
acc021b8f8 add ? for unknown plumbs 2005-01-02 03:45:07 +00:00
rsc
4fe01a2b11 change _p9pow10 to fmtpow10 2004-12-31 05:37:15 +00:00
rsc
08166a4548 updates from andrey 2004-12-30 18:07:18 +00:00
wkj
8d8865f3d0 Rename lrand to p9lrand, too. 2004-12-29 02:44:01 +00:00
rsc
3015b83184 scroll virtual windows using mouse scroll 2004-12-29 02:42:20 +00:00
wkj
e25d5b710a Avoid conflicts with stdlib. 2004-12-29 01:30:19 +00:00
wkj
0debe1c681 Use FreeBSD-approved method for determining FreeBSD version. 2004-12-29 01:29:42 +00:00
wkj
742988d7d8 GC unused variables. 2004-12-29 01:29:14 +00:00
wkj
188fecbe15 Update mkmk.sh. 2004-12-29 01:28:48 +00:00
wkj
c90dd38f54 Formatting nits. 2004-12-29 01:27:57 +00:00
wkj
4645c5d7d3 #define pow10 to _p9pow10 as a stop-gap. 2004-12-29 01:27:23 +00:00
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
e5d47e6e15 compiler appeasement 2004-12-28 23:27:16 +00:00
rsc
48907e89cb declare elfdl386mapdl 2004-12-28 23:27:05 +00:00
rsc
09dd30c9a0 small changes for build 2004-12-28 23:26:53 +00:00
rsc
3ddda82110 add virtual desktop patch from andrey 2004-12-28 23:21:40 +00:00
rsc
df49b30343 be like plan 9 plumber 2004-12-28 23:20:54 +00:00
rsc
ddd8916a0e vac is not buggered anymore 2004-12-28 23:15:55 +00:00
rsc
1f17800709 thread is not buggered anymore 2004-12-28 23:15:31 +00:00
rsc
228bb71d16 add crop 2004-12-28 23:13:17 +00:00
rsc
1d2533d010 restore old plan 9 property that when the
last thread exits the main proc, the remaining
program ends up in the background and the
program appears to have exited.
2004-12-28 22:36:24 +00:00
rsc
07bda1263e avoid use of an extra proc 2004-12-28 22:29:43 +00:00
rsc
70997336be remove debugging print 2004-12-28 22:13:33 +00:00
rsc
21e626deb3 remove race between openfdthread and connoutthread msgput,
so that openfd'ed fids always get clunked properly.
2004-12-28 22:11:34 +00:00
rsc
b37396bd11 make these files look like plan 9's 2004-12-28 20:01:58 +00:00
rsc
4dd07e012c check against plan 9 2004-12-28 19:25:16 +00:00
rsc
727facb605 add bvprint 2004-12-28 19:18:33 +00:00
rsc
8b45564f0f fix Bprint yet again 2004-12-28 19:18:19 +00:00
rsc
1369edef9f move linux ureg code to portable file 2004-12-28 17:35:10 +00:00
rsc
e2f52703c2 fix bug in bprint. fmtprint => fmtvprint 2004-12-28 17:34:59 +00:00
rsc
f7b74c1725 FreeBSD tweaks 2004-12-28 17:34:05 +00:00
rsc
d54ead7fb9 more freebsd work 2004-12-28 04:20:39 +00:00
rsc
31cf0ab11f attempt at FreeBSD pre-5 support 2004-12-28 03:50:11 +00:00
rsc
93eb807ac2 remove debugging 2004-12-28 03:42:11 +00:00
rsc
f5ff4947dd add va_start/va_end. 2004-12-28 03:41:17 +00:00
rsc
65cd9e4d85 use fmtprint to avoid va_copy 2004-12-28 03:40:46 +00:00
rsc
ddb664da1b add threaddaemonize 2004-12-28 01:45:39 +00:00
rsc
22c7ebffda more little compile fixes 2004-12-28 01:45:05 +00:00
rsc
7ffc5208a8 use threaddaemonize 2004-12-28 01:37:18 +00:00
rsc
96d6b19dcd new test program 2004-12-28 01:36:53 +00:00
rsc
2c87dda8f8 add threaddaemonize(), more bug fixes 2004-12-28 01:35:38 +00:00
rsc
929fcfe0e3 add note that vac should work.
change %R to %r
2004-12-27 21:05:39 +00:00
rsc
6a130cb01b use getuser instead of getenv("USER").
add portdate file.
2004-12-27 19:40:50 +00:00
rsc
a812ae4b43 secstore from ehg 2004-12-27 19:36:51 +00:00
rsc
73bfbacb24 silence various warnings 2004-12-27 19:13:31 +00:00
rsc
b3efcdbf59 change to use new thread library 2004-12-27 19:13:15 +00:00
rsc
8cbd854a8a better exec handling 2004-12-27 19:11:33 +00:00
rsc
0341761074 add awaitfor and waitfor 2004-12-27 19:11:21 +00:00
rsc
955a2ca78d starting to work on Linux 2004-12-27 18:21:58 +00:00
rsc
e127e40bb1 shuffle to allow use of execchan in non-pthreads impls 2004-12-27 17:19:44 +00:00
rsc
e8a7b96999 more features 2004-12-27 17:01:23 +00:00
rsc
2189e55cde dumb porting bugs 2004-12-27 16:57:41 +00:00
rsc
9939daadf4 use new thread library 2004-12-27 16:56:16 +00:00
rsc
8cd0011323 figure out which files to put in the library 2004-12-27 16:53:01 +00:00
rsc
f1e8706de8 linux pre-2.6 implementation 2004-12-27 16:52:46 +00:00
rsc
4dbefdd41c start linux pre-2.6 port 2004-12-27 16:52:26 +00:00
rsc
fd46554030 good test programs 2004-12-27 05:21:41 +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
73722a8bbf confine pthreads to pthread.c 2004-12-27 03:49:03 +00:00
rsc
10b4555766 as wkj pointed out, notifyseton should not call notesetenable 2004-12-27 03:22:54 +00:00
rsc
17cdbb909b fix to handle new 2004-12-27 01:22:48 +00:00
rsc
dcfa5aba0d remove debugging 2004-12-27 01:22:33 +00:00
rsc
6d7fdb243c changes from plan 9 2004-12-27 01:16:26 +00:00
rsc
334cb1e91c change to use new thread library 2004-12-27 00:38:59 +00:00
rsc
0a839b8314 clone is a bad word on linux 2004-12-27 00:38:16 +00:00
rsc
3694b738b8 handle pty correctly on linux 2004-12-27 00:38:00 +00:00
rsc
2b9172c7d4 add readn to avoid need for plan9port libc 2004-12-27 00:36:40 +00:00
rsc
93f2ae0d92 change to use new thread library 2004-12-27 00:32:50 +00:00
rsc
e1dc7e4511 signal handling, add prototype for pthreadinit 2004-12-27 00:13:48 +00:00
rsc
43db87f1fc bug fix -- need to enqueue before sending the packet,
in case the response comes back and another thread
tries to give it to us, all before we are enqueued.
2004-12-27 00:13:33 +00:00
rsc
4bef0baf95 changes from plan 9 2004-12-27 00:13:04 +00:00
rsc
94235a8b4b change to use new thread library 2004-12-27 00:12:54 +00:00
rsc
9cb6f43045 bad name 2004-12-27 00:12:22 +00:00
rsc
186a31de6b add for porting 2004-12-27 00:12:12 +00:00
rsc
6850febee1 porting changes 2004-12-27 00:11:46 +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
52e73e955b add portdate 2004-12-26 23:59:30 +00:00
rsc
1b1434ebce changes from plan 9. some clean-up. 2004-12-26 23:59:10 +00:00
rsc
127d5444fb add portdate 2004-12-26 23:48:25 +00:00
rsc
be83c8415c add portdate 2004-12-26 23:45:12 +00:00
rsc
66209ac0fe changes from plan 9 2004-12-26 23:42:38 +00:00
rsc
bd8cb1a5b3 add portdate 2004-12-26 23:31:14 +00:00
rsc
6b322694f2 plan 9 changes 2004-12-26 23:26:46 +00:00
rsc
36a503c185 add portdate 2004-12-26 23:26:37 +00:00
rsc
b20f06ab9c use new thread library 2004-12-26 23:24:32 +00:00
rsc
d9f3e89e5e use volatile correctly 2004-12-26 23:24:14 +00:00
rsc
beff571cfd add portdate 2004-12-26 23:23:57 +00:00
rsc
a743b8faa2 add portdate 2004-12-26 23:19:25 +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
5c8a042171 updates from plan 9 2004-12-26 21:46:26 +00:00
rsc
60535a5ff6 make work with new thread library 2004-12-26 21:37:31 +00:00
rsc
f99790979b update to use new thread library 2004-12-26 02:10:47 +00:00
rsc
6a5c5d4870 remove empty qlock.c 2004-12-26 02:08:53 +00:00
rsc
1cc215aaf9 better unwinding for 386.
command-line extraction from core files on linux and freebsd.

move linux ureg into ureg386.h (used in many places).
2004-12-25 22:03:28 +00:00
rsc
619085f0b4 more new libthread 2004-12-25 21:57:50 +00:00
rsc
1544f90960 New thread library 2004-12-25 21:56:33 +00:00
rsc
7788fd5409 fix from forsyth via rob 2004-12-25 01:54:02 +00:00
rsc
5e2e4f8239 allow last column to be deleted 2004-11-15 16:19:03 +00:00
rsc
24f4e66b12 still more files 2004-11-08 16:04:01 +00:00
rsc
cf4f3eafc6 extra files 2004-11-08 16:03:42 +00:00
rsc
1956455367 more thread work 2004-11-08 16:03:20 +00:00
rsc
77dcf88474 stupid port bug. cannot use %ld to print a long as a *CHARACTER* 2004-11-03 14:27:30 +00:00
rsc
0d0bad2ee4 bug fix in Get from rob 2004-11-01 17:26:59 +00:00
rsc
9acaad4570 clean up signal handling 2004-10-23 02:59:33 +00:00
rsc
f6c9a57869 figure out which thread implementation to use 2004-10-22 18:46:18 +00:00
rsc
5093c3fa40 try to implement the daemonize hack. 2004-10-22 18:45:08 +00:00
rsc
048610b7ea handle interrupt right 2004-10-22 18:11:38 +00:00
rsc
fd40164450 gas workaround 2004-10-22 18:11:04 +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
493f3d0fbf make sure a write of 0 bytes does a 0-length write. 2004-10-22 17:14:17 +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
012a8a02d5 change md argument to number etc. (which acted only as a flag)
to an actual flag.

buffer underrun check in number

add xdata file for exactly the addressed region

save addr across opens
2004-10-22 17:11:30 +00:00
rsc
e63027eb68 formatting 2004-10-22 17:08:13 +00:00
rsc
3e6107910e exit 9p on interrupt signal. should do better job here. 2004-10-22 17:05:24 +00:00
rsc
d371199605 run 9c before 9a because gas doesn't exit with non-zero status when the file doesn't exist 2004-10-22 17:04:31 +00:00
rsc
ad00bb91b9 use threadexitsall 2004-10-17 05:33:14 +00:00
rsc
f002cc17a6 print out signalled exits 2004-10-17 05:29:53 +00:00
rsc
39cff6e750 add ulimit and umask as builtins 2004-10-17 05:19:53 +00:00
rsc
c3e73c01e3 remove socket at exit 2004-10-17 04:18:55 +00:00
rsc
42c3794c5c fix interrupt handling, add clumsy way to get at text buffer contents 2004-10-17 04:06:56 +00:00
rsc
63853aa069 bug fix in Zerox arrow handling from rob 2004-10-17 00:12:14 +00:00
rsc
0ffd63f553 embarrassing bug in keyboard data 2004-10-16 23:29:16 +00:00
rsc
8537259f82 Fix bug in rune half of __fmtcpy reported by rob. 2004-09-28 16:23:32 +00:00
rsc
53998c99d6 autoindent fixes from rob 2004-09-28 16:10:49 +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
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
709efa017c Add stringn builtin. 2004-09-23 03:04:33 +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
3d5e34e146 little fixes 2004-09-21 01:06:20 +00:00
rsc
e5c26b01f7 various forgotten files 2004-09-20 15:08:57 +00:00
rsc
dcc9531c5a bug fix 2004-09-20 15:07:44 +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
18b0811745 fix various little bugs 2004-08-17 15:32:40 +00:00
rsc
e3e30cff40 Fix huge bug in lex, introduced by porting.
Surprising that anything worked.
2004-08-17 15:30:36 +00:00
rsc
d16cfe2431 handle grap.defines properly 2004-08-16 17:20:41 +00:00
rsc
bdf49b7ee0 better handling of top/active 2004-08-13 14:23:41 +00:00
rsc
2c1b986edf better mask handling, don't raise windows quite so eagerly. 2004-08-13 13:57:58 +00:00