-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsh.h
64 lines (52 loc) · 2.05 KB
/
tsh.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/***************************************************************************
* Title: MySimpleShell
* -------------------------------------------------------------------------
* Purpose: A simple shell implementation
* Author: Stefan Birrer
* Version: $Revision: 1.1 $
* Last Modification: $Date: 2005/10/13 05:24:59 $
* File: $RCSfile: tsh.h,v $
* Copyright: (C) 2002 by Stefan Birrer
***************************************************************************/
/***************************************************************************
* ChangeLog:
* -------------------------------------------------------------------------
* $Log: tsh.h,v $
* Revision 1.1 2005/10/13 05:24:59 sbirrer
* - added the skeleton files
*
* Revision 1.1 2002/10/15 20:20:56 sempi
* Milestone 1
*
***************************************************************************/
#ifndef __MYSS_H__
#define __MYSS_H__
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/************System include***********************************************/
/************Private include**********************************************/
/************Defines and Typedefs*****************************************/
/* #defines and typedefs should have their names in all caps.
* Global variables begin with g. Global constants with k. Local
* variables should be in all lower case. When initializing
* structures and arrays, line everything up in neat columns.
*/
#undef EXTERN
#ifdef __MYSS_IMPL__
#define EXTERN
#else
#define EXTERN extern
#endif
/************Global Variables*********************************************/
extern pid_t shell_pgid;
extern struct termios shell_tmodes;
extern int shell_terminal;
extern int shell_is_interactive;
/***********Function Prototypes******************************************/
void initial_signal();
void signal_mask();
void reset_signal_mask();
/************External Declaration*****************************************/
/**************Definition***************************************************/
#endif /* __MYSS_H__ */