summaryrefslogtreecommitdiff
path: root/Src/compat.c
AgeCommit message (Collapse)AuthorFilesLines
2024-12-2653257: use monotonic clock where appropriatedana1-0/+12
update the following features to use the monotonic clock for calculating time deltas and intervals: * MAILCHECK parameter * PERIOD parameter * SECONDS parameter * %(nS.t.f) prompt-expansion sequence * time built-in's elapsed time and cpu % values * zsh/zftp ZFTP_TMOUT parameter * zsh/zprof timings also use CLOCK_MONOTONIC_RAW instead of CLOCK_MONOTONIC on macOS
2023-11-1552275: rationality in zgetdir() and zgetcwd()Bart Schaefer1-48/+52
2020-04-2045708: zsh/system: Enable sub-second timeout in zsystem flockCedric Ware1-0/+26
2020-02-2445487: Missing mod_export declarations for AIXPeter Stephenson1-1/+1
2019-12-1145004: Fix typos in commentsMartijn Dekker1-2/+2
2019-11-19users/24451: zgetcwd: Add a guard against returning an empty string.Daniel Shahaf1-1/+1
2019-04-2544254: Handle error case in zgetdir().Peter Stephenson1-1/+11
When retrieving path to current directory by looking for /, ensure we have actually reached / by comparing inode. If the current directory became invalid on some OSes including Linux the parent directory is valid but is the same as the current one.
2018-06-2043075: Support nanosecond-precision time formattingdana1-0/+33
* Teach ztrftime() %9. and %N for nanoseconds * Update prompt expansion to pass sub-second times for time formatting * Update zsh/stat to pass sub-second times for atime/mtime/ctime Patch heavily based on Oliver's earlier work @ workers/24059
2017-05-1241090: Replace iswprint() if unicode9 is enabled.Jun-ichi Takimoto1-316/+6
If wcwidth() or iswprint() is broken, force enable unicode9.
2016-12-0140050: prepend /**/ to global functions and #ifdefsJun-ichi Takimoto1-0/+35
2016-11-2940037: Unicode 9 character width support.Joshua Rubin1-1/+12
Enable with --enable-unicode9.
2016-11-1739958: Add extra byte to PATH_MAX allocations.Peter Stephenson1-3/+3
This ensures we've got enough space for a null, although this isn't always needed.
2015-09-0836422: add missing unmeta()Oliver Kiddle1-1/+1
2015-08-2136262: Replace fix for missing unmeta in chdir().Peter Stephenson1-3/+8
It was needed in the argument to one of a pair of lchdir()s rather than within zchdir(). Add tests for the case of a character with 0x83 within it.
2015-08-1836232: Unmeta needed in chdir() in zchdir()Peter Stephenson1-1/+1
2015-04-2534961: replace a couple of free() with zfree() for consistencyBarton E. Schaefer1-1/+1
2015-03-0534636: replace broken isprint() on Mac OS XJun-ichi Takimoto1-0/+15
2014-06-0732737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilationNikolas Garofil1-1/+1
fixes Src/utils.c: properly ifdef declarations Src/zsh_system.h: memmove() should return its dest argument Src/signals.c: define ret before use Src/mem.c: remove unused pointers Src/prototypes.h: use size_t in bcopy() Src/compat.c: fix const declaration inconsistency
2012-08-23Jun T.: 30640: MacOS doesn't define __STDC_ISO_10646__ but we needPeter Stephenson1-2/+2
the replacement wcwidth function anyway
2012-08-07YAMAMOTO Takashi: 30599: don't use replacement wcwidth if not ISO-10646Peter Stephenson1-2/+2
2010-06-1428010: use getcwd() as fallbackPeter Stephenson1-1/+18
2010-06-0828006: make zgetcwd() fall back to pwd,Peter Stephenson1-11/+39
only use "." if setting pwd
2010-02-2227721: rationalise initialisation of file descriptorsPeter Stephenson1-29/+34
2009-03-1926754: tweak zgetdir() and test for realpath()Peter Stephenson1-2/+30
2008-04-2224861 (with tweaks): logic to use alternative wcwidth() if needed;Peter Stephenson1-1/+324
slightly improve test for overwriting with combining characters.
2008-03-0324662: River Tarnell: strtoul() compat when not in system libraryPeter Stephenson1-0/+102
2004-12-01A few minor style tweaks (as discussed in 20595 and 20596).Wayne Davison1-6/+7
2004-11-29Corrected the error-return comment for zchdir() and optimized theWayne Davison1-9/+8
HAVE_FCHDIR error-return code.
2004-11-2920591: Stephane Chazelas: use of fchdir in zchdir leaked fd'sPeter Stephenson1-3/+7
2002-08-0517503: fix various typos and spelling mistakes in source code commentsOliver Kiddle1-2/+2
2001-11-0316094: zopenmax() need only return the highest-numbered open descriptorBart Schaefer1-5/+25
2001-07-02fix IRIX 5.3 specific compilation problems and some error messages (15204)Oliver Kiddle1-1/+1
2000-09-18Back out 12814.Bart Schaefer1-74/+0
2000-09-1612814: zasprintfClint Adams1-0/+74
2000-08-1412604: Remove calls to zpathmax(), minor fixes to zopenmax().Bart Schaefer1-26/+40
2000-08-0812568: check sysconf(_SC_OPEN_MAX) if available instead of OPEN_MAX/NOFILES.Clint Adams1-0/+21
2000-08-0512548: Tweak 12547.Bart Schaefer1-13/+12
2000-08-0512547: Handle ENOENT and ENOTDIR in zpathmax().Bart Schaefer1-15/+33
2000-08-0512541: zrealpath wrapper around realpath()Clint Adams1-0/+13
2000-08-0415216: Rewrite pathconf() support.Bart Schaefer1-7/+83
1999-04-15Initial revisionTanaka Akira1-0/+285