int chown(const char *path, uid_t owner, gid_t group);
int fchown(int fd, 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);
三个函数返回值:
成功返回0;
出错返回-1;
本文介绍了chown系列函数,包括intchown、fchown和lchown,这些函数用于改变文件的所有者和组。文章详细解释了这些函数的参数含义及返回值,指出在操作成功时返回0,在出现错误时返回-1。
577

被折叠的 条评论
为什么被折叠?



