更改文件属性
ayanami_rei_devilxq吧
全部回复
仅看楼主
level 5
#include
#include
int main(void){ umask(0); if (creat("foo", S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) < 0) { printf("create error for foo"); getchar(); exit(-1); } umask(S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); if(creat ("bar", S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) < 0) { printf ("create error for bar"); getchar(); exit(-1); } exit(0);}
2005年11月16日 12点11分 1
1