home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: VAX c
- Date: 30 Dec 1992 11:51:29 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 36
- Distribution: world
- Message-ID: <1hs2g1INNnqs@gap.caltech.edu>
- References: <9212290122.AA05517@hermann.barra.COM>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <9212290122.AA05517@hermann.barra.COM>, louis@BARRA.COM (Louis Dunne) writes:
- >On Dec 26, 7:35am, Carl J Lydick wrote:
- >>Actually, you don't have to go all the way to the FAB, just to the RAB. And
- >>the "unsupported and undocumented" function that DEC support was talking about
- >>was almost certainly the one that returns the RAB associated with a file
- >>descriptor.
- >
- > 1. Does anyone know the function (undocumented or not) which will
- > return a RAB associated with a stream-id.
-
- Sorry, my mistake. I was confusing two different RTLs. If you happened to be
- using FORTRAN, the routine you'd want would be FOR$RAB. There appears to be no
- corresponding routine for the VAXC RTL. Again, my apologies.
-
- > 2. The "unsupported and undocumented" function that DEC support
- > talked about was probably fsync(), which will force RMS to
- > flush it's buffers, for a given file *number*.
-
- You're right. fsync() is what you want to use under VAX C. But don't forget
- to fflush() first (and use fdopen() to get a file pointer for fflush() if
- necessary). If you've got a file pointer:
- fflush(fp);
- fsync(fileno(fp));
- If you've got a file descriptor:
- fflush(fdopen(fd, "a"));
- fsync(fd);
-
- For the third time, my abject apologies for the confusion I've caused.
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-