diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2003-10-15 12:28:50 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2003-10-15 12:28:50 +0000 |
commit | 8cf2a4dcb207bf62dccbec249ff892dcc8cc166e (patch) | |
tree | 5beecbaf3da7b7727e2e55786a4b769762cdbc9a /include/gdb/callback.h | |
parent | ce34c904cc09680689337156dd23114e27318103 (diff) | |
download | cygnal-8cf2a4dcb207bf62dccbec249ff892dcc8cc166e.tar.gz cygnal-8cf2a4dcb207bf62dccbec249ff892dcc8cc166e.tar.bz2 cygnal-8cf2a4dcb207bf62dccbec249ff892dcc8cc166e.zip |
nclude/gdb:
* callback.h (struct host_callback_struct): New members ftruncate
and truncate.
gdb:
sim/common:
* callback.c (os_ftruncate, os_truncate): New functions.
(default_callback): Initialize ftruncate and truncate members.
sim/sh:
* syscall.h (SYS_truncate, SYS_ftruncate): Define.
* interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.
Diffstat (limited to 'include/gdb/callback.h')
-rw-r--r-- | include/gdb/callback.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gdb/callback.h b/include/gdb/callback.h index 30752842e..3fa419143 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -93,6 +93,8 @@ struct host_callback_struct void (*flush_stderr) PARAMS ((host_callback *)); int (*stat) PARAMS ((host_callback *, const char *, struct stat *)); int (*fstat) PARAMS ((host_callback *, int, struct stat *)); + int (*ftruncate) PARAMS ((host_callback *, int, long)); + int (*truncate) PARAMS ((host_callback *, const char *, long)); /* When present, call to the client to give it the oportunity to poll any io devices for a request to quit (indicated by a nonzero |