[Gllug] Off Topic: C File Descriptors

salsaman at xs4all.nl salsaman at xs4all.nl
Mon Mar 10 03:02:50 UTC 2008


On Mon, March 10, 2008 00:55, Tethys wrote:
> --------
>
> salsaman at xs4all.nl writes:
>
>>> /include/linux/limits.h defines the max path length as 4096
>>
>>Hmmm...it must have increased since I last looked...:-/
>
> ...which is exactly why you should be use PATH_MAX rather than
> a hardcoded number!
>
> Tet
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
>


/usr/include/bits/posix1_lim.h:#define  _POSIX_PATH_MAX         256


I think you will find 512 > 256


Gabriel.


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list