Path: blob/master/arch/xtensa/platforms/iss/include/platform/simcall.h
15163 views
/*1* include/asm-xtensa/platform-iss/simcall.h2*3* This file is subject to the terms and conditions of the GNU General Public4* License. See the file "COPYING" in the main directory of this archive5* for more details.6*7* Copyright (C) 2001 Tensilica Inc.8*/910#ifndef _XTENSA_PLATFORM_ISS_SIMCALL_H11#define _XTENSA_PLATFORM_ISS_SIMCALL_H121314/*15* System call like services offered by the simulator host.16*/1718#define SYS_nop 0 /* unused */19#define SYS_exit 1 /*x*/20#define SYS_fork 221#define SYS_read 3 /*x*/22#define SYS_write 4 /*x*/23#define SYS_open 5 /*x*/24#define SYS_close 6 /*x*/25#define SYS_rename 7 /*x 38 - waitpid */26#define SYS_creat 8 /*x*/27#define SYS_link 9 /*x (not implemented on WIN32) */28#define SYS_unlink 10 /*x*/29#define SYS_execv 11 /* n/a - execve */30#define SYS_execve 12 /* 11 - chdir */31#define SYS_pipe 13 /* 42 - time */32#define SYS_stat 14 /* 106 - mknod */33#define SYS_chmod 1534#define SYS_chown 16 /* 202 - lchown */35#define SYS_utime 17 /* 30 - break */36#define SYS_wait 18 /* n/a - oldstat */37#define SYS_lseek 19 /*x*/38#define SYS_getpid 2039#define SYS_isatty 21 /* n/a - mount */40#define SYS_fstat 22 /* 108 - oldumount */41#define SYS_time 23 /* 13 - setuid */42#define SYS_gettimeofday 24 /*x 78 - getuid (not implemented on WIN32) */43#define SYS_times 25 /*X 43 - stime (Xtensa-specific implementation) */44#define SYS_socket 2645#define SYS_sendto 2746#define SYS_recvfrom 2847#define SYS_select_one 29 /* not compitible select, one file descriptor at the time */48#define SYS_bind 3049#define SYS_ioctl 315051/*52* SYS_select_one specifiers53*/5455#define XTISS_SELECT_ONE_READ 156#define XTISS_SELECT_ONE_WRITE 257#define XTISS_SELECT_ONE_EXCEPT 3585960#endif /* _XTENSA_PLATFORM_ISS_SIMCALL_H */61626364