diff options
author | Kevin Buettner <kevinb@redhat.com> | 2011-03-21 22:11:14 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2011-03-21 22:11:14 +0000 |
commit | 3b60b701b1e3ee239cacb1aafa71bb721c812ccd (patch) | |
tree | 546a7eb203a6cc8a40e8b8aeabdc8c93d7179ddd /newlib/libc/sys/sysnecv850/fstat.c | |
parent | 5e5b7f35ace686ee5aa5ef8138412433a696fef7 (diff) | |
download | cygnal-3b60b701b1e3ee239cacb1aafa71bb721c812ccd.tar.gz cygnal-3b60b701b1e3ee239cacb1aafa71bb721c812ccd.tar.bz2 cygnal-3b60b701b1e3ee239cacb1aafa71bb721c812ccd.zip |
* libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.
* libc/sys/sysnecv850/rename.c: New file.
* libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Add rename.c
* libc/sys/sysnecv850/Makefile.in: Regenerate.
* libc/sys/sysnecv850/fstat.c (_fstat): Invoke trap for SYS_fstat.
* libc/sys/sysnecv850/unlink.c (_unlink): Invoke trap for SYS_unlink.
Diffstat (limited to 'newlib/libc/sys/sysnecv850/fstat.c')
-rw-r--r-- | newlib/libc/sys/sysnecv850/fstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/sys/sysnecv850/fstat.c b/newlib/libc/sys/sysnecv850/fstat.c index e8783b376..b7eed0afe 100644 --- a/newlib/libc/sys/sysnecv850/fstat.c +++ b/newlib/libc/sys/sysnecv850/fstat.c @@ -13,6 +13,5 @@ int _fstat (int file, struct stat *st) { - st->st_mode = S_IFCHR; - return 0; + return TRAP0 (SYS_fstat, file, st, 0); } |