public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: export XATTR_{NAME,SIZE,LIST}_MAX
@ 2023-06-16 19:47 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2023-06-16 19:47 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=538b29a8da8661eceab9b7329d24625256a8d469
commit 538b29a8da8661eceab9b7329d24625256a8d469
Author: Philippe Cerfon <philcerf@gmail.com>
AuthorDate: Tue May 30 13:16:18 2023 +0200
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Fri Jun 16 21:44:41 2023 +0200
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>
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
+/* 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__ */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-16 19:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-16 19:47 [newlib-cygwin/main] Cygwin: export XATTR_{NAME,SIZE,LIST}_MAX Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).