Linux 系统编程_linux系统编程-CSDN博客网友收藏

Linux 系统编程_linux系统编程-CSDN博客

文章浏览阅读822次。一、文件open函数 打开和创建文件的操作#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio.h>int main(){ int fd = 0; // open 函数会返回一个int类型的变量,用fd变量来保存 fd = open("......
阅读全文