www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/07/04/17:27:34

Sender: richdawe AT bigfoot DOT com
Message-ID: <377FB329.202901E3@tudor21.net>
Date: Sun, 04 Jul 1999 19:16:57 +0000
From: Richard Dawe <richdawe AT bigfoot DOT com>
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 <djgpp-workers AT delorie DOT com>
Subject: Request: S_IFSOCK & S_ISSOCK in sys/stat.h
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/ 
--------------+----------------------+------------------------------------

- Raw text -


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