Andreas Gruenbacher wrote:
On Monday 14 April 2008 14:53:29 Michal Marek wrote:
do I have to add 1 for the leading slash and 1 for the terminating nul byte?). Also, in what case is this value different from 4096 on linux?
pathconf() gives you the buffer size needed; you don't need to add anything. The value on Linux is always 4096 (see include/linux/limits.h).
OK, thanks for confirming my assumption. And I was actually wrong in thinking that new glibc stopped providing PATH_MAX, it was the package not including <limits.h>. So calling pathconf() isn't actually needed here. thanks, Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org