Re: sys_tee

From: Jan Engelhardt
Date: Tue Apr 11 2006 - 06:56:51 EST



>Here follows an implementation of sys_tee. It works a little differently
>that one might expect from the name (hence it might need a change).

>So to implement an efficient tee, one would do something like:
>
> /*
> * Duplicate stdin to stdout
> */
> len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, SPLICE_F_NONBLOCK);

Creating new syscalls (and therefore library calls) always has potential of
conflicting with user functions. Maybe new sys-lib-calls should show up as
kernel_* under userspace.



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