FILENAME_MAX & _POSIX_PATH_MAX relationship?

Chuck Karish karish at mindcraft.com
Wed Apr 10 09:46:23 AEST 1991


Submitted-by: karish at mindcraft.com (Chuck Karish)

In article <127638 at uunet.UU.NET> steve at unidata.ucar.edu (Steve Emmerson) writes:
>Would someone who knows please tell me the relationship between the
>Standard C macro FILENAME_MAX and the POSIX macro _POSIX_PATH_MAX.
>
>In particular, should they be the same, or should FILENAME_MAX
>correspond instead to _POSIX_NAME_MAX.

_POSIX_PATH_MAX is more appropriate.  Standard C has no notion of a
path prefix.  Clause 4.9.1 of both the Standard and its rationale
tells us that a buffer of FILENAME_MAX characters should hold
the entire file name (what POSIX.1 would term the 'path').

	Chuck Karish		karish at mindcraft.com
	Mindcraft, Inc.		(415) 323-9000


Volume-Number: Volume 23, Number 26



More information about the Comp.std.unix mailing list