2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>

* callback.c (cb_is_stdin): Add.
	* syscall.c (cb_syscall): Test for stdin, not just fd 0.

2007-10-11  Jesper Nilsson  <jesper.nilsson@axis.com>

	* callback.h (cb_is_stdin): Add prototype.
This commit is contained in:
Daniel Jacobowitz
2007-10-11 18:40:29 +00:00
parent f5bc1778c3
commit b981d70963
5 changed files with 20 additions and 1 deletions

View File

@ -315,6 +315,9 @@ int cb_host_to_target_stat PARAMS ((host_callback *, const struct stat *, PTR));
/* Translate a value to target endian. */
void cb_store_target_endian PARAMS ((host_callback *, char *, int, long));
/* Test if the fd is stdin. */
int cb_is_stdin PARAMS ((host_callback *, int));
/* Perform a system call. */
CB_RC cb_syscall PARAMS ((host_callback *, CB_SYSCALL *));