-
Notifications
You must be signed in to change notification settings - Fork 1
/
rc.h
43 lines (36 loc) · 1.11 KB
/
rc.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
#if !defined (_RC_H)
# define _RC_H
#include"parse.h"
#define rcflag_restricted 0x1
#define rcflag_system_only 0x2
enum rcfile_type
{
SYSTEM , USER
};
struct rc_commands
{
char *command;
int flags;
void (*runrc)(int, char**);
};
void rc_file(int wordc, char **wordv, FILE *fp, int *line_no);
void rc_block(int wordc, char **wordv, FILE *fp, int *line_no);
int processrcfile (char *rcfilename, enum rcfile_type rctype);
int setenv(const char *name, const char *value, int overwrite);
void unsetenv(const char *name);
void rc_setenv(int argc, char **argv);
void rc_unsetenv(int argc, char **argv);
void rc_set(int argc, char **argv);
void rc_unset(int argc, char **argv);
void rc_exec(int argc, char **argv);
void rc_system(int argc, char **argv);
void rc_pause(int argc, char **argv);
void rc_sleep(int argc, char **argv);
void rc_logout(int argc, char **argv);
void rc_set_booloption(int argc, char **argv, int *booloption);
void rc_if(int argc, char **argv);
void rc_else(int argc, char **argv);
void rc_endif(int argc, char **argv);
void rc_restrict(int argc, char **argv);
void rc_arseme(int argc, char **argv);
#endif