remake  4.3+dbg-1.5
Data Structures | Macros | Functions | Variables
job.h File Reference
#include "output.h"
#include "trace.h"

Go to the source code of this file.

Data Structures

struct  childbase
 
struct  child
 

Macros

#define VMSCHILD
 
#define CHILDBASE
 

Functions

RETSIGTYPE child_handler (int sig)
 
int is_bourne_compatible_shell (const char *path)
 
void new_job (file_t *file, target_stack_node_t *p_call_stack)
 
void reap_children (int block, int err, target_stack_node_t *p_call_stack)
 
void start_waiting_jobs (target_stack_node_t *p_call_stack)
 
char ** construct_command_argv (char *line, char **restp, struct file *file, int cmd_flags, char **batch_file)
 
pid_t child_execute_job (struct childbase *child, int good_stdin, char **argv)
 
void exec_command (char **argv, char **envp)
 
void unblock_all_sigs (void)
 

Variables

struct childchildren
 
unsigned int job_slots_used
 
unsigned int jobserver_tokens
 

Macro Definition Documentation

◆ CHILDBASE

#define CHILDBASE
Value:
char *cmd_name; /* Alloced copy of command run. */ \
char **environment; /* Environment for commands. */ \
VMSCHILD \
struct output output /* Output for this child. */
Definition: output.h:20

◆ VMSCHILD

#define VMSCHILD

Function Documentation

◆ child_execute_job()

pid_t child_execute_job ( struct childbase child,
int  good_stdin,
char **  argv 
)

◆ child_handler()

RETSIGTYPE child_handler ( int  sig)

◆ construct_command_argv()

char** construct_command_argv ( char *  line,
char **  restp,
struct file file,
int  cmd_flags,
char **  batch_file 
)

◆ exec_command()

void exec_command ( char **  argv,
char **  envp 
)

◆ is_bourne_compatible_shell()

int is_bourne_compatible_shell ( const char *  path)

◆ new_job()

void new_job ( file_t file,
target_stack_node_t p_call_stack 
)

◆ reap_children()

void reap_children ( int  block,
int  err,
target_stack_node_t p_call_stack 
)

◆ start_waiting_jobs()

void start_waiting_jobs ( target_stack_node_t p_call_stack)

◆ unblock_all_sigs()

void unblock_all_sigs ( void  )

Variable Documentation

◆ children

struct child* children

◆ job_slots_used

unsigned int job_slots_used

◆ jobserver_tokens

unsigned int jobserver_tokens