]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/xio.h
Add support for suppressing different NFS versions.
[nfs-utils.git] / support / include / xio.h
1 /*
2  * xio.h        Declarations for simple parsing functions.
3  *
4  */
5
6 #ifndef XIO_H
7 #define XIO_H
8
9 #include <stdio.h>
10
11 typedef struct XFILE {
12         FILE            *x_fp;
13         int             x_line;
14 } XFILE;
15
16 XFILE   *xfopen(char *fname, char *type);
17 int     xflock(char *fname, char *type);
18 void    xfunlock(int lockid);
19 void    xfclose(XFILE *xfp);
20 int     xgettok(XFILE *xfp, char sepa, char *tok, int len);
21 int     xgetc(XFILE *xfp);
22 void    xungetc(int c, XFILE *xfp);
23 void    xskip(XFILE *xfp, char *str);
24 char    xskipcomment(XFILE *xfp);
25
26 #endif /* XIO_H */