当前位置: 技术问答>linux和unix
umask问题
来源: 互联网 发布时间:2016-03-20
本文导语: 《unix环境高级编程》一段代码 #include #include #include #include "ourhdr.h" int main(void) { umask(0); if(creat("foo",S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
《unix环境高级编程》一段代码
#include
#include
#include
#include "ourhdr.h"
int main(void)
{
umask(0);
if(creat("foo",S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
#include
#include
#include
#include "ourhdr.h"
int main(void)
{
umask(0);
if(creat("foo",S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)