using syscall in cygwin?
Kai Liu
shorthair_liu@yahoo.com.cn
Sun May 25 11:27:00 GMT 2003
Thank you for your response.
I just want to write code using my own open().
How can I implement open() without syscall() to make the system call?
Maybe I need also write my own syscall() which call glibc's open(), and
link them staticly?
Is it reasonable?
Cheers,
Liu
Christopher Faylor wrote:
> On Sat, May 24, 2003 at 08:38:51PM +0800, Liu wrote:
>
>>Hi, all
>>
>>Is it possible to compile the code using syscall in
>>Cygwin like this:
>>
>>rc = syscall(SYS_open, filename, O_CREAT);
>
>
> No.
>
>
>>Where is SYS_open etc declared? I can't find it.
>
>
> That's because it doesn't exist.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list