1 /* Copied from libgloss */
2 /* General use syscall.h file.
3 The more ports that use this file, the simpler sim/common/nltvals.def
6 #ifndef LIBGLOSS_SYSCALL_H
7 #define LIBGLOSS_SYSCALL_H
9 /* Note: This file may be included by assembler source. */
11 /* These should be as small as possible to allow a port to use a trap type
12 instruction, which the system call # as the trap (the d10v for instance
13 supports traps 0..31). An alternative would be to define one trap for doing
14 system calls, and put the system call number in a register that is not used
15 for the normal calling sequence (so that you don't have to shift down the
16 arguments to add the system call number). Obviously, if these system call
17 numbers are ever changed, all of the simulators and potentially user code
18 will need to be updated. */
20 /* There is no current need for the following: SYS_execv, SYS_creat, SYS_wait,
21 etc. etc. Don't add them. */
23 /* These are required by the ANSI C part of newlib (excluding system() of
35 /*#define SYS_sbrk 11 - not currently a system call, but reserved. */
38 #define SYS_argvlen 12
41 /* These are extras added for one reason or another. */
47 #define SYS_gettimeofday 19
This page took 0.029932 seconds and 4 git commands to generate.