[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp
From: |
Eli Zaretskii |
Subject: |
Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp |
Date: |
Sat, 12 Jan 2019 18:09:16 +0200 |
> Date: Sat, 12 Jan 2019 15:10:35 +0100
> From: Steffen Nurpmeso <address@hidden>
> Cc: address@hidden
>
> Eli Zaretskii wrote in <address@hidden>:
> |> Date: Sat, 12 Jan 2019 14:42:31 +0100
> |> From: Steffen Nurpmeso <address@hidden>
> |> Cc: address@hidden
> |>
> |>|I think FILENAME_MAX is Standard ANSI C symbol, so it can/should be
> |>
> |> NAME_MAX was also ANSI C by Brian W. Kernighan and Dennis M. Ritchie.
> |> ANSI C says
> |>
> |> NAME_MAX 14 /* longest filename-component; system-dependent */
> |
> |No, NAME_MAX is Posix, not ANSI.
>
> I was citing the ANSI C book of the mentioned, like i have said.
I checked two ANSI C Standard versions, one C9x, the other C11x, and
neither mentions NAME_MAX; both do mention FILENAME_MAX. So I'm quite
sure NAME_MAX was introduced by Posix, and isn't ANSI.
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, (continued)
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Steffen Nurpmeso, 2019/01/11
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Eli Zaretskii, 2019/01/12
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Steffen Nurpmeso, 2019/01/12
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Eli Zaretskii, 2019/01/12
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Steffen Nurpmeso, 2019/01/12
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Steffen Nurpmeso, 2019/01/12
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp, Steffen Nurpmeso, 2019/01/12
- Re: [bug #55449] Use FILENAME_MAX in maxfilename.cpp,
Eli Zaretskii <=
[bug #55449] Use FILENAME_MAX in maxfilename.cpp, Eli Zaretskii, 2019/01/12