stdio.h File Reference
#include <cstdio>
Include dependency graph for stdio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXPATHLEN   SQUID_MAXPATHLEN
 

Macro Definition Documentation

#define MAXPATHLEN   SQUID_MAXPATHLEN

64-bit broken <cstdio>

<stdio.h> provides fgetpos64, fopen64 if USE_FILE_OFFSET64 is defined. It then checks whether a gcc-specific __REDIRECT macro is available (defined in <sys/cdefs.h>, depending on __GNUC begin available). If it is not available, it does a preprocessor #define. Which <cstdio> undefines, with this comment: "// Get rid of those macros defined in <stdio.h> in lieu of real functions.". When it does a namespace redirection ("namespace std { using ::fgetpos; }") it goes blam, as fgetpos64 is available, while fgetpos is not.

Definition at line 62 of file stdio.h.

Referenced by _db_rotate_log(), MimeIcon::created(), Fs::Ufs::UFSSwapDir::createSwapSubDirs(), Fs::Ufs::UFSSwapDir::DirClean(), Fs::Ufs::UFSSwapDir::fullPath(), TemplateFile::loadDefault(), Fs::Ufs::UFSSwapDir::logFile(), logfile_mod_stdio_rotate(), logfileOpen(), mainSetCwd(), mainStartScript(), rotate(), testRock::setUp(), Fs::Ufs::UFSSwapDir::swapSubDir(), TemplateFile::tryLoadTemplate(), and unlinkdUnlink().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors