Stephen Rothwell <[EMAIL PROTECTED]> wrote:
> This patch introduces compatibility syscalls for read and write and the
> equivalent hooks in struct file_operations. These are neede to support
> the badly designed (i.e. broken) input layer evdev read and write
> interfaces.
Should this also extend to the pread/pwrite syscalls?
> +asmlinkage ssize_t sys_write(unsigned int fd, const char __user * buf,
> + size_t count)
> +{
> + return do_sys_write(fd, buf, count, 0);
> +}
I think my biggest objection to this is that it'll stick another "frame" on
the stack. For something like this the compiler probably can't tail-call, at
least not on archs like i386 where the extra argument is passed on the stack.
For an arch that passes at least the first four arguments in registers, it
probably can, but I don't know that it will. Have you waved this in front of
any compiler hackers?
David