[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: Use PATH_MAX for pathname char arrays.
If there are better alternatives I'd be happy to use them instead. But we already use PATH_MAX elsewhere in the tools, so this might be a wider-ranging cleanup than you think. The original impetus for this change was due to bugchecks applied in some cases by glibc's realpath() implementation. But actually is realpath() deprecated anyway? -- Keir On 4/4/08 15:17, "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx> wrote: > Hello, > > Using PATH_MAX is not a good idea: POSIX says that that definition > is facultative, in case the system does not impose any limit on path > length. Some systems may also set PATH_MAX to a quite high value, and > we would hence consume a lot of stack. > > Samuel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |