src/commands/ash/redir.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include "shell.h"
#include "nodes.h"
#include "jobs.h"
#include "expand.h"
#include "redir.h"
#include "output.h"
#include "memalloc.h"
#include "error.h"
#include "options.h"

Go to the source code of this file.

Classes

struct  redirtab

Defines

#define EMPTY   -2
#define PIPESIZE   4096

Functions

STATIC void openredirect (union node *, char[10])
STATIC int openhere (union node *)
void redirect (union node *redir, int flags)
void popredir (void)
int fd0_redirected_p (void)
void clearredir (void)

Variables

MKINIT struct redirtabredirlist
STATIC int fd0_redirected = 0


Define Documentation

#define EMPTY   -2

Definition at line 67 of file redir.c.

#define PIPESIZE   4096

Definition at line 68 of file redir.c.


Function Documentation

void clearredir ( void   ) 

Definition at line 335 of file redir.c.

int fd0_redirected_p ( void   ) 

Definition at line 325 of file redir.c.

STATIC int openhere ( union node redir  ) 

Definition at line 242 of file redir.c.

STATIC void openredirect ( union node redir,
char  memory[10] 
)

Definition at line 162 of file redir.c.

void popredir ( void   ) 

Definition at line 281 of file redir.c.

void redirect ( union node redir,
int  flags 
)

Definition at line 100 of file redir.c.


Variable Documentation

STATIC int fd0_redirected = 0

Definition at line 85 of file redir.c.

MKINIT struct redirtab* redirlist

Definition at line 78 of file redir.c.


Generated on Tue Mar 9 04:36:24 2010 for Minix by  doxygen 1.5.8