From b64b9a48c77326ed2544e51422adbe1f1c631542 Mon Sep 17 00:00:00 2001 From: Philippe Cerfon Date: Tue, 30 May 2023 13:16:18 +0200 Subject: [PATCH 1/2] Cygwin: export XATTR_{NAME,SIZE,LIST}_MAX These are used for example by CPython. Signed-off-by: Philippe Cerfon Signed-off-by: Corinna Vinschen --- winsup/cygwin/include/cygwin/limits.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/winsup/cygwin/include/cygwin/limits.h b/winsup/cygwin/include/cygwin/limits.h index aefc7c7bd..ea3e2836a 100644 --- a/winsup/cygwin/include/cygwin/limits.h +++ b/winsup/cygwin/include/cygwin/limits.h @@ -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__ */ -- 2.40.1