zsh-workers
 help / color / mirror / code / Atom feed
From: zefram@fysh.org
To: zsh-workers@sunsite.auc.dk
Subject: Solaris doors
Date: Wed, 06 Oct 1999 15:06:49 +0100	[thread overview]
Message-ID: <E11YriT-0000DF-00@crucigera.fysh.org> (raw)

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)


                 reply	other threads:[~1999-10-06 14:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E11YriT-0000DF-00@crucigera.fysh.org \
    --to=zefram@fysh.org \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).