getfh() systemcall

Kishore Seshadri kseshadr at quasar.intel.com
Wed Jul 18 01:09:14 AEST 1990


In article <1990Jul16.161053.4685 at duc220.uni-duisburg.de>, hz247bi at duc220 (Bieniek) writes:
>
>Hello,
>could someone be so nice and explain me the usage of the getfh
>systemcall which is available on machines running NFS-Kernels ?
>I know, it's a "read the funny source" Question, but I do not have
>access to BSD Kernel or Sun NFS sources.
>
On SunOS, the new getfh (4.x) takes a pathname:

int getfh(path, fh)
char *path;
fhandle_t *fh;

The old getfh took a file descriptor, so

getfh((char *)fd, fh)


works where fd is a file descriptor returned by open().


Kishore Seshadri
===============================================================================
Kishore Seshadri (Speaking only for myself) Intel Corp., Santa Clara, CA
CSNET: kseshadr at mipos3.intel.com ARPA: kseshadr%mipos3.intel.com at relay.cs.net
UUCP:{amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!kseshadr



More information about the Comp.unix.wizards mailing list