Sender: richdawe AT bigfoot DOT com Message-ID: <377FB329.202901E3@tudor21.net> Date: Sun, 04 Jul 1999 19:16:57 +0000 From: Richard Dawe X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.10 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: DJGPP workers Subject: Request: S_IFSOCK & S_ISSOCK in sys/stat.h Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. I was wondering if it would be possible to add definitions for S_IFSOCK and S_ISSOCK to sys/stat.h: #define S_IFSOCK 0x6000 #define S_ISSOCK (((m) & 0xf000) == S_IFSOCK) Some value other than 0x6000 could be used. I ask because it would make writing libsocket's stat() support easier. No patches to sys/stat.h would be required, which is easier not only for me, but also end users of the library. A reason why you would not want to do this: autoconf scripts might think that DJGPP has sockets support on finding S_IFSOCK? This seems unlikely though. Bye, -- --------------+----------------------+------------------------------------ Richard Dawe | richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ --------------+----------------------+------------------------------------