+2021-01-05 Bruno Haible <bruno@clisp.org>
+
+ pipe-filter-gi: Fix test failure on AIX 7.2.
+ * lib/pipe-filter-aux.h (SSIZE_MAX) [AIX]: Set to 4096.
+
2021-01-05 Bruno Haible <bruno@clisp.org>
utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
#ifndef SSIZE_MAX
# define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
#endif
+#ifdef _AIX
+/* On AIX, despite having select() and despite having put the file descriptor
+ in non-blocking mode, it can happen that select() reports that fd[1] is
+ writable but writing a large amount of data to fd[1] then fails with errno
+ EAGAIN. Seen with test-pipe-filter-gi1 on AIX 7.2, with data sizes of
+ 29 KB. So, limit the size of data passed to the write() call to 4 KB. */
+# undef SSIZE_MAX
+# define SSIZE_MAX 4096
+#endif
/* We use a child process, and communicate through a bidirectional pipe.
To avoid deadlocks, let the child process decide when it wants to read