From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.omnisys.se (static-213-115-84-26.sme.bredbandsbolaget.se [213.115.84.26]) by ozlabs.org (Postfix) with ESMTP id 0EFB5DDF57 for ; Sat, 3 Feb 2007 02:03:59 +1100 (EST) Message-ID: <45C352DB.8070409@omnisys.se> Date: Fri, 02 Feb 2007 16:03:55 +0100 From: Magnus Hjorth MIME-Version: 1.0 To: Daniel Ng Subject: Re: ELDK glibc fcntl(socketFd, F_SETFL, flags) causes Seg Fault References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Daniel Ng wrote: > Hi, > > My application Seg Faults when I try to set flags for my socket fd. > > Then I try getting the fd flags: > fcntl(fd, F_GETFL, flags) > Shouldn't it be &flags ?? -- Magnus Hjorth, M.Sc. Omnisys Instruments AB Gruvgatan 8 SE-421 30 Västra Frölunda, SWEDEN Phone: +46 31 734 34 09 Fax: +46 31 734 34 29 http://www.omnisys.se