/* Define if you don't have vprintf but do have _doprnt. */
/* #define HAVE_DOPRNT 1 */
-/* Define if you have the fflush function. */
-#define HAVE_FFLUSH 1
-
-/* Define if you have the fsync function. */
-/* #define HAVE_FSYNC 1 */
-
/* Define if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1
/* Define if you don't have vprintf but do have _doprnt. */
/* #define HAVE_DOPRNT 1 */
-/* Define if you have the fflush function. */
-#if defined(_WIN32_WCE) && (_WIN32_WCE >= 200)
-# define HAVE_FFLUSH 1
-#endif
-
-/* Define if you have the fsync function. */
-/* #define HAVE_FSYNC 1 */
-
/* Define if you have the gethostbyaddr function. */
#define HAVE_GETHOSTBYADDR 1
/* Define if you have the setmode function. */
#define HAVE_SETMODE 1
-/* Define if you have the fflush function. */
-#define HAVE_FFLUSH 1
-
-/* Define if you have the fsync function. */
-/* #define HAVE_FSYNC 1 */
-
/* Define if you have the ftruncate function. */
#define HAVE_FTRUNCATE 1
totalsize-writeleft, totalsize, REQUEST_DUMP);
}
-#ifdef HAVE_FFLUSH
- do {
- res = fflush(dump);
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error flushing file %s error: %d %s",
- REQUEST_DUMP, error, strerror(error));
-#endif
-
-#ifdef HAVE_FSYNC
- do {
- res = fsync(fileno(dump));
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error syncing file %s error: %d %s",
- REQUEST_DUMP, error, strerror(error));
-#endif
-
do {
res = fclose(dump);
} while(res && ((error = ERRNO) == EINTR));
buffer += written;
} while(count>0);
-#ifdef HAVE_FFLUSH
- do {
- res = fflush(dump);
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error flushing file %s error: %d %s",
- RESPONSE_DUMP, error, strerror(error));
-#endif
-
-#ifdef HAVE_FSYNC
- do {
- res = fsync(fileno(dump));
- } while(res && ((error = ERRNO) == EINTR));
- if(res)
- logmsg("Error syncing file %s error: %d %s",
- RESPONSE_DUMP, error, strerror(error));
-#endif
-
do {
res = fclose(dump);
} while(res && ((error = ERRNO) == EINTR));