[64] in arla-drinkers
Re: fs does not work?
daemon@ATHENA.MIT.EDU (Assar Westerlund)
Fri Jun 26 16:29:17 1998
From arla-drinkers-request@sundance.stacken.kth.se Fri Jun 26 20:29:16 1998
Return-Path: <arla-drinkers-request@sundance.stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 17596 invoked from network); 26 Jun 1998 20:29:15 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 26 Jun 1998 20:29:15 -0000
Received: from ZORKMID.MIT.EDU (ZORKMID.MIT.EDU [18.70.0.83])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id WAA24120
for <arla-drinkers@stacken.kth.se>; Fri, 26 Jun 1998 22:24:05 +0200 (MET DST)
Received: (from assar@localhost) by ZORKMID.MIT.EDU (8.8.5/8.7.3) id WAA00364; Fri, 26 Jun 1998 22:25:22 +0200 (MET DST)
To: amu@mit.edu (Aaron M. Ucko)
Cc: Derrick J Brashear <shadow@dementia.org>, arla-drinkers@stacken.kth.se
Subject: Re: fs does not work?
References: <udlu3582ujb.fsf@dorm-s-007-m.FDU.EDU>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: text/plain; charset=US-ASCII
From: Assar Westerlund <assar@sics.se>
Date: 26 Jun 1998 22:25:21 +0200
In-Reply-To: amu@mit.edu's message of "26 Jun 1998 08:54:00 -0400"
Message-ID: <5lemwbap1q.fsf@ZORKMID.MIT.EDU>
Lines: 17
X-Mailer: Gnus v5.5/Emacs 19.34
amu@mit.edu (Aaron M. Ucko) writes:
> > It seems to me that these functions should return the number of bytes
> > not copied.
>
> Right.
Thanks for confirming this.
> > + return EFAULT;
>
> Reminder: Linux syscalls report EWHATEVER by returning -EWHATEVER (in
> which case libc sets errno and reports -1 to the user).
Right. I got confused by the (wrong) return of EINVAL a little bit
further down in the code. I have fixed it now.
/assar