1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00

manual/8137

This commit is contained in:
Tanaka Akira 1999-10-06 14:15:41 +00:00
parent 8b21d59cfa
commit e934b0f1d7
2 changed files with 9 additions and 0 deletions

View file

@ -66,6 +66,8 @@ statmodeprint(mode_t mode, char *outbuf, int flags)
*pm = 'c'; *pm = 'c';
else if (S_ISDIR(mode)) else if (S_ISDIR(mode))
*pm = 'd'; *pm = 'd';
else if (S_ISDOOR(mode))
*pm = 'D';
else if (S_ISFIFO(mode)) else if (S_ISFIFO(mode))
*pm = 'p'; *pm = 'p';
else if (S_ISLNK(mode)) else if (S_ISLNK(mode))

View file

@ -409,6 +409,7 @@ struct timezone {
# undef S_ISBLK # undef S_ISBLK
# undef S_ISCHR # undef S_ISCHR
# undef S_ISDIR # undef S_ISDIR
# undef S_ISDOOR
# undef S_ISFIFO # undef S_ISFIFO
# undef S_ISLNK # undef S_ISLNK
# undef S_ISMPB # undef S_ISMPB
@ -436,6 +437,9 @@ struct timezone {
#if !defined(S_ISDIR) && defined(S_IFDIR) #if !defined(S_ISDIR) && defined(S_IFDIR)
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif #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) #if !defined(S_ISFIFO) && defined(S_IFIFO)
# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#endif #endif
@ -475,6 +479,9 @@ struct timezone {
#ifndef S_ISDIR #ifndef S_ISDIR
# define S_ISDIR(m) ((void)(m), 0) # define S_ISDIR(m) ((void)(m), 0)
#endif #endif
#ifndef S_ISDOOR
# define S_ISDOOR(m) ((void)(m), 0)
#endif
#ifndef S_ISFIFO #ifndef S_ISFIFO
# define S_ISFIFO(m) ((void)(m), 0) # define S_ISFIFO(m) ((void)(m), 0)
#endif #endif