Willem
8/13/2008 12:30:00 PM
ansh wrote:
) Hi Guys,
)
) I am working with the porting of librpc from BSD to Linux, below is
) the code snippet from the librpc(BSD)
)
) --------------------------------
) sfd = open(fbuf, O_WRONLY | O_NONBLOCK);
) if (sfd < 0) {
) goto error;
) }
)
) sts = pipe(pfds);
) if (sts < 0) {
) goto error;
) }
)
) sts = sfd_nonblock(pfds[0]);
) sts |= sfd_nonblock(pfds[1]);
) if (sts != 0) {
) goto error;
) }
)
) sts = ioctl(sfd, FIOSENDFD, pfds[0]);
) if (sts < 0) {
) goto error;
) }
)
) /* close the daemon's end of the pipe */
) close(pfds[0]);
)
) /* close the fifo */
) close(sfd);
)
) /* return our end of the pipe */
) return pfds[1];
) ------------------------------------
)
) I need to port this code in linux, but there is no ioctl called
) FIOSENDFD in Linux, Can someone tell me about an identical ioctl or
) function in Linux that has the same functionality as FIOSENDFD.
Somebody in comp.unix.programmer can probably answer your question,
a lot better than anyone on this group can.
Followups set to that group.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT