UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
syscall.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "syscall.h"

Go to the source code of this file.

Functions

int fetchint (uint addr, int *ip)
 
int fetchstr (uint addr, char **pp)
 
int argint (int n, int *ip)
 
int argptr (int n, char **pp, int size)
 
int argstr (int n, char **pp)
 
int sys_chdir (void)
 
int sys_close (void)
 
int sys_dup (void)
 
int sys_exec (void)
 
int sys_exit (void)
 
int sys_fork (void)
 
int sys_fstat (void)
 
int sys_getpid (void)
 
int sys_kill (void)
 
int sys_link (void)
 
int sys_mkdir (void)
 
int sys_mknod (void)
 
int sys_open (void)
 
int sys_pipe (void)
 
int sys_read (void)
 
int sys_sbrk (void)
 
int sys_sleep (void)
 
int sys_unlink (void)
 
int sys_wait (void)
 
int sys_write (void)
 
int sys_uptime (void)
 
void syscall (void)
 

Function Documentation

int argint ( int  n,
int *  ip 
)

Definition at line 46 of file syscall.c.

int argptr ( int  n,
char **  pp,
int  size 
)

Definition at line 55 of file syscall.c.

int argstr ( int  n,
char **  pp 
)

Definition at line 72 of file syscall.c.

int fetchint ( uint  addr,
int *  ip 
)

Definition at line 18 of file syscall.c.

int fetchstr ( uint  addr,
char **  pp 
)

Definition at line 30 of file syscall.c.

int sys_chdir ( void  )

Definition at line 371 of file sysfile.c.

int sys_close ( void  )

Definition at line 91 of file sysfile.c.

int sys_dup ( void  )

Definition at line 53 of file sysfile.c.

int sys_exec ( void  )

Definition at line 395 of file sysfile.c.

int sys_exit ( void  )

Definition at line 17 of file sysproc.c.

int sys_fork ( void  )

Definition at line 11 of file sysproc.c.

int sys_fstat ( void  )

Definition at line 104 of file sysfile.c.

int sys_getpid ( void  )

Definition at line 40 of file sysproc.c.

int sys_kill ( void  )

Definition at line 30 of file sysproc.c.

int sys_link ( void  )

Definition at line 116 of file sysfile.c.

int sys_mkdir ( void  )

Definition at line 334 of file sysfile.c.

int sys_mknod ( void  )

Definition at line 350 of file sysfile.c.

int sys_open ( void  )

Definition at line 284 of file sysfile.c.

int sys_pipe ( void  )

Definition at line 421 of file sysfile.c.

int sys_read ( void  )

Definition at line 67 of file sysfile.c.

int sys_sbrk ( void  )

Definition at line 46 of file sysproc.c.

int sys_sleep ( void  )

Definition at line 60 of file sysproc.c.

int sys_unlink ( void  )

Definition at line 182 of file sysfile.c.

int sys_uptime ( void  )

Definition at line 83 of file sysproc.c.

int sys_wait ( void  )

Definition at line 24 of file sysproc.c.

int sys_write ( void  )

Definition at line 79 of file sysfile.c.

void syscall ( void  )

Definition at line 127 of file syscall.c.