diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2008-10-13 04:19:15 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2008-10-13 04:19:15 +0000 |
commit | e9ba34af88cd1b397957018e3e122869c76c1652 (patch) | |
tree | ebc1bfa5213e6ed7cf4b3364d7f624a82e276d83 /include/pub_tool_libcproc.h | |
parent | fad9837bc7439202a0f1db8d640f0b5990f6ae19 (diff) | |
download | valgrind-e9ba34af88cd1b397957018e3e122869c76c1652.tar.gz |
- Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
tools.
- Factor out 'execv' from 'system' and expose it to tools.
Partly based on a patch from Robert O'Callahan.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8669 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_libcproc.h')
-rw-r--r-- | include/pub_tool_libcproc.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/pub_tool_libcproc.h b/include/pub_tool_libcproc.h index ddf91b4e3..f0f7cfca7 100644 --- a/include/pub_tool_libcproc.h +++ b/include/pub_tool_libcproc.h @@ -50,8 +50,10 @@ extern const Char *VG_(libdir); Important syscalls ------------------------------------------------------------------ */ -extern Int VG_(waitpid)( Int pid, Int *status, Int options ); -extern Int VG_(system) ( Char* cmd ); +extern Int VG_(waitpid)( Int pid, Int *status, Int options ); +extern Int VG_(system) ( Char* cmd ); +extern Int VG_(fork) ( void); +extern void VG_(execv) ( Char* filename, Char** argv ); /* --------------------------------------------------------------------- Resource limits @@ -80,6 +82,14 @@ extern Int VG_(getegid) ( void ); // steps). extern UInt VG_(read_millisecond_timer) ( void ); +/* --------------------------------------------------------------------- + atfork + ------------------------------------------------------------------ */ + +typedef void (*vg_atfork_t)(ThreadId); +extern void VG_(atfork)(vg_atfork_t pre, vg_atfork_t parent, vg_atfork_t child); + + #endif // __PUB_TOOL_LIBCPROC_H /*--------------------------------------------------------------------*/ |