LINK_MAX problem.

H.J. Lu hjl@lucon.org
Fri Oct 23 11:57:00 GMT 1998


Hi,

On Linux, LINK_MAX varies depending on the fileystems. But
glibc always returns a fixed value. Can we fix it? I think
we can do this in pathconf

	fstatfs (fd, &buf)

	switch (buf.f_type)
	{
	case EXT2_FS:
	  return EXT2_LINK_MAX;
	  ....
	}

Thanks.


-- 
H.J. Lu (hjl@gnu.org)



More information about the Libc-hacker mailing list