C-Shell
A simple shell written in C.
Loading...
Searching...
No Matches
executor.c File Reference

This file is the heart of the shell, where commands are executed. More...

#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <wait.h>
#include "internal_commands.h"
#include "job_store.h"
#include "main.h"
#include "redirection.h"
#include "shelltypes.h"
#include "signals.h"
#include "terminal.h"

Functions

int execute (struct command *cmd)
 
void init_shell ()
 
void launch_job (struct job *j)
 

Variables

pid_t shell_pgid
 
int shell_terminal
 

Detailed Description

This file is the heart of the shell, where commands are executed.

Function Documentation

◆ execute()

int execute ( struct command * cmd)

◆ init_shell()

void init_shell ( )

◆ launch_job()

void launch_job ( struct job * j)

Variable Documentation

◆ shell_pgid

pid_t shell_pgid

◆ shell_terminal

int shell_terminal