🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9585

"stat" system call problem

#9585
From: Hsuan Chang
Date: Tue, 13 Dec 1988 05:34
26 lines
1623 bytes
It escaped me last when I had a glance at the mention of the "fstat"
problem a while back on SunSpots.  Now, I am having this terrible problem
with "stat", which is supposed to be bullet-proof.  I hope my problem is
related.

It goes like this:
		stat(file, &buf)
	returns a buffer via buf which has all the info concerning
	file.  buf.st_size is said to have the size of the file
	in bytes.  It worked fine until lately when I recompiled my
	program. It started to return 1 to me no matter what
	the size of the file is!  To make the problem even more
	annoying, it DID return a few times the correct size!
	No, I am not kidding! (frequency of getting it right: <1%)

I checked the latest version of TFM (dated: Last Change: 22 Nov '87
Release 4.0), and failed to find any trace of changes to the structure of
the buffer or to the specification of the function.  Well, does any one of
you folk have the same ugly experience?

Hsuan Chang  				hsc@vuse.vanderbilt.edu
Image Processing Lab
Computer Science Dept    
Vanderbilt University   
Nashville, Tn 37235    
(615) 322-[2949|0962] 
Technical Details
Message-ID: <8812010416.AA29313@ip0.>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: hsc@vuse.vanderbilt.edu (Hsuan Chang)
Newsgroups: comp.sys.sun
Subject: "stat" system call problem
Message-ID: <8812010416.AA29313@ip0.>
Date: 13 Dec 88 05:34:22 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 26
Approved: Sun-Spots@rice.edu
Original-Date: Wed, 30 Nov 88 22:16:38 CST
X-Sun-Spots-Digest: Volume 7, Issue 49, message 1 of 18