1 Star 0 Fork 0

GG_Colin/wshell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wshell.h 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
wuyve 提交于 2014-04-14 19:58 +08:00 . adjust indent;add signal function for SIGCHLD
/*
* =====================================================================================
* Filename: wshell.h
* Description:
* Version: 1.0
* Created: 2013.10.16 20h15min26s
* Author: wuyue (wy), vvuyve@gmail.com
* Company: UESTC
* =====================================================================================
*/
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <pwd.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#define MAX_PROMPT 1024
#define MAXLINE 4096 //the length of all args is ARG_MAX
#define MAXARG 20
struct parse_info;
struct passwd *pwd;
char *buffer;
void type_prompt(char*);
int read_command(char **,char **,char*);
int builtin_command(char *,char **);
int parsing(char **,int,struct parse_info *);
void proc(void);
void sig_handler(int sig);
#ifndef STRUCT_PARSE_INFO
#define STRUCT_PARSE_INFO
#define BACKGROUND 1
#define IN_REDIRECT 2
#define OUT_REDIRECT 4
#define OUT_REDIRECT_APPEND 8
#define IS_PIPED 16
struct parse_info
{
int flag;
char* in_file;
char* out_file;
char* command2;
char** parameters2;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/GG_Colin/wshell.git
git@gitee.com:GG_Colin/wshell.git
GG_Colin
wshell
wshell
master

搜索帮助