1 <!-- $XConsortium: h_netf_f.sgm /main/7 1996/09/08 20:12:52 rws $ -->
2 <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
3 <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
4 <!-- (c) Copyright 1995 International Business Machines Corp. -->
5 <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
6 <!-- (c) Copyright 1995 Novell, Inc. -->
7 <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
8 <!-- (c) Copyright 1995 Hitachi. -->
10 <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN79.rsml.1">]]>
11 <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN79.rsml.1">]]>
13 <RefEntryTitle>tt_host_netfile_file</RefEntryTitle>
14 <ManVolNum>library call</ManVolNum>
17 <RefName><Function>tt_host_netfile_file</Function></RefName>
18 <RefPurpose>map between canonical and local pathnames on a remote host
21 <!-- $XConsortium: h_netf_f.sgm /main/7 1996/09/08 20:12:52 rws $-->
22 <!-- CDE Common Source Format, Version 1.0.0-->
23 <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
24 <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
25 <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
26 <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
28 <FuncSynopsis Remap="ANSI">
29 <FuncSynopsisInfo>#include <Tt/tt_c.h>
31 <FuncDef>char <Function>*tt_host_netfile_file</Function></FuncDef>
32 <ParamDef>const char *<Parameter>host</Parameter></ParamDef>
33 <ParamDef>const char *<Parameter>netfilename</Parameter></ParamDef>
37 <Title>DESCRIPTION</Title>
39 <Function>tt_host_netfile_file</Function> function performs a conversion equivalent to that of the
40 &cdeman.tt.netfile.file; function, but performs it on a remote host.
43 <Symbol Role="Variable">host</Symbol> argument
44 is the host on which the file resides.
46 <Emphasis>netfilename</Emphasis> argument is a copy of a null-terminated string returned by
47 &cdeman.tt.netfile.file; or
48 &cdeman.tt.host.netfile.file;.</Para>
51 <Title>RETURN VALUE</Title>
52 <Para>Upon successful completion, the
53 <Function>tt_host_netfile_file</Function> function returns
55 null-terminated string of unspecified format, which can be passed to
56 &cdeman.tt.host.netfile.file;; otherwise, it returns an error pointer.
57 The application can use
58 &cdeman.tt.ptr.error; to extract one of the following
59 <StructName Role="typedef">Tt_status</StructName> values from the returned pointer:
63 <Term>TT_ERR_DBAVAIL</Term>
65 <Para>The ToolTalk database server
66 could not be reached on
67 <Symbol Role="Variable">host</Symbol>, perhaps because the host is unavailable or
68 cannot be reached through the network.
73 <Term>TT_ERR_DBEXIST</Term>
75 <Para>The ToolTalk database server
76 is not properly installed on
77 <Symbol Role="Variable">host</Symbol>.</Para>
81 <Term>TT_ERR_NETFILE</Term>
84 <Emphasis>netfilename</Emphasis> is not a valid netfilename.
89 <Term>TT_ERR_UNIMP</Term>
91 <Para>The ToolTalk database server
92 contacted is of a version that does not support
93 <Function>tt_host_netfile_file</Function>.</Para>
99 <Title>APPLICATION USAGE</Title>
101 &cdeman.tt.file.netfile;, &cdeman.tt.netfile.file;, &cdeman.tt.host.file.netfile; and
102 &cdeman.tt.host.netfile.file; functions allow an
103 application to determine a path valid on remote hosts,
104 perhaps for purposes of constructing a command string valid for remote
105 execution on that host.
106 By composing the two calls, paths for files not accessible from the
107 current host can be constructed.
109 <Filename>/sample/file</Filename> is valid on host A, a program
110 running on host B can use
112 <InformalExample Remap="indent">
113 <ProgramListing>tt_host_netfile_file("C", tt_host_file_netfile("A", "/sample/file"))
116 <Para>to determine a path to the same file valid on host C, if such a
119 <Para>Allocated strings should be freed using either
121 &cdeman.tt.release;.</Para>
123 &cdeman.tt.open; function need not be called before
124 <Function>tt_host_netfile_file</Function>.</Para>
127 <Title>SEE ALSO</Title>
128 <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.file.netfile;, &cdeman.tt.netfile.file;, &cdeman.tt.host.file.netfile;, &cdeman.tt.open;, &cdeman.tt.free;, &cdeman.tt.release;.</Para>
131 <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->