Main Page   Compound List   File List   Compound Members   File Members  

syscall.h File Reference

#include "copyright.h"

Go to the source code of this file.

Defines

#define SC_Halt   0
#define SC_Exit   1
#define SC_Exec   2
#define SC_Join   3
#define SC_Create   4
#define SC_Open   5
#define SC_Read   6
#define SC_Write   7
#define SC_Close   8
#define SC_Fork   9
#define SC_Yield   10
#define ConsoleInput   0
#define ConsoleOutput   1

Typedefs

typedef int SpaceId
typedef int OpenFileId

Functions

void Halt ()
void Exit (int status)
SpaceId Exec (char *name)
int Join (SpaceId id)
void Create (char *name)
OpenFileId Open (char *name)
void Write (char *buffer, int size, OpenFileId id)
int Read (char *buffer, int size, OpenFileId id)
void Close (OpenFileId id)
void Fork (void(*func)())
void Yield ()


Define Documentation

#define ConsoleInput   0
 

Definition at line 86 of file syscall.h.

Referenced by main.

#define ConsoleOutput   1
 

Definition at line 87 of file syscall.h.

Referenced by main.

#define SC_Close   8
 

Definition at line 29 of file syscall.h.

#define SC_Create   4
 

Definition at line 25 of file syscall.h.

#define SC_Exec   2
 

Definition at line 23 of file syscall.h.

#define SC_Exit   1
 

Definition at line 22 of file syscall.h.

#define SC_Fork   9
 

Definition at line 30 of file syscall.h.

#define SC_Halt   0
 

Definition at line 21 of file syscall.h.

Referenced by ExceptionHandler.

#define SC_Join   3
 

Definition at line 24 of file syscall.h.

#define SC_Open   5
 

Definition at line 26 of file syscall.h.

#define SC_Read   6
 

Definition at line 27 of file syscall.h.

#define SC_Write   7
 

Definition at line 28 of file syscall.h.

#define SC_Yield   10
 

Definition at line 31 of file syscall.h.


Typedef Documentation

typedef int OpenFileId
 

Definition at line 78 of file syscall.h.

Referenced by main.

typedef int SpaceId
 

Definition at line 55 of file syscall.h.

Referenced by main.


Function Documentation

void Close OpenFileId    id
 

Referenced by Console::~Console, and Disk::~Disk.

void Create char *    name
 

SpaceId Exec char *    name
 

Referenced by main.

void Exit int    status
 

Definition at line 441 of file sysdep.cc.

Referenced by Cleanup, and main.

00442 {
00443     exit(exitCode);
00444 }

void Fork void(*    func)()
 

void Halt  
 

Referenced by main.

int Join SpaceId    id
 

Referenced by main.

OpenFileId Open char *    name
 

int Read char *    buffer,
int    size,
OpenFileId    id
 

Referenced by Console::CheckCharAvail, Disk::Disk, main, and Disk::ReadRequest.

void Write char *    buffer,
int    size,
OpenFileId    id
 

Referenced by main.

void Yield  
 


Generated on Mon Feb 10 09:54:51 2003 for nachos by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees