lkml.org 
[lkml]   [1998]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Thread implementations...

What's wrong with ?
/dev/sendfile

struct transmit { int fdin,fdout,count};
struct complete {int countsent, errorin,errorout}

/* implement sendfile */
sendfile(fd1,fd2,count) {
int fd;
struct transmit t;
struct complete r;

fd = open("/dev/sendfile",2,synchronous);
transmit.fdin = f1;
transmit.fdin = f2;
write(fd,&transmit,sizeof transmit); /* ask to transfer */
read(fd,&complete, sizeof complete); /* read status */
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.149 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site