/*
 * NAME:
 *	netio - interface stdio to read_net and write_net
 *
 * DESCRIPTION:
 *	These routines simply allow encryption hooks to be used with
 *	applications that use stdio.
 *	
 * AUTHOR:
 *	Simon J. Gerraty <sjg@quick.com.au>
 */
/*
 * RCSid:
 *	$Id: netio.h,v 1.2 1996/08/20 13:22:39 sjg Exp $
 *	
 *      @(#)Copyright (c) 1996 Simon J. Gerraty.
 *      
 *      This is free software.  It comes with NO WARRANTY.
 *      Permission to use, modify and distribute this source code 
 *      is granted subject to the following conditions.
 *      1/ that the above copyright notice and this notice 
 *      are preserved in all copies and that due credit be given 
 *      to the author.  
 *      2/ that any changes to this code are clearly commented 
 *      as such so that the author does not get blamed for bugs 
 *      other than his own.
 *      
 *      Please send copies of changes and bug-fixes to:
 *      sjg@quick.com.au
 */
#ifndef _NETIO_H_
#define _NETIO_H_

#include <sys/cdefs.h>

# define read		read_net
# define write		write_net
# define fgets		net_fgets
# define fprintf	net_fprintf
# define vfprintf	net_vfprintf
# define fflush		net_fflush
# define fclose		net_fclose
# undef getc
# define getc		net_fgetc
# define fgetc		net_fgetc
# undef putc
# define putc		net_fputc
# define fputc		net_fputc

#endif /* _NETIO_H_ */

__BEGIN_DECLS

int     net_fprintf      __P((FILE * /* fp */, const char * /* fmt */, ...));
#ifdef va_start
int     net_vfprintf     __P((FILE * /* fp */, const char * /* fmt */, va_list  /* ap */));
#endif
int     net_fflush       __P((FILE * /* fp */));
int     net_fclose       __P((FILE * /* fp */));
int     net_fgetc        __P((FILE * /* fp */));
int     net_fputc        __P((int  /* c */, FILE * /* fp */));
char *  net_fgets        __P((char * /* buf */, int  /* nbytes */, FILE * /* fp */));


__END_DECLS
