title: Linux man page学习之open
date: 2020-07-28 14:23:00
categories: Linux知识
index_img: /img/articles/vim.jpg
tags:
- Linux
- open
本文简介了类UNIX系统下(主要为Linux)的open相关函数的内容。
原型
对于open相关函数的原型为:
#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);
int creat(const char *pathname, mode_t mode);
int openat(int dirfd,