文件I/O函数的封装 read write等 #include #include #include #include #include /* * 创建一个文件 * (1)创建成功 * (2)创建失败 -- 错误类型显示 */ #define PATHNAME "/hello.c" int openIO(){int fd;fd = open(PATHNAME, O_ linux 用户态编程 2023-12-28 150 点赞 2 评论 227 浏览