From 165b70ea60b358163b47407fddcdddca389c87b1 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Mon, 21 Mar 2011 22:06:55 +0000 Subject: * 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. --- sim/common/sim-io.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sim/common/sim-io.h') 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 +#include + +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 -- cgit v1.1