Richard Jones
24a6cf4533
Implement 'debug ls' and 'debug ll' commands.
...
These commands can be used to list files in the appliance.
2009-08-18 08:56:18 +01:00
Jim Meyering
adf20c0c4d
adjust const "**" pointers to avoid warnings
...
Also, ...
* src/generator.ml: Add DeviceList type, and propagate that change
out to all calling/interface code.
2009-08-17 11:40:24 +02:00
Jim Meyering
84fc760439
generator.ml: use new "Pathname" designation
...
Nearly every file-related function in daemons/*.c is affected:
Remove this pair of statements from each affected do_* function:
- NEED_ROOT (return -1);
- ABS_PATH (dir, return -1);
and change the type of the corresponding parameter to "const char *".
* src/generator.ml: Emit NEED_ROOT just once, even when there are two or
more Pathname args.
2009-08-13 14:45:34 +02:00
Jim Meyering
92ac2400a3
build: daemon/do_debug: parameters aren't always unused
...
* daemon/debug.c (MAYBE_UNUSED): Define.
(do_debug): Mark parameters as unused only when they really
are unused. Spotted by Richard Jones.
SCALAR(0xdd8370)
prefer sizeof *VAR sizeof TYPE (no semantic change)
2009-08-10 12:49:22 +02:00
Jim Meyering
5b3452e999
build: avoid warnings in daemon/debug.c
...
* daemon/debug.c (do_debug): Mark parameters as unused.
2009-08-10 11:53:33 +02:00
Jim Meyering
2f1a50d816
Convert all TABs-as-indentation to spaces.
...
Do it by running this command:
[exempted files are matched via .x-sc_TAB_in_indentation]
git ls-files \
| pcregrep -vf .x-sc_TAB_in_indentation \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
2009-08-03 17:17:57 +02:00
Jim Meyering
a7b73d4a1e
remove trailing blanks
2009-07-03 17:04:21 +02:00
Richard Jones
baa5a40994
The 'debug sh' command now uses a real shell.
2009-06-22 12:23:56 +01:00
Richard Jones
56bef498f4
In the daemon, change all const char * parameters to char *.
2009-06-10 14:16:47 +01:00
Richard Jones
5f76f421d0
Add 'debug env' command to print environment.
2009-05-22 10:52:28 +01:00
Richard Jones
15e0fd573a
Generated code to support last 3 commits.
2009-05-08 15:20:36 +01:00
Richard W.M. Jones
8be6c7056d
catsprintf leaks, use open_memstream instead.
2009-04-23 19:33:00 +01:00
Richard W.M. Jones
012a2ec1ac
Remove the 'debug mem' command, it's never going to work.
2009-04-23 19:23:52 +01:00
Richard W.M. Jones
21dbad6b95
Implement 'debug sh' and 'debug fds' commands.
2009-04-23 18:52:34 +01:00
Richard W.M. Jones
713283f4a6
Add outline of 'debug' command.
2009-04-23 14:39:18 +01:00