Open System Services Programmer's Guide
if(typeinfo[0] == 3) {
printf("object type = %d\n", typeinfo[2]);
printf("file type = %d\n", typeinfo[3]);
printf("file code = %d\n", typeinfo[4]);
}
return(0);
}
Example 24 shows the use of the Guardian FILE_OPEN_ and FILE_GETINFO_ procedures to get
information about an OSS file. The file is opened, and the file number is passed to the
FILE_GETINFO_ procedure.
76 Managing Files