🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9586

"stat" problem, follow up

#9586
From: Hsuan Chang
Date: Tue, 13 Dec 1988 05:54
23 lines
1513 bytes
Hi, folks.  Remember I was pleaing for help about the system call "stat"
problem?  Well, I blamed the wrong one (my appology to the community).
But the situation has gotten worse. 

I searched, with helps from my co-workers, and found that the problem was
with the system call "open".  (sounds odd, isn't it.)  Before the program
reaches the stat (well, fstat(fd, &buf) to be accurate) it does an "fopen"
and an "open" on the same file, and that's where the truncation takes
place.  Further studies with RTFM revealed nothing but that you can call
"open" with only the file name as the argument, not as the what the manual
says! (I called it with "r" though).  After I had a few files truncated to
zeroes I decided to quit working on this.

Would any one of you like to try to find out what's going on?  Let me know
your findings.  Thanks.

Hsuan Chang
Image Processing Lab
Computer Science Dept
Vanderbilt University, Nashville, Tn 37235
(615) 322-0962
hsc
hsc@vuse.vanderbilt.edu
Technical Details
Message-ID: <8812012215.AA13806@ip1.>
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" problem, follow up
Message-ID: <8812012215.AA13806@ip1.>
Date: 13 Dec 88 05:54:29 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 23
Approved: Sun-Spots@rice.edu
Original-Date: Thu, 1 Dec 88 16:15:36 CST
X-Sun-Spots-Digest: Volume 7, Issue 49, message 2 of 18