Commit b22d62aa authored by Danny Mayer's avatar Danny Mayer
Browse files

ntfile FILE replacement headers

parent bcf58042
/*
* Copyright (C) 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
* INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ntfile.h,v 1.1 2001/07/06 05:56:25 mayer Exp $ */
/* This file has been necessitated by the fact that the iov array is local
* to the module, so passing the FILE ptr to a file I/O function in a
* different module or DLL will cause the application to fail to find the
* I/O channel and the application will terminate. The standard file I/O
* functions are redefined to call these routines instead and there will
* be just the one iov to deal with.
*/
FILE*
isc_ntfile_fopen(const char *filename, const char *mode);
int
isc_ntfile_fclose(FILE *f);
int
isc_ntfile_fseek(FILE *f, long offset, int whence);
size_t
isc_ntfile_fread(void *ptr, size_t size, size_t nmemb, FILE *f);
size_t
isc_ntfile_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *f);
int
isc_ntfile_flush(FILE *f);
int
isc_ntfile_sync(FILE *f);
FILE*
isc_ntfile_getaddress(int r);
int
isc_ntfile_fprintf(FILE *fp, const char *format, ...);
int
isc_ntfile_vfprintf(FILE *, const char *, va_list);
int
isc_ntfile_fputc(int iv, FILE *fp);
int
isc_ntfile_fputs(const char *bf, FILE *fp);
int
isc_ntfile_fgetc(FILE *fp);
int
isc_ntfile_fgetpos(FILE *, fpos_t *pos);
char *
isc_ntfile_fgets(char *ch, int r, FILE *fp);
int
isc_ntfile_getc(FILE *fp);
FILE *
isc_ntfile_freopen(const char *path, const char *mode, FILE *fp);
FILE *
isc_ntfile_fdopen(int handle, const char *mode);
int
isc_ntfile_open(const char *fn, int flags, ...);
int
isc_ntfile_close(int fd);
int
isc_ntfile_read(int fd, char *buf, int len);
int
isc_ntfile_write(int fd, char *buf, int len);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment