2020-10-14 11:45:08 +02:00
|
|
|
#ifdef __SUPPORT_VHEX_KERNEL
|
2020-11-03 15:15:01 +01:00
|
|
|
#include <fxlibc/asm/unistd_32.h>
|
2020-10-14 11:45:08 +02:00
|
|
|
.text
|
|
|
|
.global _open
|
|
|
|
.type _open, @function
|
|
|
|
|
|
|
|
|
|
|
|
.align 2
|
|
|
|
/*
|
|
|
|
** extern int open(const char *pathname, int flags, ...);
|
|
|
|
** Open FILE and return a new file descriptor for it, or -1 on error.
|
|
|
|
** OFLAG determines the type of access used. If O_CREAT or O_TMPFILE is set
|
|
|
|
** in OFLAG, the third argument is taken as a `mode_t', the mode of the
|
|
|
|
** created file.
|
|
|
|
*/
|
|
|
|
_open:
|
|
|
|
trapa #__NR_open
|
|
|
|
rts
|
|
|
|
nop
|
|
|
|
.end
|
|
|
|
#endif
|