ToB企服应用市场:ToB评测及商务社交产业平台

标题: Ubuntu 下 nginx-1.24.0 源码分析 - ngx_open_file [打印本页]

作者: 天津储鑫盛钢材现货供应商    时间: 10 小时前
标题: Ubuntu 下 nginx-1.24.0 源码分析 - ngx_open_file
ngx_open_file


定义在src/os/unix/ngx_files.h
  1. #define ngx_open_file(name, mode, create, access)                            \
  2.     open((const char *) name, mode|create, access)
复制代码

  1. #define NGX_FILE_RDONLY          O_RDONLY
  2. #define NGX_FILE_WRONLY          O_WRONLY
  3. #define NGX_FILE_RDWR            O_RDWR
  4. #define NGX_FILE_CREATE_OR_OPEN  O_CREAT
  5. #define NGX_FILE_OPEN            0
  6. #define NGX_FILE_TRUNCATE        (O_CREAT|O_TRUNC)
  7. #define NGX_FILE_APPEND          (O_WRONLY|O_APPEND)
  8. #define NGX_FILE_NONBLOCK        O_NONBLOCK
复制代码

1. #define NGX_FILE_RDONLY O_RDONLY



2. #define NGX_FILE_WRONLY O_WRONLY



3. #define NGX_FILE_RDWR O_RDWR



4. #define NGX_FILE_CREATE_OR_OPEN O_CREAT



5. #define NGX_FILE_OPEN 0



6. #define NGX_FILE_TRUNCATE (O_CREAT|O_TRUNC)



7. #define NGX_FILE_APPEND (O_WRONLY|O_APPEND)



8. #define NGX_FILE_NONBLOCK O_NONBLOCK



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4