847e89f8e1
2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> * arm/syscalls.c (_stat): Use _close * arm/syscalls.c (struct poslog): Rename to... (struct fdent): ... this. (FILE_HANDLE_OFFSET): Remove. (findslot): Return a struct fdent* if fd is valid, otherwise return NULL. (newslot): New function. (remap_handle): Remove. (initialise_monitor_handles): Use stdout as fallback for stderr. (wrap): Rename to... (checkerror): ... this. (_swiread): Use checkerror() for the return of SWI calls. Correct the use of r0. (_read): Use findslot(). Return EBADF on bad handle. (_swilseek): Call findslot(). Check for valid whence. Check for negative offset when using SEEK_CUR, and check for overflow. Use checkerror(). Check *_Flen calls for errors. (_swiwrite): Correct the use of r0. (_write): Call findslot(). (_swiopen): Call findslot(). Check for valid flags. Use checkerror(). Call newslot(). Handle O_TRUNC, and O_WRONLY. Return index into openfiles[] for fd. (_swiclose): Correct the use of r0. (_close): Handle stderr == stdout case. Only reclaim handle if _swiclose succeeded. (_getpid): Use __attribute__((unused)). (_sbrk): Fix formatting. (_swistat): New function. (_stat): Call _swistat(). (_fstat): Call _swistat(). (_unlink): Correct the use of r0. (isatty): Call finslot(). Correct the use of r0. (_system): Call checkerror(). Correct the use of r0. (_rename): Correct the use of r0. |
||
---|---|---|
.. | ||
arm | ||
bfin | ||
config | ||
cris | ||
crx | ||
d30v | ||
doc | ||
fr30 | ||
frv | ||
hp74x | ||
i386 | ||
i960 | ||
iq2000 | ||
libnosys | ||
m32c | ||
m32r | ||
m68hc11 | ||
m68k | ||
mcore | ||
mep | ||
mips | ||
mn10200 | ||
mn10300 | ||
mt | ||
pa | ||
rs6000 | ||
sh | ||
sparc | ||
spu | ||
testsuite | ||
v850/sys | ||
wince | ||
xstormy16 | ||
ChangeLog | ||
Makefile.in | ||
README | ||
acinclude.m4 | ||
aclocal.m4 | ||
close.c | ||
configure | ||
configure.in | ||
debug.c | ||
debug.h | ||
fstat.c | ||
getpid.c | ||
glue.h | ||
isatty.c | ||
kill.c | ||
lseek.c | ||
open.c | ||
print.c | ||
putnum.c | ||
read.c | ||
sbrk.c | ||
stat.c | ||
syscall.h | ||
unlink.c | ||
write.c |
README
sparc - Fujitsu Sparclite board. Works on the ex930, ex931, ex933 hp74x - Hewlett Packard HP742 board. Also some support for the hp743. m68hc11 - Motorola 68HC11 or 68HC12 support. m68k - Motorola MVME135 and IDP board. For CPU32 systems. mep - Toshiba Media Processor. pa - WinBond and Oki boards with a PA. mips - R3000 support. Array Tech LSI33k based RAID disk controller.