#include #include #include #include #include int main( int argc, char** argv ) { int f, g; umask( 000 ); f = open("test-file1", O_RDWR | O_CREAT); g = open("test-file2", O_RDWR | O_CREAT); write(f, "test", 4); write(g, "second file", 11); return 0; }