From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mario Smarduch Date: Thu, 14 Nov 2002 16:09:34 +0000 Subject: Re: [Linux-ia64] Re: memcpy failure Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Matthew Wilcox wrote: > On Thu, Nov 14, 2002 at 10:01:44AM +010-, Christian Cotte-Barrot wrote: > > But memcpy from memcpy.S is returning a pointer to dest area. > > That would lead to quasi non-portable code when the return from memcopy > > is correctly checked depending on which memcopy function is addressed. > > But BTW, is it meaningful to take into account a return code > > that is always the same and which value is known in advance ? > > Does memcpy suppose to failed in some cases ? > > no, memcpy cannot fail (you get a SIGSEGV in userspace or an MCA in > kernel space). checking the return value is meaningless. > > -- > Revolutions do not require corporate support. > > _______________________________________________ > Linux-IA64 mailing list > Linux-IA64@linuxia64.org > http://lists.linuxia64.org/lists/listinfo/linux-ia64 > Aren't all these routines suppose to return -EFAULT if a fault occurs? - Mario.