/*
 *
 * tfile.h  -- Definition for internal 'tfile's.
 *
 * $Header: /afs/sipb.mit.edu/project/discuss/.cvsroot/discuss/source/include/discuss/tfile.h,v 1.4 1994/09/19 03:49:07 raeburn Exp $
 * $Log: tfile.h,v $
 * Revision 1.4  1994/09/19  03:49:07  raeburn
 * include sys/types.h; prototype tcreate
 *
 * Revision 1.3  1992/06/26 02:17:40  raeburn
 * getting in sync with current source tree
 *
 * Revision 1.2  91/09/30  04:58:27  raeburn
 * Added RCS headers; changed "trecord" name to "_tfile".
 * 
 */

#include <sys/types.h>

struct _tfile {
     int (*proc)();				/* file proc */
     off_t size;				/* file size */
     char *infop;				/* pointer to misc info */
     int info;
};

typedef struct _tfile *tfile;

#define TFOPEN 1
#define TFCLOSE 2
#define TFREAD 3
#define TFWRITE 4
#define TFDESTROY 5
#define TFCONTROL 6

/* TF Control orders (start high just for fun) */

#define TFC_FORCE_NL 15

#ifdef __STDC__
tfile tcreate (off_t, char *, int, int (*)());
#else
tfile tcreate();
#endif
