File: job.h

package info (click to toggle)
esh 0.8-7
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 508 kB
  • ctags: 542
  • sloc: ansic: 3,608; lisp: 166; makefile: 72
file content (31 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 
 * esh, the Unix shell with Lisp-like syntax. 
 * Copyright (C) 1999  Ivan Tkatchev
 * This source code is under the GPL.
 */


#ifndef JOB_H
#define JOB_H

#include <termios.h>

#define JOB_RUNNING    0
#define JOB_STOPPED    1
#define JOB_DEAD       2

typedef struct job_t job_t;

struct job_t {
  pid_t pgid;
  pid_t last_pid;
  char* name;

  char status;
  char value;
  struct termios terminal_modes;
};


#endif