delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/19/10:14:14

From: lmauro AT scientist DOT com (Leo Mauro)
Subject: STAT system call
19 Jun 1998 10:14:14 -0700 :
Message-ID: <001b01bd9b45$0d05bb10$1e6e31cf.cygnus.gnu-win32@leo-nt.rd.telesystech.com>
References: <199806171932 DOT MAA20653 AT cygnus DOT com>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01BD9B23.85F5A1B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

On Wednesday, June 17, 1998 03:31 PM, Ron Parker wrote:

> I have had this problem with some configure scripts as well.  The 
> exact nature of the problem was that the system was trying to 
> stat() /dev/null.  Which does not actually exist.
[SNIP]

Indeed, /dev/null doesn't exist.  But the CygWin32 UNIX-simulation
layer fakes it (and many other /dev special files) on the fly.  I have
included a program to test what the stat() call does.  For all of you
still using text-mode mounts, the source has CRs in all the right
places :-)

On my system (B19 with Sergei's latest DLL and EGCS 1.0.2 on
NT 4.0 SP3), my test program sees /dev/null just fine.  It also sees
progname when only progname.exe exists.  Compile and try it on
your system.

And if it doesn't see /dev/null, consider upgrading to the latest
software releases.  Remember the B in B19 means Beta.  I.e.,
Caveat Emptor.

Leo
[[ stat.c : 1310 in winmail.dat ]]
------=_NextPart_000_001C_01BD9B23.85F5A1B0
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+Ih4FAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAAM4HBgATAAEAHQAAAAUAEQEB
A5AGAKAEAAAqAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAALACsAAAAAAAMALgAA
AAAAAwA2AAAAAAAeAHA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AAAA/AAAAPwAAAD8AAAA/AAAAPwAAAD8AAAA/AAAAPwAA
AD8AAAA/AAAAPwAAAH8AAAD/AAAB/wAAA/8AAAf/AAAP/yEGAABBC0YAZgAgACAAAAAAACAAIAAA
AAAAKAAAACAAAAAgAAAAAQAYAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhMbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbH
xsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxsbHxgAAAAAAAAAAAAAAAAAA
AAAAAAAAAISGhP//////////////////////////////////////////////////////////////
/////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////
////////////////////////////////////////////////////////////////////////////
/////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////////////////
/////////////////////////////////////////////////////////8bHxgAAAAAAAAAAAAAA
AAAAAAAAAAAAAISGhP//////////////////////////////////////////////////////////
/////////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////
////////////////////////////////////////////////////////////////////////////
/////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////////////
/4QAAIQAAIQAAIQAAIQAAIQAAIQAAP///////////////////////////////8bHxgAAAAAAAAAA
AAAAAAAAAAAAAAAAAISGhP///////////////////////////4SGhIQAAIQAAIQAAIQAAIQAAIQA
AIQAAISGhP///////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//
/////////////////////4QAAIQAAIQAAISGhP///////////4SGhIQAAIQAAIQAAP//////////
/////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP///////////////////////4QA
AIQAAIQAAP///////////////////4QAAIQAAIQAAP///////////////////////8bHxgAAAAAA
AAAAAAAAAAAAAAAAAAAAAISGhP///////////////////////4QAAIQAAIQAAP//////////////
/////////////////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISG
hP///////////////////////4QAAIQAAIQAAP//////////////////////////////////////
/////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////
/4QAAIQAAIQAAP///////////////////////////////////////////////////////8bHxgAA
AAAAAAAAAAAAAAAAAAAAAAAAAISGhP///////////////////////4QAAIQAAIQAAP//////////
/////////////////////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAA
AISGhP///////////////////////4QAAIQAAIQAAP//////////////////////////////////
/////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////
/////4QAAIQAAIQAAP///////////////////////////////////////////////////////8bH
xgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP///////////////////////4QAAIQAAIQAAP//////
/////////////////////////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAA
AAAAAISGhP///////////////////////4QAAIQAAIQAAP///////////////////4QAAIQAAIQA
AP///////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////
/////////4QAAIQAAIQAAISGhP///////////4SGhIQAAIQAAIQAAP//////////////////////
/8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP///////////////////////////4SGhIQAAIQA
AIQAAIQAAIQAAIQAAIQAAISGhP///////////////////////////8bHxgAAAAAAAAAAAAAAAAAA
AAAAAAAAAISGhP///////////////////////////////4QAAIQAAIQAAIQAAIQAAIQAAIQAAP//
/////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////
////////////////////////////////////////////////////////////////////////////
/////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////////////////
/////////////////////////////////////////////////////////8bHxgAAAAAAAAAAAAAA
AAAAAAAAAAAAAISGhP//////////////////////////////////////////////////////////
/////////////////////////////////8bHxgAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////
/////////////////////////////////////////////////////////////////4SGhAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////////////
/////////////////////////////////////////4SGhP///////8bHxoSGhAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAISGhP//////////////////////////////////////////////////////
/////////////////4SGhP///8bHxoSGhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//
/////////////////////////////////////////////////////////////////////4SGhMbH
xoSGhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////////
/////////////////////////////////////////////4SGhISGhAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAISGhP//////////////////////////////////////////////////
/////////////////////4SGhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAISG
hISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISGhISG
hAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAKCiAgWQBgBoAQAAEQAA
AAMAIA59EQAAHgABMAEAAAAHAAAAc3RhdC5jAAACAQI3AQAAAAAAAAAeAAM3AQAAAAMAAAAuYwAA
AwAFNwEAAAAeAAc3AQAAAAcAAABzdGF0LmMAAAMACzf/////AwD6fwAAAABAAPt/AEDdo1dFswxA
APx/AEDdo1dFswwDAP1/AAAAAAsA/n8AAAAAAwAhDsWtAAACAfgPAQAAABAAAAC5ChGbttzREbMH
AMCoNHAqAgH6DwEAAAAQAAAAuQoRm7bc0RGzBwDAqDRwKgIB+w8BAAAAgQAAAAAAAAA4obsQBeUQ
GqG7CAArKlbCAABQU1RQUlguRExMAAAAAAAAAABOSVRB+b+4AQCqADfZbgAAAEM6XFdJTk5UXFBy
b2ZpbGVzXGxtYXVyb1xBcHBsaWNhdGlvbiBEYXRhXE1pY3Jvc29mdFxPdXRsb29rXG91dGxvb2su
cHN0AAAAAAMA/g8HAAAAF1g=

------=_NextPart_000_001C_01BD9B23.85F5A1B0--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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