文件系统编程.pptVIP

  • 14
  • 0
  • 约2.47万字
  • 约 122页
  • 2016-12-10 发布于北京
  • 举报
文件系统编程

* chmod()/fchmod()系统调用示例 文件属性及目录相关系统调用 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile . Copyright 2004-2011 Aspose Pty Ltd. * chown()/fchown()/lchown()系统调用 功能 变更文件宿主 头文件 #include sys/types.h #include unistd.h 函数原型 int chown(const char *path, uid_t owner, gid_t group); int fchown(int fd, uid_t owner, gid_t group); int lchown(const char *path, uid_t owner, gid_t group); 若path为符号连接, lchown()改变连接本身的所有者或组,chown()则改变连接所指向文件的所有者或组 返回值 成功时返回0 失败返回-1 文件属性及目录相关系统调用 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile . Copyright 2004-2011 Aspose Pty Ltd. * lin

文档评论(0)

1亿VIP精品文档

相关文档