In a recent note, Phil Sidler said:

> Date:         Fri, 22 Dec 2006 10:38:42 -0600
> 
> #pragma runopts(PLIST(OS))
> 
> struct parm {
>   short parm_len;
>   char  parm_data[32767];  /* not the real size of the array */
>   };
> 
But this assumes that there's a halfword count field, supplied by
linkmvs but not by linkpgm, and not part of the interface for (e.g.):

o CSNBOWH, etc.

>     strncpy(ts, parmp->parm_data, MIN(sizeof(ts)-1, parmp->parm_len));
> 
and this assumes the parms contain no binary zero bytes; again
not a safe assumption for:

o CSNBOWH, etc.

o alternate DDNAME lists for utilities.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to