54019: AIX support fixes

This commit is contained in:
Oliver Kiddle
2025-11-03 20:17:00 +01:00
parent 15f4567148
commit 8e27709d2a
7 changed files with 20 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2025-11-03 Oliver Kiddle <opk@zsh.org>
* 54019: configure.ac, Makefile.in, Src/params.c, Test/ztst.zsh,
Src/Builtins/rlimits.c, Src/Modules/curses.mdd: AIX support fixes
2025-10-31 Bart Schaefer <schaefer@zsh.org>
* Jim Murphy: 53783: Functions/Prompts/prompt_adam2_setup,

View File

@@ -36,8 +36,6 @@ sdir = @srcdir@
sdir_top = @top_srcdir@
INSTALL = @INSTALL@
@DEFS_MK@
# ========== DEPENDENCIES FOR BUILDING ==========
# default target
@@ -46,6 +44,8 @@ all: config.h config.modules
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
done
@DEFS_MK@
# prepare module configuration
prep:
@cd Src && $(MAKE) $(MAKEDEFS) $@

View File

@@ -157,9 +157,13 @@ static const resinfo_T known_resources[] = {
# if defined(HAVE_RLIMIT_NTHR) && !defined(HAVE_RLIMIT_RTPRIO) /* Net/OpenBSD */
{RLIMIT_NTHR, "maxpthreads", ZLIMTYPE_NUMBER, 1,
'r', "threads"},
# endif
# if defined(HAVE_RLIMIT_THREADS) && !defined(HAVE_RLIMIT_RTPRIO) && !defined(HAVE_RLIMIT_NTHR) /* AIX */
{RLIMIT_THREADS, "threads", ZLIMTYPE_NUMBER, 1,
'r', "threads (per process)"},
# endif
/* others */
# if defined(HAVE_RLIMIT_PTHREAD) && !defined(HAVE_RLIMIT_NTHR) /* IRIX ? */
# if defined(HAVE_RLIMIT_PTHREAD) && !defined(HAVE_RLIMIT_NTHR) && !defined(HAVE_RLIMIT_THREADS) /* IRIX ? */
{RLIMIT_PTHREAD, "maxpthreads", ZLIMTYPE_NUMBER, 1,
'T', "threads per process"},
# endif

View File

@@ -11,4 +11,8 @@ curses.o curses..o: curses_keys.h
curses_keys.h: curses_keys.awk @CURSES_KEYS_H@
$(AWK) -f $(sdir)/curses_keys.awk @CURSES_KEYS_H@ /dev/null >curses_keys.h
clean-here: clean.curses
clean.curses:
rm -f curses_keys.h
Make

View File

@@ -4005,7 +4005,7 @@ strsetfn(Param pm, char *x)
static char *nullarray = NULL;
/**/
char **
mod_export char **
arrgetfn(Param pm)
{
return pm->u.arr ? pm->u.arr : &nullarray;
@@ -6455,7 +6455,7 @@ upscope(Param pm, int reflevel)
}
/**/
mod_export Param
static Param
upscope_upper(Param pm, int reflevel)
{
while (pm && pm->level > reflevel)

View File

@@ -343,7 +343,7 @@ ZTST_diff() {
;;
esac
shift
[[ $OSTYPE != solaris* ]] && diff_arg=( -a )
[[ $OSTYPE != (aix|solaris)* ]] && diff_arg=( -a )
if (( diff_pat )); then
local -a diff_lines1 diff_lines2

View File

@@ -1863,6 +1863,7 @@ zsh_LIMIT_PRESENT(RLIMIT_NPROC)
zsh_LIMIT_PRESENT(RLIMIT_NTHR)
zsh_LIMIT_PRESENT(RLIMIT_NOFILE)
zsh_LIMIT_PRESENT(RLIMIT_PTHREAD)
zsh_LIMIT_PRESENT(RLIMIT_THREADS)
zsh_LIMIT_PRESENT(RLIMIT_RSS)
zsh_LIMIT_PRESENT(RLIMIT_SBSIZE)
zsh_LIMIT_PRESENT(RLIMIT_TCACHE)