www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2008/05/04/11:24:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX1/YR+5tuDvYF4MM1YDGwEQ4Jo6TtgJvKGFavvcNWA
vcN3tcELQqEmEf
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Re: DT_SOCK and S_IFSOCK.
Date: Sun, 4 May 2008 17:24:07 +0200
User-Agent: KMail/1.9.5
References: <200805040031 DOT 30990 DOT juan DOT guerrero AT gmx DOT de> <200805041338 DOT 47052 DOT juan DOT guerrero AT gmx DOT de> <200805041251 DOT m44CpgcD019032 AT envy DOT delorie DOT com>
In-Reply-To: <200805041251.m44CpgcD019032@envy.delorie.com>
MIME-Version: 1.0
Message-Id: <200805041724.09095.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

Am Sonntag, 4. Mai 2008 14:51 schrieb DJ Delorie:
> 
> Sounds like removing DT_SOCK is the right thing to do, but leave it as
> commented out in the .h file with a comment that says why we removed
> it, in case we run into this again.

Here is a patch.  If the wording is not OK chage it as you like.

Index: include/dirent.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/dirent.h,v
retrieving revision 1.4
diff -p -U3 -r1.4 dirent.h
--- include/dirent.h	4 Feb 2003 20:23:04 -0000	1.4
+++ include/dirent.h	4 May 2008 15:21:28 -0000
@@ -33,7 +33,13 @@ typedef struct __dj_DIR DIR;
 #define DT_FIFO	    0x5
 #define DT_LABEL    0x6
 #define DT_LNK	    0x7
+#if 0
+/* S_IFSOCK is not defined and to be consequent DT_SOCK is also not defined.
+   This shall avoid that code that checks for DT_SOCK assumes that S_IFSOCK
+   is available too and that djgpp provides working socks.
+*/
 #define DT_SOCK	    0x8
+#endif
 #define DT_UNKNOWN  0xf
 
 #define DTTOIF(dt)  (((dt) == DT_UNKNOWN ? 0 : (dt) - 1) << 12)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019