From: murray@motto.UUCP (Murray S. Kucherawy)
Subject: C file access in VMS
Date: 18 Jul 91 15:31:53 GMT [thread overview]
Message-ID: <399@motto.UUCP> (raw)
Under VMS V5.4-1, we're auditing CONTROL access failures on files, and
the code below is causing these alarms. Can anyone figure out why
and possibly suggest a fix?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FILE *open_file_for_read( file_name)
char file_name[SIZE_OF_FILE_NAME];
{
FILE *p_file;
if ( (p_file = fopen( file_name, "r")) == NULL)
{
printf("\n\nFailed to open file %s for reading.\n\n", file_name);
exit(1);
}
else return( p_file);
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Thanks in advance...
=============================== Murray S. Kucherawy ==========================
Motorola Canada, Ltd. Private Systems Division, Toronto [on work term]
University of Waterloo, Ontario, Canada 2B Math/Computer Science
Internet: murray@motto.UUCP (work) mskucherawy@watmath.UWaterloo.ca (UW)
UUCP: uunet!utai!lsuc!motto!murray uunet!watmath!mskucherawy
next reply other threads:[~1991-07-18 15:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-07-18 15:31 Murray S. Kucherawy [this message]
1991-07-19 13:30 ` C file access in VMS Lloyd Kremer
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox