35 lines
659 B
C
35 lines
659 B
C
/*
|
|
* Laboration 2 i C och UNIX
|
|
*
|
|
* Komplett shell
|
|
* =========================================
|
|
*
|
|
* Christian Ohlsson, di7chro@cse.kau.se
|
|
* Stefan Sonesson, di7stes@cse.kau.se
|
|
*
|
|
* Karlstads Universitet, 991209
|
|
*
|
|
*
|
|
*===========================================
|
|
*/
|
|
#define SYMTBLSIZE 100
|
|
#define PERMS 0644
|
|
|
|
#include <sys/wait.h>
|
|
#include <signal.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <fcntl.h>
|
|
#include "tree.h"
|
|
#include "y.tab.h"
|
|
|
|
void doTree(treePtr tPtr);
|
|
void pipa(treePtr tPtr);
|
|
void semi(treePtr tPtr);
|
|
void great(treePtr tPtr);
|
|
void less(treePtr tPtr);
|
|
void and(treePtr tPtr);
|
|
void dblarr(treePtr tPtr);
|
|
|