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 To: cygwin AT cygwin DOT com From: Jason Curl Subject: Re: select() read() and write() on /dev/console Date: Sun, 21 Nov 2004 19:00:42 +0100 Lines: 39 Message-ID: References: <20041119183842 DOT GB26102 AT trixie DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 83.133.10.166 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) In-Reply-To: <20041119183842.GB26102@trixie.casa.cgf.cx> X-IsSubscribed: yes Christopher Faylor wrote: > On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote: > >>My question, how do I go about investigating what the root cause is? Has >>anybody else seen similar issues and been able to work around it? I'm >>stuck and I've never seen the source code to cygwin before. > > > If you suspect a problem with the cygwin DLL then you can build a > debugging version of the cygwin DLL and debug it using gdb. > > Most of the console handling is in fhandler_console.cc. The select > handling is in select.cc. Look for the string "console" there. > > Instructions for building the DLL are in the FAQ: > > http://cygwin.com/faq/faq_3.html#SEC101 > Hello, Is there a way I can use debug_printf() inside C source (not C++). I've found and . Googling and I don't find information about what I need to include, and probably what I need to link. #define TRACE #include #include int main(void) { debug_printf("TEST\n"); } It won't link, not finding _err_handler. Thanks in advance. Jason. -- 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/