Skip to content

Commit 8e27709

Browse files
author
Oliver Kiddle
committed
54019: AIX support fixes
1 parent 15f4567 commit 8e27709

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-11-03 Oliver Kiddle <[email protected]>
2+
3+
* 54019: configure.ac, Makefile.in, Src/params.c, Test/ztst.zsh,
4+
Src/Builtins/rlimits.c, Src/Modules/curses.mdd: AIX support fixes
5+
16
2025-10-31 Bart Schaefer <[email protected]>
27

38
* Jim Murphy: 53783: Functions/Prompts/prompt_adam2_setup,

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ sdir = @srcdir@
3636
sdir_top = @top_srcdir@
3737
INSTALL = @INSTALL@
3838

39-
@DEFS_MK@
40-
4139
# ========== DEPENDENCIES FOR BUILDING ==========
4240

4341
# default target
@@ -46,6 +44,8 @@ all: config.h config.modules
4644
(cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
4745
done
4846

47+
@DEFS_MK@
48+
4949
# prepare module configuration
5050
prep:
5151
@cd Src && $(MAKE) $(MAKEDEFS) $@

Src/Builtins/rlimits.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,13 @@ static const resinfo_T known_resources[] = {
157157
# if defined(HAVE_RLIMIT_NTHR) && !defined(HAVE_RLIMIT_RTPRIO) /* Net/OpenBSD */
158158
{RLIMIT_NTHR, "maxpthreads", ZLIMTYPE_NUMBER, 1,
159159
'r', "threads"},
160+
# endif
161+
# if defined(HAVE_RLIMIT_THREADS) && !defined(HAVE_RLIMIT_RTPRIO) && !defined(HAVE_RLIMIT_NTHR) /* AIX */
162+
{RLIMIT_THREADS, "threads", ZLIMTYPE_NUMBER, 1,
163+
'r', "threads (per process)"},
160164
# endif
161165
/* others */
162-
# if defined(HAVE_RLIMIT_PTHREAD) && !defined(HAVE_RLIMIT_NTHR) /* IRIX ? */
166+
# if defined(HAVE_RLIMIT_PTHREAD) && !defined(HAVE_RLIMIT_NTHR) && !defined(HAVE_RLIMIT_THREADS) /* IRIX ? */
163167
{RLIMIT_PTHREAD, "maxpthreads", ZLIMTYPE_NUMBER, 1,
164168
'T', "threads per process"},
165169
# endif

Src/Modules/curses.mdd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ curses.o curses..o: curses_keys.h
1111

1212
curses_keys.h: curses_keys.awk @CURSES_KEYS_H@
1313
$(AWK) -f $(sdir)/curses_keys.awk @CURSES_KEYS_H@ /dev/null >curses_keys.h
14+
15+
clean-here: clean.curses
16+
clean.curses:
17+
rm -f curses_keys.h
1418
Make

Src/params.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4005,7 +4005,7 @@ strsetfn(Param pm, char *x)
40054005
static char *nullarray = NULL;
40064006

40074007
/**/
4008-
char **
4008+
mod_export char **
40094009
arrgetfn(Param pm)
40104010
{
40114011
return pm->u.arr ? pm->u.arr : &nullarray;
@@ -6455,7 +6455,7 @@ upscope(Param pm, int reflevel)
64556455
}
64566456

64576457
/**/
6458-
mod_export Param
6458+
static Param
64596459
upscope_upper(Param pm, int reflevel)
64606460
{
64616461
while (pm && pm->level > reflevel)

Test/ztst.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ ZTST_diff() {
343343
;;
344344
esac
345345
shift
346-
[[ $OSTYPE != solaris* ]] && diff_arg=( -a )
346+
[[ $OSTYPE != (aix|solaris)* ]] && diff_arg=( -a )
347347

348348
if (( diff_pat )); then
349349
local -a diff_lines1 diff_lines2

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,7 @@ zsh_LIMIT_PRESENT(RLIMIT_NPROC)
18631863
zsh_LIMIT_PRESENT(RLIMIT_NTHR)
18641864
zsh_LIMIT_PRESENT(RLIMIT_NOFILE)
18651865
zsh_LIMIT_PRESENT(RLIMIT_PTHREAD)
1866+
zsh_LIMIT_PRESENT(RLIMIT_THREADS)
18661867
zsh_LIMIT_PRESENT(RLIMIT_RSS)
18671868
zsh_LIMIT_PRESENT(RLIMIT_SBSIZE)
18681869
zsh_LIMIT_PRESENT(RLIMIT_TCACHE)

0 commit comments

Comments
 (0)