All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Use PATH_MAX for pathname char arrays.
@ 2008-04-04 14:17 Samuel Thibault
  2008-04-04 14:30 ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2008-04-04 14:17 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-04 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 14:17 Use PATH_MAX for pathname char arrays Samuel Thibault
2008-04-04 14:30 ` Keir Fraser
2008-04-04 14:51   ` Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.