[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Monotone 0.16 bug with filesystems
From: |
Florian Weimer |
Subject: |
Re: [Monotone-devel] Monotone 0.16 bug with filesystems |
Date: |
Fri, 07 Jan 2005 10:58:29 +0100 |
* Jon Bright:
> I'd guess this means the code should look like:
>
> long path_max;
> errno = 0;
> path_max = ::pathconf( ".", _PC_PATH_MAX );
> if ( path_max < 1 && errno != 0 )
> boost::throw_exception(
> filesystem_error( "boost::filesystem::current_path",
> "_PC_PATH_MAX < 1" ) );
> else if ( path_max < 1 )
> path_max = _POSIX_PATH_MAX;
If the limit does not exisit, _POSIX_PATH_MAX is probably undefined,
too. POSIX does not require an upper bound on the path length.