Page principale | Liste des namespaces | Hiérarchie des classes | Liste des classes | Répertoires | Liste des fichiers | Membres de namespace | Membres de classe | Membres de fichier

Référence du fichier sysdep.cc

#include "copyright.h"
#include "debug.h"
#include "sysdep.h"
#include "stdlib.h"
#include "unistd.h"
#include "sys/time.h"
#include "sys/file.h"
#include <sys/socket.h>
#include <sys/un.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/mman.h>

Graphe des dépendances par inclusion de sysdep.cc:

Aller au code source de ce fichier.

Fonctions

int getpagesize (void)
unsigned sleep (unsigned)
int mprotect (char *, unsigned int, int)
int select (int numBits, void *readFds, void *writeFds, void *exceptFds, struct timeval *timeout)
int socket (int, int, int)
void CallOnUserAbort (void(*func)(int))
void RegisterSignalHandler (void(*func)(int), int sig)
void Delay (int seconds)
void UDelay (unsigned int useconds)
void Abort ()
void Exit (int exitCode)
void RandomInit (unsigned seed)
unsigned int RandomNumber ()
char * AllocBoundedArray (int size)
void DeallocBoundedArray (char *ptr, int size)
bool PollFile (int fd)
int OpenForWrite (char *name)
int OpenForReadWrite (char *name, bool crashOnError)
void Read (int fd, char *buffer, int nBytes)
int ReadPartial (int fd, char *buffer, int nBytes)
void WriteFile (int fd, char *buffer, int nBytes)
void Lseek (int fd, int offset, int whence)
int Tell (int fd)
int Close (int fd)
bool Unlink (char *name)
int OpenSocket ()
void CloseSocket (int sockID)
static void InitSocketName (struct sockaddr_un *uname, char *name)
void AssignNameToSocket (char *socketName, int sockID)
void DeAssignNameToSocket (char *socketName)
bool PollSocket (int sockID)
void ReadFromSocket (int sockID, char *buffer, int packetSize)
void SendToSocket (int sockID, char *buffer, int packetSize, char *toName)


Documentation des fonctions

void Abort (   ) 
 

Définition à la ligne 169 du fichier sysdep.cc.

char* AllocBoundedArray (  int  size  ) 
 

Définition à la ligne 221 du fichier sysdep.cc.

Références getpagesize(), et mprotect().

Référencé par Thread::StackAllocate().

Voici le graphe d'appel pour cette fonction:

void AssignNameToSocket (  char *  socketName,
int  sockID
) 
 

Définition à la ligne 482 du fichier sysdep.cc.

Références ASSERT, dbgNet, DEBUG, et InitSocketName().

Voici le graphe d'appel pour cette fonction:

void CallOnUserAbort (  void(*)(int)  func  ) 
 

Définition à la ligne 116 du fichier sysdep.cc.

Référencé par main().

int Close (  int  fd  ) 
 

Définition à la ligne 416 du fichier sysdep.cc.

Références ASSERT.

Référencé par Copy().

void CloseSocket (  int  sockID  ) 
 

Définition à la ligne 458 du fichier sysdep.cc.

void DeallocBoundedArray (  char *  ptr,
int  size
) 
 

Définition à la ligne 251 du fichier sysdep.cc.

Références getpagesize(), et mprotect().

Référencé par Thread::~Thread().

Voici le graphe d'appel pour cette fonction:

void DeAssignNameToSocket (  char *  socketName  ) 
 

Définition à la ligne 500 du fichier sysdep.cc.

void Delay (  int  seconds  ) 
 

Définition à la ligne 141 du fichier sysdep.cc.

Références sleep().

Référencé par SendToSocket().

Voici le graphe d'appel pour cette fonction:

void Exit (  int  exitCode  ) 
 

Définition à la ligne 180 du fichier sysdep.cc.

Référencé par main(), et Kernel::~Kernel().

int getpagesize (  void   ) 
 

Référencé par AllocBoundedArray(), et DeallocBoundedArray().

static void InitSocketName (  struct sockaddr_un *  uname,
char *  name
)  [static]
 

Définition à la ligne 469 du fichier sysdep.cc.

Référencé par AssignNameToSocket(), et SendToSocket().

void Lseek (  int  fd,
int  offset,
int  whence
) 
 

Définition à la ligne 387 du fichier sysdep.cc.

Références ASSERT.

Référencé par Copy().

int mprotect (  char *  ,
unsigned  int,
int 
) 
 

Référencé par AllocBoundedArray(), et DeallocBoundedArray().

int OpenForReadWrite (  char *  name,
bool  crashOnError
) 
 

Définition à la ligne 336 du fichier sysdep.cc.

Références ASSERT.

Référencé par Copy().

int OpenForWrite (  char *  name  ) 
 

Définition à la ligne 319 du fichier sysdep.cc.

Références ASSERT.

int OpenSocket (   ) 
 

Définition à la ligne 442 du fichier sysdep.cc.

Références ASSERT, et socket().

Voici le graphe d'appel pour cette fonction:

bool PollFile (  int  fd  ) 
 

Définition à la ligne 271 du fichier sysdep.cc.

Références ASSERT, FALSE, select(), et TRUE.

Référencé par PollSocket().

Voici le graphe d'appel pour cette fonction:

bool PollSocket (  int  sockID  ) 
 

Définition à la ligne 511 du fichier sysdep.cc.

Références PollFile().

Voici le graphe d'appel pour cette fonction:

void RandomInit (  unsigned  seed  ) 
 

Définition à la ligne 192 du fichier sysdep.cc.

Référencé par Kernel::Kernel().

unsigned int RandomNumber (   ) 
 

Définition à la ligne 203 du fichier sysdep.cc.

void Read (  int  fd,
char *  buffer,
int  nBytes
) 
 

Définition à la ligne 350 du fichier sysdep.cc.

Référencé par main().

void ReadFromSocket (  int  sockID,
char *  buffer,
int  packetSize
) 
 

Définition à la ligne 521 du fichier sysdep.cc.

Références ASSERT.

int ReadPartial (  int  fd,
char *  buffer,
int  nBytes
) 
 

Définition à la ligne 363 du fichier sysdep.cc.

Référencé par Copy().

void RegisterSignalHandler (  void(*)(int)  func,
int  sig
) 
 

Définition à la ligne 128 du fichier sysdep.cc.

int select (  int  numBits,
void *  readFds,
void *  writeFds,
void *  exceptFds,
struct timeval *  timeout
) 
 

Référencé par PollFile().

void SendToSocket (  int  sockID,
char *  buffer,
int  packetSize,
char *  toName
) 
 

Définition à la ligne 560 du fichier sysdep.cc.

Références ASSERT, Delay(), et InitSocketName().

Voici le graphe d'appel pour cette fonction:

unsigned sleep (  unsigned   ) 
 

Référencé par Delay().

int socket (  int  ,
int  ,
int 
) 
 

Référencé par OpenSocket().

int Tell (  int  fd  ) 
 

Définition à la ligne 399 du fichier sysdep.cc.

Référencé par Copy().

void UDelay (  unsigned int  useconds  ) 
 

Définition à la ligne 153 du fichier sysdep.cc.

bool Unlink (  char *  name  ) 
 

Définition à la ligne 429 du fichier sysdep.cc.

void WriteFile (  int  fd,
char *  buffer,
int  nBytes
) 
 

Définition à la ligne 375 du fichier sysdep.cc.

Références ASSERT.


Généré le Sun Jan 15 00:47:07 2006 pour Système NachOS : par  doxygen 1.4.4