[62] in arla-drinkers
Re: fs does not work?
daemon@ATHENA.MIT.EDU (Aaron M. Ucko)
Fri Jun 26 09:02:49 1998
From arla-drinkers-request@sundance.stacken.kth.se Fri Jun 26 13:02:48 1998
Return-Path: <arla-drinkers-request@sundance.stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 11091 invoked from network); 26 Jun 1998 13:02:48 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 26 Jun 1998 13:02:48 -0000
Received: from dorm-s-007-m.FDU.EDU (fool@dorm-s-007-m.fdu.edu [132.238.75.7])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id OAA21378
for <arla-drinkers@stacken.kth.se>; Fri, 26 Jun 1998 14:54:11 +0200 (MET DST)
Received: (from amu@localhost)
by dorm-s-007-m.FDU.EDU (8.8.5/8.8.5) id IAA15644;
Fri, 26 Jun 1998 08:54:01 -0400
Sender: amu@mit.edu
To: Assar Westerlund <assar@sics.se>
Cc: Derrick J Brashear <shadow@dementia.org>, arla-drinkers@stacken.kth.se
Subject: Re: fs does not work?
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: amu@mit.edu (Aaron M. Ucko)
Date: 26 Jun 1998 08:54:00 -0400
In-Reply-To: Assar Westerlund's message of "26 Jun 1998 09:45:31 +0200"
Message-ID: <udlu3582ujb.fsf@dorm-s-007-m.FDU.EDU>
Lines: 18
X-Mailer: Gnus v5.6.13/Emacs 20.2
<assar@sics.se> (Assar Westerlund) writes:
> Assar Westerlund <assar@sics.se> writes:
> > As for solving it, can anybody tell me copy_{from,to}_user are
> > supposed to return?
>
> It seems to me that these functions should return the number of bytes
> not copied.
Right.
> + return EFAULT;
Reminder: Linux syscalls report EWHATEVER by returning -EWHATEVER (in
which case libc sets errno and reports -1 to the user).
--
Aaron M. Ucko, KB1CJC <amu@mit.edu> (finger amu@monk.mit.edu)