Le Jeu 17 fév 12:31:47 2005, -=MikeP=- écrit: > Documentation on open() says: > ENAMETOOLONG > The length of the path string exceeds PATH_MAX, or a pathname component is > longer than NAME_MAX.
As the maximal length of a file name depend of the filesystem, the POSIX way to get the limits is to use fpathconf() and pathconf(). NAME_MAX and PATH_MAX macros may be used to allocate memory. I don't know about QNX. About the file names, I'm usure that it's really safe to use potentialy hostile content as a file name. An archive may have multiple files with the same name, or with case insensitive same name and the filesystem may be case insensitive. Why isn't mkstemp() simply used ? _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel