Re: sys_tee

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux