diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-09-08 16:44:24 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-09-08 16:44:24 +0100 |
commit | fc850f5680f41fd09c7a6d6fee872f889be43043 (patch) | |
tree | 12ced78d53498a6261efe59ac48dfd551be89127 /tools/libxl/libxl_exec.c | |
parent | 0953a577a26adc935177c21115296a3637b3e0e4 (diff) | |
download | xen-fc850f5680f41fd09c7a6d6fee872f889be43043.tar.gz xen-fc850f5680f41fd09c7a6d6fee872f889be43043.tar.bz2 xen-fc850f5680f41fd09c7a6d6fee872f889be43043.zip |
libxl: Ensure all _hidden functions use libxl__ prefix (autogenerated patch)
This patch covers all those which could be trivially converted automatically.
sed -n -e 's/_hidden.*[ \*]libxl_\([^_][^()]*\)(.*/\1/pg' tools/libxl/*.h | \
while read i ; do \
sed -i -e "s/libxl_$i/libxl__$i/g" tools/libxl/*.[ch]; \
done
sed -n -e 's/_hidden.*_libxl_\([^_][^()]*\)(.*/\1/pg' tools/libxl/*.h | \
while read i ; do \
sed -i -e "s/_libxl_$i/libxl__$i/g" tools/libxl/*.[ch]; \
done
Check that diffstat includes libxl but not xl.
Fixup tools/libxl/xl_cmdimpl.c which used libxl_device_del instead of
libxl_device_disk_del in a printf.
(Patch runes re-run by Ian Jackson to refresh against tip libxl.)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_exec.c')
-rw-r--r-- | tools/libxl/libxl_exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index 5210c4f98a..a1f0bf2e2a 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -35,7 +35,7 @@ static int call_waitpid(pid_t (*waitpid_cb)(pid_t, int *, int), pid_t pid, int * return (waitpid_cb) ? waitpid_cb(pid, status, options) : waitpid(pid, status, options); } -void libxl_exec(int stdinfd, int stdoutfd, int stderrfd, char *arg0, char **args) +void libxl__exec(int stdinfd, int stdoutfd, int stderrfd, char *arg0, char **args) /* call this in the child */ { int i; @@ -88,7 +88,7 @@ void libxl_report_child_exitstatus(libxl_ctx *ctx, } } -int libxl_spawn_spawn(libxl_ctx *ctx, +int libxl__spawn_spawn(libxl_ctx *ctx, libxl_device_model_starting *starting, const char *what, void (*intermediate_hook)(void *for_spawn, @@ -151,7 +151,7 @@ static void report_spawn_intermediate_status(libxl_ctx *ctx, } } -int libxl_spawn_detach(libxl_ctx *ctx, +int libxl__spawn_detach(libxl_ctx *ctx, libxl_spawn_starting *for_spawn) { int r, status; @@ -184,7 +184,7 @@ int libxl_spawn_detach(libxl_ctx *ctx, return rc; } -int libxl_spawn_check(libxl_ctx *ctx, void *for_spawn_void) +int libxl__spawn_check(libxl_ctx *ctx, void *for_spawn_void) { libxl_spawn_starting *for_spawn = for_spawn_void; pid_t got; |