fs does not work?

Aaron M. Ucko amu at mit.edu
Fri Jun 26 14:54:11 CEST 1998


<assar at sics.se> (Assar Westerlund) writes:

> Assar Westerlund <assar at 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 at mit.edu> (finger amu at monk.mit.edu)





More information about the Arla-drinkers mailing list