#include #include #include #include int main() { int fd; umask(0); fd = open("aaa", O_CREAT| O_TRUNC | O_RDWR , 0666 ); close(fd); return 0; }