Commit Graph

1273 Commits

Author SHA1 Message Date
Cheer Xiao
a6b867455f req.c: adopt a golang-like naming style 2013-06-18 01:24:09 +08:00
Cheer Xiao
b9994c8042 Make request JSON reflect tagged union. 2013-06-18 01:05:27 +08:00
Cheer Xiao
5891793006 Swap two return values of recv_req. 2013-06-18 00:54:49 +08:00
Cheer Xiao
7a962331ab req.c: parse_* is now called load_*. 2013-06-18 00:48:50 +08:00
Cheer Xiao
27fd6c9917 The global variable req is now called g_reqfile. 2013-06-18 00:46:00 +08:00
Cheer Xiao
c5af89c93f A request is now a req_t, which is a tagged union.
Currently the only implemented variant is req_command_t; req_exit_t will
follow soon.
2013-06-18 00:45:50 +08:00
Cheer Xiao
4d1f211ce2 abstract req module to receive a command_t directly (still a bit messy) 2013-06-17 18:44:39 +08:00
Cheer Xiao
9bded94875 Move req FILE to req module; set its FD_CLOEXEC 2013-06-17 13:27:42 +08:00
Cheer Xiao
c2c234852e Rearrange C modules: request-related goes to req.c 2013-06-17 12:27:27 +08:00
Cheer Xiao
1b08d75935 Rearrange source tree. The golang part is likely to be unconforming. 2013-06-17 12:19:30 +08:00
Cheer Xiao
1508de72a5 pick_req -> recv_req 2013-06-16 17:25:48 +08:00
Cheer Xiao
1a6f7c5985 das.c: make req and res global variables 2013-06-16 17:25:08 +08:00
Cheer Xiao
6ef2ab157f add a README 2013-06-16 16:45:22 +08:00
Cheer Xiao
a8135888df dasc.go: very rough (but working!) REPL 2013-06-16 16:37:17 +08:00
Cheer Xiao
99e7175ce3 Tupfile: add rule for dasc.go -> dasc 2013-06-16 16:09:29 +08:00
Cheer Xiao
ba8aabfd04 dasc.go: a stub dasc implementation 2013-06-16 16:08:08 +08:00
Cheer Xiao
0480b4b7b2 das.c: work should only wait for spawned external 2013-06-16 13:33:16 +08:00
Cheer Xiao
8fab2ac120 das.c: send spawning status to response pipe 2013-06-16 12:58:50 +08:00
Cheer Xiao
fc4ce83862 das.c: close request and response pipes after forking to an external 2013-06-16 12:45:34 +08:00
Cheer Xiao
06793526af das.c: exit when request pipe gets closed 2013-06-16 12:43:54 +08:00
Cheer Xiao
f2cc69b5bb parse.c: use json_unpack 2013-06-15 22:26:53 +08:00
Cheer Xiao
53766adfef switch to pipe for ipc 2013-06-15 21:57:28 +08:00
Cheer Xiao
d58189d844 das, an experimental Unix shell 2013-06-14 17:22:55 +08:00