在 2025-01-17 00:38, Lasse Collin 写道:
NAME_MAX is a POSIX constant; Windows doesn't define it. For this
reason, assume that NAME_MAX is only about filenames in multibyte
representation. In the UTF-8 code page, filenames can be up to
255 * 3 bytes excluding the terminating null character. (It's not
On Friday 17 January 2025 15:22:30 Lasse Collin wrote:
> On 2025-01-16 Pali Rohár wrote:
> > On Thursday 16 January 2025 18:32:08 Lasse Collin wrote:
> > > I see that sizeof(DIR) depends on _USE_32BIT_TIME_T because DIR
> > > contains _finddata_t or _wfinddata_t. Luckily no one is supposed to
> > >
On 2025-01-16 Pali Rohár wrote:
> On Thursday 16 January 2025 18:32:08 Lasse Collin wrote:
> > I see that sizeof(DIR) depends on _USE_32BIT_TIME_T because DIR
> > contains _finddata_t or _wfinddata_t. Luckily no one is supposed to
> > access that structure directly.
>
> That is really bad. So it