Main Page | Directories | File List | Globals

syscalls.c File Reference

#include <agnix/agnix.h>
#include <agnix/syscalls.h>
#include <agnix/errno.h>

Include dependency graph for syscalls.c:

Go to the source code of this file.

Defines

#define MOD_NAME   "SYSCALLS: "

Functions

 SYS_CALL (fork)
 SYS_CALL (exit)
 SYS_CALL (nice)
 SYS_CALL (getpid)
 SYS_CALL (gettimeofday)
 SYS_CALL (settimeofday)
 SYS_CALL (kill)
 SYS_CALL (setuid)
 SYS_CALL (getuid)
 SYS_CALL (setgid)
 SYS_CALL (getgid)
 SYS_CALL (sigaction)
 SYS_CALL (sigreturn)
 SYS_CALL (setitimer)
 SYS_CALL (getitimer)
 SYS_CALL (time)
 SYS_CALL (stime)
 SYS_CALL (read)
 SYS_CALL (write)
 SYS_CALL (open)
 SYS_CALL (not_implemented)


Define Documentation

#define MOD_NAME   "SYSCALLS: "
 

Definition at line 18 of file syscalls.c.


Function Documentation

SYS_CALL not_implemented   ) 
 

Definition at line 122 of file syscalls.c.

00123 {
00124     return -ENOSYS;
00125 }

SYS_CALL open   ) 
 

Definition at line 117 of file syscalls.c.

References do_sys_open().

00118 {
00119     return do_sys_open((char *)(regs->ebx), (int)(regs->ecx), (int)(regs->edx));
00120 }

Here is the call graph for this function:

SYS_CALL write   ) 
 

Definition at line 112 of file syscalls.c.

References do_sys_write().

00113 {
00114     return do_sys_write((int)(regs->ebx), (char *)(regs->ecx), (int)(regs->edx));
00115 }

Here is the call graph for this function:

SYS_CALL read   ) 
 

Definition at line 107 of file syscalls.c.

References do_sys_read().

00108 {
00109     return do_sys_read((int)(regs->ebx), (char *)(regs->ecx), (int)(regs->edx));
00110 }

Here is the call graph for this function:

SYS_CALL stime   ) 
 

Definition at line 102 of file syscalls.c.

References do_sys_stime().

00103 {
00104     return do_sys_stime((int *)(regs->ebx));
00105 }

Here is the call graph for this function:

SYS_CALL time   ) 
 

Definition at line 97 of file syscalls.c.

References do_sys_time().

00098 {
00099     return do_sys_time((int *)(regs->ebx));
00100 }

Here is the call graph for this function:

SYS_CALL getitimer   ) 
 

Definition at line 92 of file syscalls.c.

References do_sys_getitimer().

00093 {
00094     return do_sys_getitimer((int)(regs->ebx), (struct itimerval_s *)(regs->ecx));
00095 }

Here is the call graph for this function:

SYS_CALL setitimer   ) 
 

Definition at line 86 of file syscalls.c.

References do_sys_setitimer().

00087 {
00088     return do_sys_setitimer((int)(regs->ebx), (struct itimerval_s *)(regs->ecx),
00089                             (struct itimerval_s *)(regs->edx));
00090 }

Here is the call graph for this function:

SYS_CALL sigreturn   ) 
 

Definition at line 81 of file syscalls.c.

References do_sys_sigreturn().

00082 {
00083     return do_sys_sigreturn((int)(regs->ebx));
00084 }

Here is the call graph for this function:

SYS_CALL sigaction   ) 
 

Definition at line 75 of file syscalls.c.

References do_sys_sigaction().

00076 {
00077     return do_sys_sigaction((int)(regs->ebx), (struct sigaction_s *)(regs->ecx), 
00078                             (struct sigaction_s *)(regs->edx));
00079 }

Here is the call graph for this function:

SYS_CALL getgid   ) 
 

Definition at line 70 of file syscalls.c.

00071 {
00072     return 0;
00073 }

SYS_CALL setgid   ) 
 

Definition at line 65 of file syscalls.c.

00066 {
00067     return 0;
00068 }

SYS_CALL getuid   ) 
 

Definition at line 60 of file syscalls.c.

00061 {
00062     return 0;
00063 }

SYS_CALL setuid   ) 
 

Definition at line 55 of file syscalls.c.

00056 {
00057     return 0;
00058 }

SYS_CALL kill   ) 
 

Definition at line 50 of file syscalls.c.

References do_sys_kill().

00051 {
00052     return do_sys_kill((int)(regs->ebx), (int)(regs->ecx));
00053 }

Here is the call graph for this function:

SYS_CALL settimeofday   ) 
 

Definition at line 45 of file syscalls.c.

References timer_settimeofday().

00046 {
00047     return timer_settimeofday((struct timeval_s *)(regs->ebx));
00048 }

Here is the call graph for this function:

SYS_CALL gettimeofday   ) 
 

Definition at line 40 of file syscalls.c.

References timer_gettimeofday().

00041 {
00042     return timer_gettimeofday((struct timeval_s *)(regs->ebx));
00043 }

Here is the call graph for this function:

SYS_CALL getpid   ) 
 

Definition at line 35 of file syscalls.c.

References do_sys_getpid().

00036 {
00037     return do_sys_getpid();
00038 }

Here is the call graph for this function:

SYS_CALL nice   ) 
 

Definition at line 30 of file syscalls.c.

References do_sys_nice().

00031 {
00032     return do_sys_nice((int)(regs->ebx));
00033 }

Here is the call graph for this function:

SYS_CALL exit   ) 
 

Definition at line 25 of file syscalls.c.

References do_sys_exit().

00026 {
00027     return do_sys_exit((int)(regs->ebx));
00028 }

Here is the call graph for this function:

SYS_CALL fork   ) 
 

Definition at line 20 of file syscalls.c.

References do_sys_fork().

00021 {
00022     return do_sys_fork(regs);
00023 }

Here is the call graph for this function:

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix