syscalls.h File Reference

Go to the source code of this file.

Defines

Functions


Define Documentation

#define _syscall0 numero,
retorno   )     __asm__ __volatile__ ("int $0x50" : "=a" (retorno) : "a" (numero))
 

Aquí se define la ubicación de las llamadas dentro de los vectores !

Note:
este header DEBE ser utilizado por el kernel y por la librería estandar de Routix

Definition at line 9 of file sys/syscalls.h.

Referenced by clrscr(), fork(), free_mem(), getpid(), getppid(), malloc_page(), proc_dump(), signal_check(), timer_dump(), and voido().

#define _syscall1 numero,
retorno,
param1   )     __asm__ __volatile__ ("int $0x50" : "=a" (retorno) : "a" (numero), "b" (param1))
 

Definition at line 10 of file sys/syscalls.h.

Referenced by exit(), free_page(), gets(), getvar(), perror(), proc_dump_v(), read_debug(), show(), sleep(), and usleep().

#define _syscall2 numero,
retorno,
param1,
param2   ) 
 

Value:

__asm__ __volatile__ ("int $0x50" : "=a" (retorno) : "a" (numero), \
        "b" (param1), "c" (param2))

Definition at line 11 of file sys/syscalls.h.

Referenced by kill(), puts(), renice(), setvar(), and signal().

#define _syscall3 numero,
retorno,
param1,
param2,
param3   ) 
 

Value:

__asm__ __volatile__ ("int $0x50" : "=a" (retorno) : "a" (numero), \
        "b" (param1), "c" (param2), "d" (param3))

Definition at line 13 of file sys/syscalls.h.

Referenced by execve(), sigaction(), sigprocmask(), and waitpid().

#define MAX_SYSCALLS   15
 

Definition at line 17 of file sys/syscalls.h.

#define SYS_CLRSCR   2
 

Definition at line 47 of file sys/syscalls.h.

Referenced by clrscr().

#define SYS_CONSOLE   (1 << 16)
 

Definition at line 21 of file sys/syscalls.h.

Referenced by clrscr(), gets(), and puts().

#define SYS_CONSOLE_MAX   3
 

Definition at line 48 of file sys/syscalls.h.

#define SYS_EXEC   0
 

Definition at line 31 of file sys/syscalls.h.

Referenced by exec().

#define SYS_EXECVE   10
 

Definition at line 41 of file sys/syscalls.h.

Referenced by execve().

#define SYS_EXIT   7
 

Definition at line 38 of file sys/syscalls.h.

Referenced by exit(), sys_exec(), and sys_execve().

#define SYS_FORK   2
 

Definition at line 33 of file sys/syscalls.h.

Referenced by fork().

#define SYS_FREE_MEM   2
 

Definition at line 71 of file sys/syscalls.h.

Referenced by free_mem().

#define SYS_FREE_PAGE   1
 

Definition at line 70 of file sys/syscalls.h.

Referenced by free_page().

#define SYS_GETPID   5
 

Definition at line 36 of file sys/syscalls.h.

Referenced by getpid().

#define SYS_GETPPID   6
 

Definition at line 37 of file sys/syscalls.h.

Referenced by getppid().

#define SYS_GETS   1
 

Definition at line 46 of file sys/syscalls.h.

Referenced by gets().

#define SYS_GETVAR   1
 

Definition at line 76 of file sys/syscalls.h.

Referenced by getvar().

#define SYS_KILL   0
 

Definition at line 51 of file sys/syscalls.h.

Referenced by kill().

#define SYS_KILLL   2
 

Definition at line 62 of file sys/syscalls.h.

#define SYS_MALLOC_PAGE   0
 

Definition at line 69 of file sys/syscalls.h.

Referenced by malloc_page().

#define SYS_MEM   (4 << 16)
 

Definition at line 24 of file sys/syscalls.h.

Referenced by free_mem(), free_page(), and malloc_page().

