/usr/include/python2.7/MMTK/readdcd.h is in python-mmtk 2.7.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /***************************************************************************
*cr
*cr (C) Copyright 1995 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
***************************************************************************/
/***************************************************************************
* RCS INFORMATION:
*
* $RCSfile: ReadDCD.h,v $
* $Author: billh $ $Locker: $ $State: Exp $
* $Revision: 1.3 $ $Date: 1995/05/11 23:42:25 $
*
***************************************************************************
* DESCRIPTION:
*
* C routines to read and write binary DCD files (which use the goofy
* FORTRAN UNFORMATTED format). These routines are courtesy of
* Mark Nelson (autographs available upon request and $1 tip).
*
***************************************************************************/
#ifndef READ_DCD_H
#define READ_DCD_H
#include <stdlib.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <time.h>
/* DEFINE ERROR CODES THAT MAY BE RETURNED BY DCD ROUTINES */
#define DCD_DNE -2 /* DCD file does not exist */
#define DCD_OPENFAILED -3 /* Open of DCD file failed */
#define DCD_BADREAD -4 /* read call on DCD file failed */
#define DCD_BADEOF -5 /* premature EOF found in DCD file */
#define DCD_BADFORMAT -6 /* format of DCD file is wrong */
#define DCD_FILEEXISTS -7 /* output file already exists */
#define DCD_BADMALLOC -8 /* malloc failed */
/* FUNCTION ALLUSIONS */
FILE *open_dcd_read(const char *); /* Open a DCD file for reading */
int read_dcdheader(FILE *, int*, int*, int*, int*, float*, int*, int**);
/* Read the DCD header */
int read_dcdstep(FILE *, int, float*, float*, float*, int, int, int*);
/* Read a timestep's values */
FILE *open_dcd_write(char *); /* Open a DCD file for writing */
int write_dcdstep(FILE *, int, float *, float *, float *);
/* Write out a timesteps values */
int write_dcdheader(FILE *, char*, int, int, int, int, double);
/* Write a dcd header */
void close_dcd_read(FILE *, int, int *);
/* Close a dcd file open for reading */
void close_dcd_write(FILE *); /* Close a dcd file open for writing */
#endif
/* ! DCDLIB_H */
|