lkml.org 
[lkml]   [2006]   [Apr]   [11]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 11 Apr 2006 12:56:30 +0200 (MEST)
FromJan Engelhardt <>
SubjectRe: sys_tee
>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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-11 10:59    [from the cache]
©2003-2008