forked from Imagelibrary/binutils-gdb
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user