f33673061f
(os_fstat): Likewise. Validate fd argument. (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL, just compute target stat struct length. * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>. (ENOSYS,ENAMETOOLONG): Provide definitions if missing. (get_string): Return host errno values so they can be properly translated later. (cb_syscall): Likewise. (cb_syscall, cases open,unlink): Use get_path instead of get_string. (cb_syscall, case read): Use read_stdin for file descriptor 0. (cb_syscall, case write): Use write_stderr for file descriptor 2. (cb_syscall): Add cases for lseek, unlink, stat, fstat, time. (get_path): New function. |
||
---|---|---|
.. | ||
arm | ||
common | ||
d10v | ||
erc32 | ||
h8300 | ||
igen | ||
m32r | ||
mips | ||
mn10300 | ||
ppc | ||
sh | ||
testsuite | ||
tic80 | ||
v850 | ||
w65 | ||
.Sanitize | ||
ChangeLog | ||
configure | ||
configure.in | ||
Makefile.in | ||
README-HACKING |