Q: pstring size. OpenVMS 7.2 Alpha has 4096 character pathnames.

John E. Malmberg wb8tyw at qsl.net
Fri Jun 16 14:12:43 GMT 2000

Steve Langasek <vorlon at netexpress.netwrote> wrote:

> On Fri, 16 Jun 2000, John E. Malmberg wrote:
> > Since a complete path in OpenVMS is now 4096 characters, it looks like I
> > would need to change SMB.H to be the following:
> > #ifndef MAX_FILEPATH
> > #define MAX_FILEPATH 1024
> > #endif
> > typedef char pstring[MAX_FILEPATH];
> I think you're right that 'pstring' means 'path string', but pstrings are
> in many other places in the code now for things other than path.  I think
> some cases fairly long strings are needed, even on systems that are
limited to
> much shorter file paths.  As long as your detection code never sets
> MAX_FILEPATH to be /less/ than 1024, it should work.  (I don't know if
> systems have a MAX_FILEPATH defn. in their headers; if so, perhaps a
> samba name would be better?)

MAX_FILEPATH is a name that I made up.  The actual constant is an OpenVMS
specific one.

I am currently not remembering if there is any standard C header constant
for a maximum file size.

I do not have any detection code at present.  Configure will not work for
OpenVMS for a number of reasons, so the makefile and config.h must be hand

wb8tyw at qsl.network

More information about the samba-technical mailing list