~mirabilos/mksh/MAIN

Viewing all changes in revision 3401.

  • Committer: tg
  • Date: 2022-12-01 23:55:25 UTC
  • Revision ID: tg-20221201235525-qcj1mmicg647d8pt
address multiple issues:
• drop the MKSH__NO_PATH_MAX flag
  → check for get_current_dir_name() in Mirtoconf
  → rewrite ksh_getcwd() code to be more memory-efficient,
    allocate/free less (especially without get_current_dir_name),
    and return const; let it loop raising the buffer size if too
    small and use an interesting initial guess¹; adapt callers
  → fix do_realpath to always use the dynamic size codepath but
    correct casts and checks
  → also just always guess-and-resize, but guess smaller, for cd
• drop the HP-UX 9 struct timeval monkeypatch
  → add and use timercmp instead of timersub plus check for <0
• promote mksh_MAXSZ as mbiSIZEMAX to mbsdint.h
  + in Mirtoconf, determine whether RSIZE_MAX (C11+ optional) is
    a (defined) compile-time integer constexpr, which mbsdint.h
    can use to set mksh_MAXSZ to it if it checks out
• the heredoc-tmpfile-8 test changed slightly, to help determining
  its, currently in Debian rather often, failure cases… help welcome

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: