minishell/README.md
2025-02-01 00:26:29 +01:00

62 lines
2.8 KiB
Markdown

# Minishell
## Allowed Functions
/*
* This file lists the functions and system calls used in the minishell project.
*
* Functions and system calls:
* - readline: Reads a line from the terminal.
* - rl_clear_history: Clears the history of lines read.
* - rl_on_new_line: Prepares for a new line of input.
* - rl_replace_line: Replaces the current line with a new one.
* - rl_redisplay: Redisplays the current input line.
* - add_history: Adds a line to the history.
* - printf: Prints formatted output to stdout.
* - malloc: Allocates memory dynamically.
* - free: Frees dynamically allocated memory.
* - write: Writes data to a file descriptor.
* - access: Checks a file's accessibility.
* - open: Opens a file.
* - read: Reads data from a file descriptor.
* - close: Closes a file descriptor.
* - fork: Creates a new process.
* - wait: Waits for a child process to change state.
* - waitpid: Waits for a specific child process to change state.
* - wait3: Waits for a child process to change state with resource usage statistics.
* - wait4: Waits for a specific child process to change state with resource usage statistics.
* - signal: Sets a signal handler.
* - sigaction: Examines and changes a signal action.
* - sigemptyset: Initializes an empty signal set.
* - sigaddset: Adds a signal to a signal set.
* - kill: Sends a signal to a process.
* - exit: Terminates the calling process.
* - getcwd: Gets the current working directory.
* - chdir: Changes the current working directory.
* - stat: Gets file status.
* - lstat: Gets file status, not following symbolic links.
* - fstat: Gets file status of an open file descriptor.
* - unlink: Deletes a name from the filesystem.
* - execve: Executes a program.
* - dup: Duplicates a file descriptor.
* - dup2: Duplicates a file descriptor to a specific value.
* - pipe: Creates a pipe.
* - opendir: Opens a directory stream.
* - readdir: Reads a directory entry.
* - closedir: Closes a directory stream.
* - strerror: Returns a string describing an error number.
* - perror: Prints a description of the last error.
* - isatty: Tests if a file descriptor refers to a terminal.
* - ttyname: Returns the name of the terminal associated with a file descriptor.
* - ttyslot: Returns the index of the current user's terminal.
* - ioctl: Manipulates the underlying device parameters of special files.
* - getenv: Gets an environment variable.
* - tcsetattr: Sets the parameters associated with the terminal.
* - tcgetattr: Gets the parameters associated with the terminal.
* - tgetent: Loads a terminal entry from the termcap database.
* - tgetflag: Gets a boolean entry from the termcap database.
* - tgetnum: Gets a numeric entry from the termcap database.
* - tgetstr: Gets a string entry from the termcap database.
* - tgoto: Computes a cursor movement string.
* - tputs: Outputs a string with padding.