1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-26 22:10:45 +02:00
Commit Graph

39 Commits

Author SHA1 Message Date
Cedric Ware
25c9b61a66 45708: zsh/system: Enable sub-second timeout in zsystem flock 2020-04-20 12:10:01 -05:00
Peter Stephenson
a6a1b28b98 45487: Missing mod_export declarations for AIX 2020-02-24 10:55:48 +00:00
Martijn Dekker
c578f0a08b 45004: Fix typos in comments 2019-12-11 02:37:39 +00:00
Daniel Shahaf
87db974a84 users/24451: zgetcwd: Add a guard against returning an empty string. 2019-11-19 19:20:38 +00:00
Peter Stephenson
d4972af12c 44254: Handle error case in zgetdir().
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.
2019-04-25 17:09:26 +01:00
dana
394f3a47e4 43075: Support nanosecond-precision time formatting
* 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
2018-06-20 17:29:56 -05:00
Jun-ichi Takimoto
171e7fa4c1 41090: Replace iswprint() if unicode9 is enabled.
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09:00
Jun-ichi Takimoto
e8699613bc 40050: prepend /**/ to global functions and #ifdefs 2016-12-01 08:58:29 +09:00
Joshua Rubin
596ba302e6 40037: Unicode 9 character width support.
Enable with --enable-unicode9.
2016-11-29 17:19:53 +00:00
Peter Stephenson
a62e1640bc 39958: Add extra byte to PATH_MAX allocations.
This ensures we've got enough space for a null, although this
isn't always needed.
2016-11-17 19:49:17 +00:00
Oliver Kiddle
45e67c3552 36422: add missing unmeta() 2015-09-08 11:12:10 +02:00
Peter Stephenson
61afb8dc8d 36262: Replace fix for missing unmeta in chdir().
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-21 10:04:13 +01:00
Peter Stephenson
34be0f1fe5 36232: Unmeta needed in chdir() in zchdir() 2015-08-18 17:46:27 +01:00
Barton E. Schaefer
89a689e693 34961: replace a couple of free() with zfree() for consistency 2015-04-25 10:48:43 -07:00
Jun-ichi Takimoto
4bc554bb8b 34636: replace broken isprint() on Mac OS X 2015-03-05 01:48:34 +09:00
Nikolas Garofil
4f4d2b8247 32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilation
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
2014-06-07 13:48:40 -07:00
Peter Stephenson
13b8a25456 Jun T.: 30640: MacOS doesn't define __STDC_ISO_10646__ but we need
the replacement wcwidth function anyway
2012-08-23 19:19:26 +00:00
Peter Stephenson
85a698b8ec YAMAMOTO Takashi: 30599: don't use replacement wcwidth if not ISO-10646 2012-08-07 18:29:02 +00:00
Peter Stephenson
825c1a1141 28010: use getcwd() as fallback 2010-06-14 11:48:06 +00:00
Peter Stephenson
7850fc5a2c 28006: make zgetcwd() fall back to pwd,
only use "." if setting pwd
2010-06-08 08:51:03 +00:00
Peter Stephenson
7977ce0747 27721: rationalise initialisation of file descriptors 2010-02-22 10:12:22 +00:00
Peter Stephenson
cb6856d115 26754: tweak zgetdir() and test for realpath() 2009-03-19 15:00:18 +00:00
Peter Stephenson
2cec7aae44 24861 (with tweaks): logic to use alternative wcwidth() if needed;
slightly improve test for overwriting with combining characters.
2008-04-22 15:08:04 +00:00
Peter Stephenson
b9a04359d2 24662: River Tarnell: strtoul() compat when not in system library 2008-03-03 12:29:51 +00:00
Wayne Davison
bb78896c7f A few minor style tweaks (as discussed in 20595 and 20596). 2004-12-01 18:18:23 +00:00
Wayne Davison
8b136c84d2 Corrected the error-return comment for zchdir() and optimized the
HAVE_FCHDIR error-return code.
2004-11-29 16:26:12 +00:00
Peter Stephenson
d2c67e5e19 20591: Stephane Chazelas: use of fchdir in zchdir leaked fd's 2004-11-29 12:09:13 +00:00
Oliver Kiddle
af0697b705 17503: fix various typos and spelling mistakes in source code comments 2002-08-05 12:35:59 +00:00
Bart Schaefer
c43a6be917 16094: zopenmax() need only return the highest-numbered open descriptor 2001-11-03 23:39:11 +00:00
Oliver Kiddle
0f960cc8ca fix IRIX 5.3 specific compilation problems and some error messages (15204) 2001-07-02 11:33:26 +00:00
Bart Schaefer
0d96dc0879 Back out 12814. 2000-09-18 14:22:48 +00:00
Clint Adams
2742cb14ce 12814: zasprintf 2000-09-16 18:57:45 +00:00
Bart Schaefer
135b181aa6 12604: Remove calls to zpathmax(), minor fixes to zopenmax(). 2000-08-14 07:30:28 +00:00
Clint Adams
cb89544d32 12568: check sysconf(_SC_OPEN_MAX) if available instead of OPEN_MAX/NOFILES. 2000-08-08 14:57:02 +00:00
Bart Schaefer
1859bb2d0a 12548: Tweak 12547. 2000-08-05 06:52:14 +00:00
Bart Schaefer
1ff8518b16 12547: Handle ENOENT and ENOTDIR in zpathmax(). 2000-08-05 05:59:53 +00:00
Clint Adams
45ffc3b6c8 12541: zrealpath wrapper around realpath() 2000-08-05 01:30:19 +00:00
Bart Schaefer
22cbf1b271 15216: Rewrite pathconf() support. 2000-08-04 07:09:12 +00:00
Tanaka Akira
e74702b467 Initial revision 1999-04-15 18:05:38 +00:00