I am trying to create a write only file in c on Linux (ubuntu). This is my code:
int fd2 = open ("/tmp/test.svg", O_RDWR|O_CREAT);
if (fd2 != -1) {
//....
}
But why the file I created are in 'xr' mode? How can I create it so that I can open it myself at command prompt?
------xr-- 1 michael michael 55788 2010-03-06 21:57 test.txt*
------xr-- 1 michael michael 9703 2010-03-06 22:41 test.svg*
Thank you.