<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Hm. I was about to commit this and then I found:<BR>
<BR>
<A href="http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/stat.h">http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/stat.h</A> <BR> <A href="http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libbc/inc/include/sys/stat.h">http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libbc/inc/include/sys/stat.h</A> <BR>
<BR>
One of these defines S_IFPORT, and it isn't equal to S_IFIFO.<BR>
The Modula-3 implementation is *perhaps* incorrect.<BR>
<BR>
I don't yet have a Solaris install to see which of these is /usr/include/sys/stat.h and/or to determine what "the other" is.<BR>
<BR>
I still haven't found any systems that define S_IFPIPE.<BR>
<BR>
- Jay<BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: jayk123@hotmail.com<BR>To: m3devel@elegosoft.com<BR>Subject: stat file types?<BR>Date: Sat, 24 May 2008 09:50:50 +0000<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
It SEEMS:<BR> <BR>S_IFPIPE appears to be made up by Modula-3.<BR>S_IFPORT appears to be made up by Modula-3 as a synonym for S_IFIFO.<BR> <BR>PROPOSED:<BR><BR>This code:<BR>D:\dev2\cm3.2\m3-libs\libm3\src\os\POSIX\FilePosix.i3(36): error if "fd" is not "S_IFPIPE", "S_IFPORT", or "S_IFSOCK". *)<BR>D:\dev2\cm3.2\m3-libs\libm3\src\os\POSIX\FilePosix.m3(47): | Ustat.S_IFPIPE, Ustat.S_IFPORT, Ustat.S_IFSOCK =><BR> <BR>should check for S_IFSOCK and S_IFIFO.<BR><BR>all references to and definitions of S_IFPORT and S_IFPIPE should go away.<BR> <BR>Or did some actual systems actually define either of these?<BR> <BR>Most of the *.i3 files set S_IFPORT = S_IFIFO and S_IFPIPE = 0.<BR>Many of them say that there is no S_IFPIPE in their .h file.<BR>Irix has them reversed but the same result: S_IFPORT = 0 and S_IFPIPE = S_IFIFO.<BR> <BR>Any objections?<BR><BR> - Jay<BR><BR></BLOCKQUOTE></body>
</html>