Using remote procedure calls, how can we have shared errno for the server side and client machines?
To clarify, here is the context of my question: I am trying to implement a distributed file system. I aim for a centralized design where I keep files on the server and clients access them through remote procedure call. So when a client opens a file, I call open on the server machine and return a buffer to the client. I want to keep shared errno values so the client will be able to detect a failure on the open call and prints the right error message.