zsh-workers
 help / color / mirror / code / Atom feed
* Solaris doors
@ 1999-10-06 14:06 zefram
  0 siblings, 0 replies; only message in thread
From: zefram @ 1999-10-06 14:06 UTC (permalink / raw)
  To: zsh-workers

Something I meant to do a long time ago -- support for the stat module
to recognise Solaris doors.

-zefram

 diff -cr zsh-3.1.6-pws-6/Src/Modules/stat.c zsh/Src/Modules/stat.c
 *** zsh-3.1.6-pws-6/Src/Modules/stat.c	Tue May 18 08:49:10 1999
 --- zsh/Src/Modules/stat.c	Wed Oct  6 15:03:19 1999
 ***************
 *** 66,71 ****
 --- 66,73 ----
   	    *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))
 diff -cr zsh-3.1.6-pws-6/Src/system.h zsh/Src/system.h
 *** zsh-3.1.6-pws-6/Src/system.h	Wed Sep  1 08:51:59 1999
 --- zsh/Src/system.h	Wed Oct  6 15:00:49 1999
 ***************
 *** 409,414 ****
 --- 409,415 ----
   # undef S_ISBLK
   # undef S_ISCHR
   # undef S_ISDIR
 + # undef S_ISDOOR
   # undef S_ISFIFO
   # undef S_ISLNK
   # undef S_ISMPB
 ***************
 *** 436,441 ****
 --- 437,445 ----
   #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
 ***************
 *** 474,479 ****
 --- 478,486 ----
   #endif
   #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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-06 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-06 14:06 Solaris doors zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).