Display current working directory – HP Integrity NonStop H-Series User Manual
Page 111

primary
indicates the primary extent size in pages (2048-byte units) of the remote file. primary is
an integer from 1 through 65535. For structured files, the default size is 8 pages. For
unstructured files, the default is determined internally.
secondary
indicates the secondary extent size in pages (2048-byte units) of the remote file. secondary
is an integer from 1 through 65535. For structured files, the default size is 16 pages. For
unstructured files, the default is determined internally. maxextents indicates the maximum
maxextents
indicates the maximum number of extents of the remote file. maxextents is an integer from
1 through 978. The default value is 978 extents.
filetype
for structured file transfer, indicates the type of file:
e: indicates an entry-sequenced file.
k: indicates a key-sequenced file.
r: indicates a relative file.
record-len
indicates the length of the records in a structured file.
pri-key-len
indicates the primary key length in a structured file.
key-offset
indicates the key offset in a structured file.
index-blk-len
indicates the index block length in a structured file.
tag
parameter to be used for the Guardian nowait operation initiated by FTPput_nw.
The return value is -1 if the routine fails. The error number is set accordingly.
For additional information on specifying primary, secondary, and maxextents values, see
File From Remote Host” (page 105)
Display Current Working Directory
The routines FTPpwd and FTPpwd_nw returns the name of the current working directory.
#include "ftpexth"
short FTPpwd(short hd, short proxy, char *buffer,
short limit)
short FTPpwd_nw(short hd, short proxy, char *buffer,
short limit, long tag)
hd
file number.
proxy
1, this command applies to the proxy connection.
0, this command applies to the primary connection.
buffer
data buffer to hold the return data.
API Routines
111