[第五章linux系统接口.pptVIP

  • 2
  • 0
  • 约8.64千字
  • 约 39页
  • 2017-01-06 发布于北京
  • 举报
[第五章linux系统接口

2-2 open/close与creat/unlink #include fcntl.h #include sys/types.h #include sys/stat.h int open(char *name, int flags);或 int open(char *name, int flags, mode_t mode); 成功返回文件描述符(非负数),失败返回负数。 O_RDONLY O_WRONLY O_RDWD …. …. 指明文件的权限 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 2-2 open/close与creat/unlink #include fcntl.h #include sys/types.h #include sys/stat.h int creat(char *name, mode_t mode); 成功返回文件描述符(非负数),失败返回负数。 指明文件的权限 open()函数的flag | O_CREAT也可以用创建新文件 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profi

文档评论(0)

1亿VIP精品文档

相关文档