diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-05-06 21:02:55 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-05-06 21:02:55 +0000 |
commit | 3b290486cd4cd601b20e04340e593c9ed9717e5f (patch) | |
tree | aa42d3aca15d82df7023cd2455bc2dbc8c34417e /include/pub_tool_libcfile.h | |
parent | 9943003f546be63b208d02ab57fd31b1c00b8aba (diff) | |
download | valgrind-3b290486cd4cd601b20e04340e593c9ed9717e5f.tar.gz |
Implement a GDB server in Valgrind. See #214909.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11727 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_libcfile.h')
-rw-r--r-- | include/pub_tool_libcfile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pub_tool_libcfile.h b/include/pub_tool_libcfile.h index 8f08cd2cf..4b63a5374 100644 --- a/include/pub_tool_libcfile.h +++ b/include/pub_tool_libcfile.h @@ -68,7 +68,11 @@ struct vg_stat { ULong ctime_nsec; }; +extern SysRes VG_(mknod) ( const Char* pathname, Int mode, UWord dev ); extern SysRes VG_(open) ( const Char* pathname, Int flags, Int mode ); +/* fd_open words like the open(2) system call: + returns fd if success, -1 otherwise */ +extern Int VG_(fd_open) (const Char* pathname, Int flags, Int mode); extern void VG_(close) ( Int fd ); extern Int VG_(read) ( Int fd, void* buf, Int count); extern Int VG_(write) ( Int fd, const void* buf, Int count); @@ -82,6 +86,8 @@ extern SysRes VG_(dup2) ( Int oldfd, Int newfd ); extern Int VG_(rename) ( const Char* old_name, const Char* new_name ); extern Int VG_(unlink) ( const Char* file_name ); +extern Int VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout); + extern Int VG_(readlink)( const Char* path, Char* buf, UInt bufsize ); extern Int VG_(getdents)( Int fd, struct vki_dirent *dirp, UInt count ); |