Linux 系统库函数 -- dup 和 dup2
来源:互联网 发布:西交大网络教育 编辑:程序博客网 时间:2024/05/04 07:16
The dupsystem calls provide a way of duplicating a file descriptor, giving us two or more different descriptors that access the same file. These might be used for reading and writing to different locations in the file. The dupsystem call duplicates a file descriptor, fildes, returning a new descriptor. The dup2 system call effectively copies one file descriptor to another by specifying the descriptor to use for the copy.
Here’s the syntax:
#include
int dup(int fildes);
int dup2(int fildes, int fildes2);
These calls can also be useful when you’re using multiple processes communicating via pipes.
- Linux 系统库函数 -- dup 和 dup2
- Linux系统调用dup()和dup2()
- linux下dup和dup2
- Linux-dup和dup2函数
- Linux 中 dup 和 dup2 函数剖析
- linux之dup和dup2函数解析
- dup和dup2两个函数 -- linux函数
- linux之dup和dup2函数解析
- linux之dup和dup2函数解析
- linux开发--dup和dup2函数解析
- Linux下开发-dup和dup2
- dup/dup2系统调用
- linux dup()/dup2()函数
- linux dup()\dup2()函数
- linux dup与dup2
- Linux dup() dup2()函数
- linux dup/dup2
- linux dup dup2刍议
- jstl format number ,format date
- 一个更好的PrintWriter类
- 基于WinCE的嵌入式系统注册表的研究
- 困死了
- Visual Studio设置远程调试
- Linux 系统库函数 -- dup 和 dup2
- ubuntu 命令合集
- 测试分类
- c3po 配置文件详解
- ubuntu vim使用技巧
- 文本限制大全(直接把名字都拿过来了)
- 3D中国跳棋 (Chinese Checker)
- WinCE 应用程序开机自动运行的又一种方法
- 软件测试种类名词解释(上)