From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id A88EE3858284; Fri, 16 Jun 2023 19:47:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A88EE3858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686944869; bh=gd4fpSr4BCs+0SHNlbQl2i57BiUmiZb0HY5M1DEXrbE=; h=From:To:Subject:Date:From; b=DaHjp/lkDJWEw9HISucdHFJkDwP2P0rBDNm67gkGKqrFCm5DJoInRndf6OTNUuWee I0k7Ea8SY8h9KPGEka+4Vyi3Jp2Wv3tY5m0P4BCQOJfjbUhgV0PlqElZyCX8biMoPb xdAILN0C1ta/X9feB/zdfbGIlhg6W/+TVLK9bXRs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: export XATTR_{NAME,SIZE,LIST}_MAX X-Act-Checkin: newlib-cygwin X-Git-Author: Philippe Cerfon X-Git-Refname: refs/heads/main X-Git-Oldrev: 80ff7bc26ca97a7e2194554c21fe25cbdf227813 X-Git-Newrev: 538b29a8da8661eceab9b7329d24625256a8d469 Message-Id: <20230616194749.A88EE3858284@sourceware.org> Date: Fri, 16 Jun 2023 19:47:49 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D538b29a8da8= 661eceab9b7329d24625256a8d469 commit 538b29a8da8661eceab9b7329d24625256a8d469 Author: Philippe Cerfon AuthorDate: Tue May 30 13:16:18 2023 +0200 Commit: Corinna Vinschen CommitDate: Fri Jun 16 21:44:41 2023 +0200 Cygwin: export XATTR_{NAME,SIZE,LIST}_MAX =20 These are used for example by CPython. =20 Signed-off-by: Philippe Cerfon Signed-off-by: Corinna Vinschen Diff: --- 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 aefc7c7bdba3..ea3e2836a4b8 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 =20 +/* XATTR_NAME_MAX is the maximum XATTR name length excluding the null + * terminator. Since only XATTRs in the `user' namespace are allowed and t= he + * `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__ */