fxlibc/src/posix/unistd/target/casiowin-fx/close.S

21 lines
336 B
ArmAsm
Raw Normal View History

#ifdef __SUPPORT_CASIO_ABI_FX9860G
2021-05-09 17:34:00 +02:00
#include <bits/unistd_32.h>
#include <bits/__trapa.h>
.text
.global _close
.type _close, @function
.align 2
/*
** int close(int fd)
** close() closes a file descriptor, so that it no longer refers to any file
** and may be reused.
*/
_close:
2020-10-14 12:24:57 +02:00
casio_trapa(__NR_Bfile_CloseFile)
rts
nop
.end
#endif