xv6/user.h File Reference

Go to the source code of this file.

Functions

int fork (void)
int exit (void) __attribute__((noreturn))
int wait (void)
int pipe (int *)
int write (int, void *, int)
int read (int, void *, int)
int close (int)
int kill (int)
int exec (char *, char **)
int open (char *, int)
int mknod (char *, short, short)
int unlink (char *)
int fstat (int fd, struct stat *)
int link (char *, char *)
int mkdir (char *)
int chdir (char *)
int dup (int)
int getpid ()
char * sbrk (int)
int sleep (int)
int stat (char *, struct stat *)
char * strcpy (char *, char *)
void * memmove (void *, void *, int)
char * strchr (const char *, char c)
int strcmp (const char *, const char *)
void printf (int, char *,...)
char * gets (char *, int max)
uint strlen (char *)
void * memset (void *, int, uint)
void * malloc (uint)
void free (void *)
int atoi (const char *)


Function Documentation

int atoi ( const char *   ) 

Definition at line 85 of file ulib.c.

Referenced by main().

int chdir ( char *   ) 

Referenced by dirfile(), dirtest(), iref(), main(), rmdot(), and subdir().

int close ( int   ) 

int dup ( int   ) 

Referenced by main(), and runcmd().

int exec ( char *  ,
char **   
)

int exit ( void   ) 

Definition at line 395 of file proc.c.

References acquire(), fileclose(), iput(), NOFILE, NPROC, panic(), proc::parent, ptable, sched(), proc::state, wakeup1(), and ZOMBIE.

int fork ( void   ) 

void free ( void *   ) 

Definition at line 25 of file umalloc.c.

References header::ptr, header::s, and header::size.

Referenced by mem(), and morecore().

int fstat ( int  fd,
struct stat  
)

Referenced by ls(), and stat().

int getpid (  ) 

char* gets ( char *  ,
int  max 
)

Definition at line 53 of file ulib.c.

References read().

Referenced by getcmd().

int kill ( int   ) 

Definition at line 372 of file proc.c.

References acquire(), proc::killed, NPROC, proc::pid, ptable, release(), RUNNABLE, SLEEPING, and proc::state.

int link ( char *  ,
char *   
)

void* malloc ( uint   ) 

Definition at line 64 of file umalloc.c.

References morecore(), header::ptr, header::s, and header::size.

Referenced by backcmd(), execcmd(), listcmd(), mem(), pipecmd(), and redircmd().

void* memmove ( void *  ,
void *  ,
int   
)

Definition at line 96 of file ulib.c.

void* memset ( void *  ,
int  ,
uint   
)

Definition at line 5 of file string.c.

References stosb().

int mkdir ( char *   ) 

int mknod ( char *  ,
short  ,
short   
)

Referenced by main().

int open ( char *  ,
int   
)

int pipe ( int *   ) 

Referenced by pipe1(), preempt(), and runcmd().

void printf ( int  ,
char *  ,
  ... 
)

int read ( int  ,
void *  ,
int   
)

char* sbrk ( int   ) 

Referenced by morecore().

int sleep ( int   ) 

int stat ( char *  ,
struct stat  
)

Definition at line 71 of file ulib.c.

References close(), fstat(), O_RDONLY, open(), and r.

Referenced by ls().

char* strchr ( const char *  ,
char  c 
)

Definition at line 44 of file ulib.c.

Referenced by gettoken(), grep(), peek(), and wc().

int strcmp ( const char *  ,
const char *   
)

Definition at line 19 of file ulib.c.

char* strcpy ( char *  ,
char *   
)

Definition at line 8 of file ulib.c.

Referenced by ls(), and main().

uint strlen ( char *   ) 

Definition at line 27 of file ulib.c.

int unlink ( char *   ) 

int wait ( void   ) 

int write ( int  ,
void *  ,
int   
)


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6