- 博客(2)
- 收藏
- 关注
原创 Linux C 文件IO (2)
一.dup() dup2() dup3()函数原形:#include <unistd.h>int dup(int oldfd); int dup2(int oldfd, int newfd);#define _GNU_SOURCE /* Seefeature_test_macros(7) */ #include <fcntl.h> /* Obtain O_* constant de
2017-03-09 13:59:07 233
原创 Linux C文件IO (1)
一.创建/打开文件函数原形: #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode) i
2017-03-08 16:46:22 285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人