aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-io.h
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2011-03-21 22:06:55 +0000
committerKevin Buettner <kevinb@redhat.com>2011-03-21 22:06:55 +0000
commit165b70ea60b358163b47407fddcdddca389c87b1 (patch)
tree7313047877c91ace9ac2526466a9de1a458f830d /sim/common/sim-io.h
parentd0f0baa272481979b42d91313ef710e929766a4d (diff)
downloadgdb-165b70ea60b358163b47407fddcdddca389c87b1.zip
gdb-165b70ea60b358163b47407fddcdddca389c87b1.tar.gz
gdb-165b70ea60b358163b47407fddcdddca389c87b1.tar.bz2
* gennltvals.sh: Search sys/_default_fcntl.h, in addition to
fcntl.h and sys/fcntl.h, for constants. * nltvals.def: Regenerate. * sim-io.c (sim_io_stat, sim_io_fstat): New functions. * sim-io.h (sys/types.h, sys/stat.h): Include. (sim_io_stat, sim_io_fstat): Declare.
Diffstat (limited to 'sim/common/sim-io.h')
-rw-r--r--sim/common/sim-io.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/common/sim-io.h b/sim/common/sim-io.h
index b8248c6..610a80f 100644
--- a/sim/common/sim-io.h
+++ b/sim/common/sim-io.h
@@ -84,4 +84,10 @@ void sim_io_poll_quit (SIM_DESC sd);
/* Returns -1 and sets (host) EAGAIN if not ready. */
int sim_io_poll_read (SIM_DESC sd, int, char *, int);
+#include <sys/types.h>
+#include <sys/stat.h>
+
+int sim_io_stat (SIM_DESC sd, const char *path, struct stat *buf);
+
+int sim_io_fstat (SIM_DESC sd, int fd, struct stat *buf);
#endif