文件名称:ivi_ls
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- i**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
目的:
1、应用UNIX的fork()等系统调用,编写一个c程序具有以下功能:
a) 实现Shell的基本功能,包括有:打印提示符;
接受和分析命令行(滤去无效的空格、tab符号以及换行符等);
执行命令(要有出错处理;输入exit或者bye退出);返回父进程;
b) 处理后台程序(不需要wait)
c) 处理多行命令(分析命令行中的‘ ’并处理之)
d)应用 dup(), pipe()系统调用具有输入输出重定向以及管道功能;-Objective: 1, Application of UNIX-fork () system call, such as the preparation of a c program has the following features: a) the realization of the basic functions of Shell, including: print prompt accepted and analysis of the command line (least squares void spaces, tab symbols, as well as line breaks, etc.) the implementation of the command (must be an error to deal with enter or exit from the bye) return to the parent process b) the procedures to deal with the background (no wait) c) to deal with multi-line command (command-line analysis of the ' ' and processing) d) Application of dup (), pipe () system call with the input and output redirection and pipes function
1、应用UNIX的fork()等系统调用,编写一个c程序具有以下功能:
a) 实现Shell的基本功能,包括有:打印提示符;
接受和分析命令行(滤去无效的空格、tab符号以及换行符等);
执行命令(要有出错处理;输入exit或者bye退出);返回父进程;
b) 处理后台程序(不需要wait)
c) 处理多行命令(分析命令行中的‘ ’并处理之)
d)应用 dup(), pipe()系统调用具有输入输出重定向以及管道功能;-Objective: 1, Application of UNIX-fork () system call, such as the preparation of a c program has the following features: a) the realization of the basic functions of Shell, including: print prompt accepted and analysis of the command line (least squares void spaces, tab symbols, as well as line breaks, etc.) the implementation of the command (must be an error to deal with enter or exit from the bye) return to the parent process b) the procedures to deal with the background (no wait) c) to deal with multi-line command (command-line analysis of the ' ' and processing) d) Application of dup (), pipe () system call with the input and output redirection and pipes function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ivi_ls.c