Luciano Rocha ha scritto:
> On Fri, Aug 01, 2008 at 12:46:17PM -0400, Christopher Taylor wrote:
>> Thank you Luciano, seems lke a really great utility but perhaps a bit
>> overkill for what I need.
>>
>> I'm just trying to figure out the correct sequence of systems calls to
>> connect two serial devices in my C program without doing a select/poll
>> and writing the data out to the other device.
>>
>> Basically what it seems like I need is a more advanced verison of pipe
>> where it's duplex and I can tell it what the fd's are instead it
>> telling me what fd's to use.
> 
> Hm, there is a new system call called splice(2) that should do what you
> want. Though it is present only in newer kernels, and I don't the status
> of its support in uclibc.
> 

Hi,
Just a thought:
http://linux.die.net/man/2/sendfile

I don't know how char devices are managed, though.

HTH,
Carlo

> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClibc mailing list
> [email protected]
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc


-- 
Carlo Zinato
Viscount International S.p.A.
R&D Labs, Ancona, Italy
Tel. & fax 0039 071 2905127/2905142
[EMAIL PROTECTED]

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.10/1586 - Release Date: 01/08/2008 
18.59

_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to