>Is there a way to avoid the |PATH_MAX| limit for readlink(2) ? ksh93 has
>almost no limitations for filename/string/array/etc. size except that
>one place uses |PATH_MAX| as argument to readlink(2). Is there somehow a
>way to work around this limit ?


Not much different then that no system call allows you give a pathname
over 1024 bytes.


You can pass a larger argument to readlink but I'm not sure the
code will return that larger argument (surely it does not seem to do
so for paths under /proc/*/path.

Note that you cannot create such links in Solaris.

Casper
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to