I am porting some Solaris code to Linux. This code uses the Solaris-specific door functions.
Is there a Linux equivalent? I found a couple of examples but they don’t appear to have been updated for many years.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Wiki says it is an RPC and Solaris-specific at that. On Linux for RPC you can use Corba for the purpose. Googling for “Linux Corba” shows lots of hits.
As portability apparently becomes a concern, first, before the actual porting, converting the application to use some portable RPC framework (Corba probably the most portable) makes a lot of sense. If portability isn’t concern then the D-Bus seems has became the de facto standard for the IPC on Linux.
Door’s article on Wikipedia also mentions that the mechanism also allows to pass list of file descriptors back and forth. On Linux check
man 7 unixfor SCM_RIGHTS.