| 1 |
sysadm |
1.1 |
/*
|
| 2 |
|
|
Copyright (C) 2000 Marco Ziech
|
| 3 |
|
|
Copyright (C) 2000 Ross Combs (rocombs@cs.nmsu.edu)
|
| 4 |
|
|
|
| 5 |
|
|
This program is free software; you can redistribute it and/or modify
|
| 6 |
|
|
it under the terms of the GNU General Public License as published by
|
| 7 |
|
|
the Free Software Foundation; either version 2 of the License, or
|
| 8 |
|
|
(at your option) any later version.
|
| 9 |
|
|
|
| 10 |
|
|
This program is distributed in the hope that it will be useful,
|
| 11 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
|
|
GNU General Public License for more details.
|
| 14 |
|
|
|
| 15 |
|
|
You should have received a copy of the GNU General Public License
|
| 16 |
|
|
along with this program; if not, write to the Free Software
|
| 17 |
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 18 |
|
|
*/
|
| 19 |
|
|
#ifndef JUST_NEED_TYPES
|
| 20 |
|
|
#ifndef INCLUDED_FILEIO_PROTOS
|
| 21 |
|
|
#define INCLUDED_FILEIO_PROTOS
|
| 22 |
|
|
|
| 23 |
|
|
#define JUST_NEED_TYPES
|
| 24 |
|
|
#include <stdio.h>
|
| 25 |
|
|
#include "compat/uint.h"
|
| 26 |
|
|
#undef JUST_NEED_TYPES
|
| 27 |
|
|
|
| 28 |
|
|
extern void file_rpush(FILE *f);
|
| 29 |
|
|
extern void file_rpop(void);
|
| 30 |
|
|
extern void file_wpush(FILE *f);
|
| 31 |
|
|
extern void file_wpop(void);
|
| 32 |
|
|
|
| 33 |
|
|
extern t_uint8 file_readb(void);
|
| 34 |
|
|
extern t_uint16 file_readw_le(void);
|
| 35 |
|
|
extern t_uint16 file_readw_be(void);
|
| 36 |
|
|
extern t_uint32 file_readd_le(void);
|
| 37 |
|
|
extern t_uint32 file_readd_be(void);
|
| 38 |
|
|
extern int file_writeb(t_uint8 u);
|
| 39 |
|
|
extern int file_writew_le(t_uint16 u);
|
| 40 |
|
|
extern int file_writew_be(t_uint16 u);
|
| 41 |
|
|
extern int file_writed_le(t_uint32 u);
|
| 42 |
|
|
extern int file_writed_be(t_uint32 u);
|
| 43 |
|
|
|
| 44 |
|
|
#endif
|
| 45 |
|
|
#endif
|