C-Shell
A simple shell written in C.
Loading...
Searching...
No Matches
job_store.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "job_store.h"

Functions

struct jobget_job (pid_t pgid)
 
void add_jobs_to_store (struct job *j)
 
void free_job (struct job *j)
 Free all allocated memory for a job struct.
 
struct jobget_job_list ()
 
void list_jobs ()
 
void remove_job_from_store (pid_t pgid)
 

Variables

struct jobjob_store = NULL
 This is the head of the linked list of jobs.
 

Function Documentation

◆ add_jobs_to_store()

void add_jobs_to_store ( struct job * j)

◆ free_job()

void free_job ( struct job * j)

Free all allocated memory for a job struct.

◆ get_job()

struct job * get_job ( pid_t pgid)

◆ get_job_list()

struct job * get_job_list ( )

◆ list_jobs()

void list_jobs ( )

◆ remove_job_from_store()

void remove_job_from_store ( pid_t pgid)

Variable Documentation

◆ job_store

struct job* job_store = NULL

This is the head of the linked list of jobs.