Re: Thread implementations...

yodaiken@chelm.cs.nmt.edu
Fri, 26 Jun 1998 07:40:51 -0600


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