⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.h

📁 Linux下写一个命令解释程序,实现了基本的功能.
💻 H
字号:
/* This file defines the common header files and some macro. */

#if! defined (__COMMON_H_)
#define __COMMON_H_

#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/stat.h>

#define MAX_COMMAND_LEN 1024

#define BUFF_SIZE 512

#define INCREMENT_LEN 5

#define JOB_STATUS_FORMAT "[%d] %-22s %.40s\n"

#endif /* __COMMON_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -