Hi All,
This is Arul from Chennai - India, i'm so happy to
talk with you all by this mail.
fattach returns -1 ...... hereby i have attached my
sample code.... can any one of you correct me if did
any mistakes.....
#define PATH "./TestPath"
main()
{
int fd[2];
if( pipe(fd) < 0 ) {
printf("Error in Pipe Creation...\n");
fflush(stdout);
exit(-1);
}
if( access( PATH, F_OK ) == -1 ) {
if(mknod( PATH, S_IFIFO | S_IRWXU, 0 ) == -1 {
printf("Error in mknod ...\n");
fflush(stdout);
exit(-1);
}
if( fattach( fd[1], PATH ) == -1 ) {
printf("Error in fattach ...\n");
fflush(stdout);
exit(-1);
}
......
}
the above program compiled in Red Hat Linux 7.2 LiS
2.13.13 ....it compiles.....
but the fattach function return -1....
why the fattach function returns -1 ....?
did i write wrong syntax....? pls let me know.....
Thanks lot.....
Regards
Arulanandu
Senior Programmer
Pentasoft Technology P Ltd,
Chennai, India
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams