aboutsummaryrefslogtreecommitdiffstats
path: root/include/builtin.h
blob: 1b6baf25b6503ea3bf03389bcd892732e77a64bb (plain)
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
/*
 * include/builtin.h
 *
 * HUSH builtin commands module
 * CISC 301 -- Operating Systems, Project 2
 *
 * Copyright (C) 2025  Douglas B. Rumbaugh <dbrumbaugh@harrisburgu.edu>
 *
 * Distributed under the Modified BSD License
 *
 */
#ifndef H_HUSH_BUILTIN
#define H_HUSH_BUILTIN

#include <limits.h>
#include <unistd.h>

#include "command.h"
#include "variables.h"

/* 
 * Check if the provided command corresponds with a known built-in
 * function. If so, run the builtin and return true. If not, return
 * false. 
 */
bool run_builtin(command *cmd);

#endif