* 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.
This commit is contained in:
Kevin Buettner
2011-03-21 22:06:55 +00:00
parent d0f0baa272
commit 165b70ea60
5 changed files with 446 additions and 440 deletions

View File

@@ -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