What is the equivalent of Createfile() in linux

Hi
May I know what the equivalent of Create file is in linux?
thanks
That would be open():
http://linux.die.net/man/2/open
I mean this one

"
CreateFile( szPort, GENERIC_READ | GENERIC_WRITE , 0, NULL , OPEN_EXISTING , FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL );
"
I know what you meant.

See http://linux.die.net/man/2/open
FILE_FLAG_OVERLAPPED?

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