stdio.h revision dafcb997e390efa4423883dafd100c975c4095d6
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington * Copyright (C) 2000, 2001 Internet Software Consortium.
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * Permission to use, copy, modify, and distribute this software for any
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * purpose with or without fee is hereby granted, provided that the above
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * PERFORMANCE OF THIS SOFTWARE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews/* $Id: stdio.h,v 1.7 2004/03/05 05:11:01 marka Exp $ */
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrenceisc_stdio_open(const char *filename, const char *mode, FILE **fp);
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrenceisc_stdio_seek(FILE *f, long offset, int whence);
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrenceisc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f,
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrenceisc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f,
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * These functions are wrappers around the corresponding stdio functions,
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * returning a detailed error code in the form of an an isc_result_t. ANSI C
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * does not guarantee that stdio functions set errno, hence these functions
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * must use platform dependent methods (e.g., the POSIX errno) to construct the
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * error code.
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * Invoke fsync() on the file descriptor underlying an stdio stream, or an
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * equivalent system-dependent operation. Note that this function has no
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrence * direct counterpart in the stdio library.
ac9e556e494750eb6e454c337d6632fa395f24d8David Lawrence#endif /* ISC_STDIO_H */