Subject: Re: C file operations From: Chris Sharman Date: Thu, 23 Sep 2004 18:02:48 +0100 Newsgroups: comp.os.vms Ed Vogel wrote: > "Chris Sharman" wrote in message > news:cirsm6$3ag$1$830fa7a5@news.demon.co.uk... > >> Is ther a way (supported or otherwise) to get at the underlying file >> structures of standard C files ? > > > I've never used this mechanism, but reading the CRTL > documentation, it looks like this is possible. The fopen > function will accept all the optional arguments described > in the creat function doc. One of these optional args > is called acc_callback. It's followed by a function pointer > that points to a call-back routine that is invoked just > before the sys$create or sys$open call. It's passed > the address of the RMS FAB and RAB. > > So..have a look at the CRTL documentation. Excellent - should have spotted that one, thanks - that enables me to do everything I want, with minimal impact on the surrounding code. David Murphy's code (posted by McKinney) would do too, but stable and supported is obviously best. Thanks, Chris