54 #include <sys/times.h> 63 register
char * stack_ptr asm("sp");
65 char *__env[1] = { 0 };
91 int _read (
int file,
char *ptr,
int len)
95 for (DataIdx = 0; DataIdx < len; DataIdx++)
107 for (DataIdx = 0; DataIdx < len; DataIdx++)
116 extern char end
asm(
"end");
117 static char *heap_end;
123 prev_heap_end = heap_end;
124 if (heap_end + incr > stack_ptr)
134 return (caddr_t) prev_heap_end;
145 st->st_mode = S_IFCHR;
159 int _open(
char *path,
int flags, ...)
182 int _stat(
char *file,
struct stat *st)
184 st->st_mode = S_IFCHR;
200 int _execve(
char *name,
char **argv,
char **env)
int _read(int file, char *ptr, int len)
int _open(char *path, int flags,...)
__attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
Reverse byte order (16 bit)
int __io_putchar(int ch) __attribute__((weak))
int _link(char *old, char *new)
void initialise_monitor_handles()
int _stat(char *file, struct stat *st)
int _times(struct tms *buf)
int _kill(int pid, int sig)
int _fstat(int file, struct stat *st)
int _execve(char *name, char **argv, char **env)
int _lseek(int file, int ptr, int dir)
int _write(int file, char *ptr, int len)