aakash berde wrote:
> Hi ,
>
> I am having one query for ioctl()
> I have a source code written on linux. the code uses the system calls
> like ioctl(fd,request,arg)
> mq_send(),mq_open(),mq_receive, etc....
>
> can we port the same code from linux to solaris system?
> shall same ioctl() will work on solrais?
Without knowing exactly what ioctl it is you are calling and what fd is
pointing too it is impossible to say.
As for mq_send() etc see the Solaris man pages.
> I am asking this because ioctl.h file on solaris and linux is totally
> different. I just can not understand why so much difference.
Don't read the header files read the documentation. Header files aren't
documentation. They are different because they are implemented differently.
> If anyone know how to use ioctl function on solaris please help in
> describing with one detailed example.I hope any from solrais gurus must
> have one nice example for using ioctl() on solaris.
Read the man page and search the existing Solaris source.
> the base code is for 32 bit linux and I am working on 64 bit solaris
> kernel. Is this is the reason that same ioctl function is not working
> here.After some study I found that the _IOWR("r",20,struct var) is
> also declared differently on linux and solaris .
What ioctl function ?
--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code