> Date: Tue, 11 Jul 2006 21:47:56 +0200
> From: Roland Mainz <roland.mainz at nrubsig.org>
> X-Accept-Language: en
> MIME-Version: 1.0
> To: April Chin <April.Chin at eng.sun.com>, Korn Shell 93
> integration/migration
project discussion <ksh93-integration-discuss at opensolaris.org>
> Subject: Re: [ksh93-integration-discuss] Minor
nitinlibast/common/features/fs...
> Content-Transfer-Encoding: 7bit
> X-ID: ZGIohvZB8euqjVoa8fcKJ3sLRenM6WGD7zG7KfqBWWWe3ysIp0S7Qm at t-dialin.net
> X-TOI-MSGID: 988b853d-1fef-44f7-97ed-44f7e5d8b148
>
> April Chin wrote:
> > > James Carlson wrote:
> > > > Roland Mainz writes:
> > > > > The only problem is that I can't find a public API to obtain these
> > > > > values... does anyone have a clue how this could be done ?
> > > >
> > > > Those documented files _are_ the public APIs.
> > >
> > > Umpf... so I have to parse it myself ?
> > >
> >
> > Unfortunately, yes. The find command parses /etc/dfs/fstypes...
> > see usr/src/cmd/find/find.c, init_remote_fs().
>
> Mhhh... we can't make a library for such purposes (for example called
> libsolariscommons.so) and store the common code there ?
>
If we did add such an interface, it would be appropriate to add it
to the existing private library libcmdutils, which already has some
private interfaces used by various commands. The interfaces are
"consolidation private", so they are only used by the ON consolidation--
which is basically the code you see in Open Solaris.
April
> ----
>
> Bye,
> Roland
>
> --
> __ . . __
> (o.\ \/ /.o) roland.mainz at nrubsig.org
> \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
> /O /==\ O\ TEL +49 641 7950090
> (;O/ \/ \O;)