pintos/src/examples/shell.c File Reference

#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <syscall.h>

Go to the source code of this file.

Functions

static void read_line (char line[], size_t)
static bool backspace (char **pos, char line[])
int main (void)


Function Documentation

static bool backspace ( char **  pos,
char  line[] 
) [static]

Definition at line 93 of file shell.c.

References printf().

Referenced by read_line().

int main ( void   ) 

Definition at line 11 of file shell.c.

References chdir(), exec(), EXIT_SUCCESS, memcmp(), PID_ERROR, printf(), read_line(), strcmp(), and wait().

static void read_line ( char  line[],
size_t  size 
) [static]

Definition at line 53 of file shell.c.

References backspace(), putchar(), read(), and STDIN_FILENO.

Referenced by main().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6