文件名称:lab5
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- Chu***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
The subject of this programming assignment is using Linux/Unix system calls dealing
with exec and signals.-The application will be a simple “memo” program that accepts lines
of text from the terminal, but then processes them slightly before writing the lines to a file.
To implement this application, you are to write two C programs. The first one will be the
parent program, and will do the following: (1) run the other program in a subprocess (2)
iteratively prompt the user to enter a line of text (3) write each entered line of text to
a temporary file and signal the child. The second program will run as the child, and will
do the following: (1) when signaled by the parent, it will obtain the entered line from the
temporary file (2) it will process/expand each line (as described below) and write the result
out to the output file.
with exec and signals.-The application will be a simple “memo” program that accepts lines
of text from the terminal, but then processes them slightly before writing the lines to a file.
To implement this application, you are to write two C programs. The first one will be the
parent program, and will do the following: (1) run the other program in a subprocess (2)
iteratively prompt the user to enter a line of text (3) write each entered line of text to
a temporary file and signal the child. The second program will run as the child, and will
do the following: (1) when signaled by the parent, it will obtain the entered line from the
temporary file (2) it will process/expand each line (as described below) and write the result
out to the output file.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
readline-LAB3.c
lab5-parent-alt.c
lab5-parent.c
lab5-child-alt.c
lab5-child.c
lab5-parent-alt.c
lab5-parent.c
lab5-child-alt.c
lab5-child.c