0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2000, 2001, 2004-2007, 2013, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater/* $Id: stdio.h,v 1.13 2007/06/19 23:47:18 tbox Exp $ */
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * These functions are wrappers around the corresponding stdio functions.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * They return a detailed error code in the form of an an isc_result_t. ANSI C
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * does not guarantee that stdio functions set errno, hence these functions
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * must use platform dependent methods (e.g., the POSIX errno) to construct the
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * error code.
d8e34837cd6c88c42b3ecdb9107a43ecf8252e79David Lawrenceisc_stdio_open(const char *filename, const char *mode, FILE **fp);
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 * 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 */