2021-05-11 09:22:34 +02:00
|
|
|
#include <bits/asm/unistd_32.h>
|
2021-05-09 22:11:49 +02:00
|
|
|
#include <bits/trapa.h>
|
2020-10-14 11:45:08 +02:00
|
|
|
.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)
|
2020-10-14 11:45:08 +02:00
|
|
|
rts
|
|
|
|
nop
|
|
|
|
.end
|