Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cifprint.c
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2.1 of the GNU Lesser General Public License 
00007   as published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU Lesser General Public 
00021   License along with this program; if not, write the Free Software 
00022   Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, 
00023   USA.
00024 
00025   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00026   Mountain View, CA 94043, or:
00027 
00028   http://www.sgi.com
00029 
00030   For further information regarding this notice, see:
00031 
00032   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00033 
00034 */
00035 
00036 
00037 static char USMID[] = "@(#) libcif/cifprint.c   30.2    07/26/96 07:19:13";
00038 
00039 
00040 /* -------------------------------------------------------------------------
00041  * Cif_Printinfo prints out statistics on the current state of interface
00042  * internal tables.
00043  * -------------------------------------------------------------------------
00044  */
00045 
00046 #define CIF_VERSION 3
00047 
00048 #ifdef _ABSOFT
00049 #include "cif.h"
00050 #else
00051 #include <cif.h>
00052 #endif
00053 
00054 #include <stdio.h>
00055 
00056 #include "cif_int.h"
00057 
00058 void Cif_Printinfo
00059 #ifdef __STDC___
00060 (FILE *fd)
00061 #else
00062 (fd)
00063 FILE *fd;                       /* file descriptor where output should go */
00064 #endif
00065 {
00066 
00067         register int fi,me;
00068 
00069         for (fi = 0; fi < CIF_FT_SIZE; fi++) {
00070                 if (_Cif_filetbl[fi].form == NOT_A_CIF) continue;
00071                 (void) fprintf (fd, "CIF file entry %2d:  form= %1d  ifull= %1d  seek= %1d  mode= %1d  fme= %3d  lme= %3d\n    rmask= %lo  fd= %d  ip= %d  optype= %c\n",
00072                         fi,
00073                         _Cif_filetbl[fi].form,
00074                         _Cif_filetbl[fi].ifull,
00075                         _Cif_filetbl[fi].seek,
00076                         _Cif_filetbl[fi].mode,
00077                         _Cif_filetbl[fi].lme,
00078                         _Cif_filetbl[fi].fme,
00079                         _Cif_filetbl[fi].rmask,
00080                         _Cif_filetbl[fi].fd,
00081                         _Cif_filetbl[fi].ip,
00082                         _Cif_filetbl[fi].optype);
00083         }
00084 
00085         for (me = 0; me < _Cif_memasize; me++) {
00086                 if (_Cif_memarea[me].used == 0 && _Cif_memarea[me].mbp == 0 && _Cif_memarea[me].msize == 0) continue;
00087                 (void) fprintf (fd, "CIF memory entry %3d:  used=%d  nme=%3d  mused= %4d  msize= %4d  mbp= %d\n",
00088                         me,
00089                         _Cif_memarea[me].used,
00090                         _Cif_memarea[me].nme,
00091                         _Cif_memarea[me].mused,
00092                         _Cif_memarea[me].msize,
00093                         _Cif_memarea[me].mbp);
00094         }
00095 
00096 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines