Hi everyone, I have a question on how to find if the given file descriptor is for socket. Assume that we are in the kernel space and I have received a file descriptor so I want to know if this file descriptor is socket file descriptor.
I do not know much of Solaris code but I found out that there is a SOCKET_MAGIC value which we assign to the fs_magic of superblock struct. I assume that each process keeps track of files that it has opened and from there, I might be able to find out whether the given file descriptor is socket file descriptor. Please give me some advice. Thank you very much. Ilho <>< This message posted from opensolaris.org _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
