From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10223 invoked by alias); 12 May 2006 12:06:33 -0000 Received: (qmail 10211 invoked by uid 22791); 12 May 2006 12:06:31 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 May 2006 12:06:29 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1FeWPK-0006DE-00; Fri, 12 May 2006 14:06:10 +0200 Date: Fri, 12 May 2006 12:06:00 -0000 To: aditya veer singh Cc: ecos-discuss@sourceware.org Message-ID: <20060512120610.GB23687@lunn.ch> Mail-Followup-To: aditya veer singh , ecos-discuss@sourceware.org References: <20060512112600.M51510@cdotd.ernet.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060512112600.M51510@cdotd.ernet.in> User-Agent: Mutt/1.5.11+cvs20060403 From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] fcntl error X-SW-Source: 2006-05/txt/msg00098.txt.bz2 On Fri, May 12, 2006 at 05:56:38PM +0630, aditya veer singh wrote: > > > When I try to set a file descriptor as non blocking using system call: > fcntl(fd, F_SETFL, O_NONBLOCK) it returns an error during call of FILEIO_RETURN. > fd provided for the function is a valid one. > > Can someone provide me with few pointers as what can be possibly wrong with the above call? The quickest way to understand this is simply single step the function call and find out where the error occurs. Use the source since you have it. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss