2024-01-31 02:02:32 +01:00
|
|
|
#ifndef CONSTANTS_H_
|
|
|
|
#define CONSTANTS_H_
|
|
|
|
|
2024-10-27 02:43:44 +02:00
|
|
|
#define HISTFILE "90s_history" // history file name
|
2024-01-31 02:02:32 +01:00
|
|
|
#define TOK_BUFSIZE 64 // buffer size of each token
|
2024-02-01 20:02:30 +01:00
|
|
|
#define RL_BUFSIZE 1024 // size of each command
|
2024-01-31 02:02:32 +01:00
|
|
|
#define TOK_DELIM " \t\r\n\a" // delimiter for token
|
2024-02-01 20:02:30 +01:00
|
|
|
#define MAX_HISTORY 8192 // maximum lines of reading history
|
2024-02-11 02:01:28 +01:00
|
|
|
|
|
|
|
#define MAX_JOBS 64 // maximum number of jobs
|
|
|
|
#define OPT_STDIN 0x01 // option for stdin
|
|
|
|
#define OPT_STDOUT 0x02 // option for stdout
|
|
|
|
#define OPT_STDERR 0x04 // option for stderr
|
|
|
|
#define OPT_FGJ 0x08 // option for foreground job
|
|
|
|
#define OPT_BGJ 0x10 // option for background job
|
2024-01-31 02:02:32 +01:00
|
|
|
#endif
|