Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 25 May 2003 10:30:10 +0200 From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com> To: cygwin AT cygwin DOT com Subject: Re: using syscall in cygwin? Message-ID: <20030525083010.GF19367@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20030524123851 DOT 34720 DOT qmail AT web15307 DOT mail DOT bjs DOT yahoo DOT com> <20030524175023 DOT GA6768 AT redhat DOT com> <3ED07063 DOT 5030600 AT yahoo DOT com DOT cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ED07063.5030600@yahoo.com.cn> User-Agent: Mutt/1.4.1i On Sun, May 25, 2003 at 03:27:31PM +0800, Kai Liu wrote: > 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? No. In case of Cygwin the syscall *is* open(). Don't mess with it. N.B., there's no glibc involved at all. Cygwin doesn't use glibc but newlib as std C lib. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/