On Sun, Ashok Nair wrote: > James, > > Thanks, Can you clarify a bit about how library call to librpcsvc.so.1 can > resolve to a function defined in mount.c? I was expecting the function to be > defined in librpcsvc.so.1. I dont have any prior experince in the build > process.
Technically, it doesn't. The source file that contains xdr_mountres3() is automatically generated with the use of the rpcgen command when the library is built. The .x file used as input is mount.x and that file can be found at usr/src/head/rpcsvc/mount.x Check out usr/src/lib/librpcsvc/Makefile for the details. The use of xdr_mountres3() in the mount command in the usr/src/stand/lib/fs/nfs is there because of the requirements for initial boot environments. By this I mean that the mount.c in that directory has been hand crafted to reduce the use of libraries to a minimum set where possible. Spencer _______________________________________________ opensolaris-discuss mailing list [email protected]
