Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3ED07063.5030600@yahoo.com.cn> Date: Sun, 25 May 2003 15:27:31 +0800 From: Kai Liu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 X-Accept-Language: zh-cn, en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: using syscall in cygwin? References: <20030524123851 DOT 34720 DOT qmail AT web15307 DOT mail DOT bjs DOT yahoo DOT com> <20030524175023 DOT GA6768 AT redhat DOT com> In-Reply-To: <20030524175023.GA6768@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/