mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
manual/8137
This commit is contained in:
parent
8b21d59cfa
commit
e934b0f1d7
2 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,8 @@ statmodeprint(mode_t mode, char *outbuf, int flags)
|
|||
*pm = 'c';
|
||||
else if (S_ISDIR(mode))
|
||||
*pm = 'd';
|
||||
else if (S_ISDOOR(mode))
|
||||
*pm = 'D';
|
||||
else if (S_ISFIFO(mode))
|
||||
*pm = 'p';
|
||||
else if (S_ISLNK(mode))
|
||||
|
|
|
@ -409,6 +409,7 @@ struct timezone {
|
|||
# undef S_ISBLK
|
||||
# undef S_ISCHR
|
||||
# undef S_ISDIR
|
||||
# undef S_ISDOOR
|
||||
# undef S_ISFIFO
|
||||
# undef S_ISLNK
|
||||
# undef S_ISMPB
|
||||
|
@ -436,6 +437,9 @@ struct timezone {
|
|||
#if !defined(S_ISDIR) && defined(S_IFDIR)
|
||||
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
#if !defined(S_ISDOOR) && defined(S_IFDOOR) /* Solaris */
|
||||
# define S_ISDOOR(m) (((m) & S_IFMT) == S_IFDOOR)
|
||||
#endif
|
||||
#if !defined(S_ISFIFO) && defined(S_IFIFO)
|
||||
# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
||||
#endif
|
||||
|
@ -475,6 +479,9 @@ struct timezone {
|
|||
#ifndef S_ISDIR
|
||||
# define S_ISDIR(m) ((void)(m), 0)
|
||||
#endif
|
||||
#ifndef S_ISDOOR
|
||||
# define S_ISDOOR(m) ((void)(m), 0)
|
||||
#endif
|
||||
#ifndef S_ISFIFO
|
||||
# define S_ISFIFO(m) ((void)(m), 0)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue