pwrite syscall

Paul Mackerras (paulus@cs.anu.edu.au)
Tue, 20 Oct 1998 22:05:27 +1000


I got this message from a guy who is working on glibc 2 for powerpc:

> pwrite() seems to fail with EINVAL when it is called with a file
> offset beyond the EOF; but lseek() then write() wouldn't fail in those
> circumstances...

and indeed, sys_pwrite in fs/read_write.c doesn't seem to do
everything that lseek() followed by write() would do, in particular it
doesn't call the file's file->f_op->llseek procedure. I don't know if
that's the problem; I can get more details from this guy about what
kind of file he was using if necessary.

Comments?

Paul.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/