#define SYS_MEM_MAX   3
 

Definition at line 72 of file sys/syscalls.h.

#define SYS_MISC   (5 << 16)
 

Definition at line 25 of file sys/syscalls.h.

Referenced by getvar(), read_debug(), and setvar().

#define SYS_MISC_MAX   3
 

Definition at line 78 of file sys/syscalls.h.

#define SYS_PERROR   3
 

Definition at line 34 of file sys/syscalls.h.

Referenced by perror().

#define SYS_PRINT   0
 

Definition at line 45 of file sys/syscalls.h.

Referenced by puts().

#define SYS_PROC_DUMP   1
 

Definition at line 61 of file sys/syscalls.h.

Referenced by proc_dump().

#define SYS_PROC_DUMP_V   4
 

Definition at line 64 of file sys/syscalls.h.

Referenced by proc_dump_v().

#define SYS_PROCESS   0
 

Definition at line 20 of file sys/syscalls.h.

Referenced by exec(), execve(), exit(), fork(), getpid(), getppid(), perror(), renice(), show(), sys_exec(), sys_execve(), voido(), and waitpid().

#define SYS_PROCESS_MAX   11
 

Definition at line 42 of file sys/syscalls.h.

#define SYS_READ_DEBUG   2
 

Definition at line 77 of file sys/syscalls.h.

Referenced by read_debug().

#define SYS_RENICE   4
 

Definition at line 35 of file sys/syscalls.h.

Referenced by renice().

#define SYS_SETVAR   0
 

Definition at line 75 of file sys/syscalls.h.

Referenced by setvar().

#define SYS_SHOW   8
 

Definition at line 39 of file sys/syscalls.h.

Referenced by show().

#define SYS_SIGACTION   2
 

Definition at line 53 of file sys/syscalls.h.

Referenced by sigaction().

#define SYS_SIGNAL   1
 

Definition at line 52 of file sys/syscalls.h.

Referenced by signal().

#define SYS_SIGNAL_CHECK   3
 

Definition at line 54 of file sys/syscalls.h.

Referenced by signal_check(), sys_exec(), and sys_execve().

#define SYS_SIGNALS   (2 << 16)
 

Definition at line 22 of file sys/syscalls.h.

Referenced by kill(), sigaction(), signal(), signal_check(), sigprocmask(), sys_exec(), and sys_execve().

#define SYS_SIGNALS_MAX   5
 

Definition at line 56 of file sys/syscalls.h.

#define SYS_SIGPROCMASK   4
 

Definition at line 55 of file sys/syscalls.h.

Referenced by sigprocmask().

#define SYS_SLEEP   0
 

Definition at line 60 of file sys/syscalls.h.

Referenced by sleep().

#define SYS_TIMER   (3 << 16)
 

Definition at line 23 of file sys/syscalls.h.

Referenced by proc_dump(), proc_dump_v(), sleep(), timer_dump(), and usleep().

#define SYS_TIMER_DUMP   5
 

Definition at line 65 of file sys/syscalls.h.

Referenced by timer_dump().

#define SYS_TIMER_MAX   6
 

Definition at line 66 of file sys/syscalls.h.

#define SYS_USLEEP   3
 

Definition at line 63 of file sys/syscalls.h.

Referenced by usleep().

#define SYS_VOID   1
 

Definition at line 32 of file sys/syscalls.h.

Referenced by voido().

#define SYS_WAIT   9
 

Definition at line 40 of file sys/syscalls.h.

Referenced by waitpid().


Function Documentation

int sys_no_existe dword  numero  ) 
 

Se ejecuta cuando se hace una llama a una syscall inexistente.

Todo:
Verificar que dice POSIX respecto a realizar llamadas erroneas (probablemente se genera alguna señal)

Definition at line 59 of file syscalls.c.

void syscall void   ) 
 


Generated on Sun May 30 18:38:37 2004 for Routix OS by doxygen 1.3.6