![]() |
YASH 0.1
CLI written in C
|
Core data structures and constants. More...
#include <signal.h>#include <sys/stat.h>#include <sys/types.h>Go to the source code of this file.
Classes | |
| struct | Command |
| Represents one command with arguments and redirections. More... | |
| struct | Line |
| Represents a full line of user input. More... | |
Typedefs | |
| typedef struct Command | Command |
| Represents one command with arguments and redirections. | |
| typedef struct Line | Line |
| Represents a full line of user input. | |
Enumerations | |
| enum | TokenKind { TK_WORD , TK_REDIR_IN , TK_REDIR_OUT , TK_REDIR_ERR , TK_PIPE , TK_AMP } |
| Token kinds. More... | |
Functions | |
| void | init_command (Command *cmd) |
| Initialize a Command structure to NULL/0 values. | |
Variables | |
| volatile sig_atomic_t | child_status_changed |
| Flag indicating that a child process status has changed. | |
| pid_t | foreground_pgid |
| Process group ID of the current foreground process. | |
Core data structures and constants.
This file contains the core data structures and constants used throughout the YASH shell implementation.
| typedef struct Command Command |
Represents one command with arguments and redirections.
Invariants:
| typedef struct Line Line |
Represents a full line of user input.
Invariants:
| enum TokenKind |