Cygwin: export XATTR_{NAME,SIZE,LIST}_MAX

These are used for example by CPython.

Signed-off-by: Philippe Cerfon <philcerf@gmail.com>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Philippe Cerfon 2023-05-30 13:16:18 +02:00 committed by Corinna Vinschen
parent 80ff7bc26c
commit 538b29a8da
1 changed files with 7 additions and 0 deletions

View File

@ -56,4 +56,11 @@ details. */
#define __PATH_MAX 4096
#define __PIPE_BUF 4096
/* XATTR_NAME_MAX is the maximum XATTR name length excluding the null
* terminator. Since only XATTRs in the `user' namespace are allowed and the
* `user.' prefix is not stored, the maximum is increased by 5. */
#define XATTR_NAME_MAX 260
#define XATTR_SIZE_MAX 65536
#define XATTR_LIST_MAX 65536
#endif /* _CYGWIN_LIMITS_H__ */