Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!shelby!medisg.stanford.edu!news From: mtm@CAMIS.Stanford.EDU (Mike Macgirvin) Newsgroups: comp.unix.internals Subject: obtaining mntent structure from pathname Message-ID: <1991Feb13.214629.21193@medisg.Stanford.EDU> Date: 13 Feb 91 21:46:29 GMT Sender: news@medisg.Stanford.EDU Distribution: usa Organization: Stanford School of Medicine Lines: 8 I am looking for an easy way of obtaining a mntent structure for a device given a pathname on that device. This is SunOS4.1.1. There has to be a better way than scanning through getmntent(), and trying to determine if pathname is somehow related to mnt_dir..... mtm@CAMIS.Stanford.EDU