Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- From: Dave Froble <davef@xxxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 00:37:34 -0500
Richard Maher wrote:
So getting back to my original point, is everyone happy with the following $getsyi item code descriptions from the current VMS docs?
SYI$_NODENAME Returns, as a character string, the name of the [scsnode?,decnet?,galaxy?] node in the buffer specified in the item list. Because this name can include up to 15 [why 15?] characters, the buffer length field in the item descriptor should specify 15 (bytes). SYI$_SCSNODE Returns the Galaxy instance name. [Does it really?] Supported only on AlphaServer systems that support partitioning. [My system doesn't support partitioning, I'm stuffed!]
Ah, the disadvantages of languages that don't support dynamic strings.
I guess I'm a bit spoiled. Not trusting anything, I usually trim spaces, nulls, and such from any such data I retrieve, placing the result in a dynamic string. A simple built-in function in BASIC.
From the doc:
nodename
OpenVMS usage:process_name
type: character-coded text string
access: read only
mechanism: by 32- or 64-bit descriptor-fixed-length string
descriptor (Alpha)
mechanism: by 32-bit descriptor-fixed-length string descriptor
(VAX)
Name of the node about which $GETSYI is to return information.
The nodename argument is the 32-bit address (on VAX systems)
or the 32- or 64-bit address (on Alpha systems) of a character
string descriptor pointing to this name string.There doesn't seem to be any limits, min or max, on the fixed length string. The system service doesn't return a byte count of what it actually placed into the buffer. If there is an overrun, I'm assuming the data is truncated. (Better be!) Since it's a fixed length string, you cannot get the length from the descriptor. I'm guessing that proper operation should fill with blanks, a printable character. Filling with nulls would, in my opinion, be inappropriate. It appears the docs do not specify what any fill characters are. No, I'm not happy with that lack in the docs.
-- David Froble Tel: 724-529-0450 Dave Froble Enterprises, Inc. Fax: 724-529-0596 DFE Ultralights, Inc. E-Mail: davef@xxxxxxxxxxxxx 170 Grimplin Road Vanderbilt, PA 15486 .
- References:
- OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- From: BRAD
- Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- From: Richard Maher
- Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- From: Richard Maher
- Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- From: Paul Sture
- Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- From: Richard Maher
- OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- Prev by Date: Re: Moving directories of files to dos
- Next by Date: Re: PHONE error - Invalid specification of node or person. Try again.
- Previous by thread: Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- Next by thread: Re: OT - GETSYI (was:Re: PHONE error - Invalid specification of node or person. Try again.)
- Index(es):
Relevant Pages
|