What is the equivalent of Createfile() in linux

Jun 8, 2011 at 11:11am
Hi
May I know what the equivalent of Create file is in linux?
thanks
Jun 8, 2011 at 11:17am
That would be open():
http://linux.die.net/man/2/open
Jun 8, 2011 at 11:20am
I mean this one

"
CreateFile( szPort, GENERIC_READ | GENERIC_WRITE , 0, NULL , OPEN_EXISTING , FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL );
"
Jun 8, 2011 at 11:23am
I know what you meant.

See http://linux.die.net/man/2/open
Jun 8, 2011 at 11:38am
FILE_FLAG_OVERLAPPED?

BTW, FILE_ATTRIBUTE_NORMAL doesn't do anything.
Topic archived. No new replies allowed.