| # kdecore Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kde_file.h

    00001 /*
    00002    This file is part of the KDE libraries
    00003    Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
    00004    Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
    00005
    00006    This library is free software; you can redistribute it and/or
    00007    modify it under the terms of the GNU Library General Public
    00008    License version 2 as published by the Free Software Foundation.
    00009
    00010    This library is distributed in the hope that it will be useful,
    00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013    Library General Public License for more details.
    00014
    00015    You should have received a copy of the GNU Library General Public License
    00016    along with this library; see the file COPYING.LIB.  If not, write to
    00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018    Boston, MA 02111-1307, USA.
    00019 */
    00020
    00021 #ifndef _KDE_FILE_H_
    00022 #define _KDE_FILE_H_
    00023
    00030 #include <unistd.h>
    00031 #ifdef _WIN32
    00032 #include <kde_file_win.h>
    00033 #endif
    00034
    00035 #if (defined _LFS64_LARGEFILE) && (defined _LARGEFILE64_SOURCE)
    00036
    00053 #define KDE_stat        ::stat64
    00054 #define KDE_lstat       ::lstat64
    00055 #define KDE_fstat       ::fstat64
    00056 #define KDE_open        ::open64
    00057 #define KDE_lseek       ::lseek64
    00058 #define KDE_fseek       ::fseek64
    00059 #define KDE_ftell       ::ftell64
    00060 #define KDE_fgetpos     ::fgetpos64
    00061 #define KDE_fsetpos     ::fsetpos64
    00062 #define KDE_readdir     ::readdir64
    00063 #define KDE_sendfile    ::sendfile64
    00064 #define KDE_struct_stat     struct stat64
    00065 #define KDE_struct_dirent   struct dirent64
    00066 #define KDE_rename              ::rename
    00067 /* TODO: define for win32 */
    00068
    00069 #else /* !_LFS64_LARGEFILE */
    00070
    00074 #ifdef _WIN32
    00075 #define KDE_stat        kdewin32_stat
    00076 #define KDE_lstat       kdewin32_lstat
    00077 #define KDE_open        kdewin32_open
    00078 #define KDE_rename      kdewin32_rename
    00079 #else /* unix */
    00080 #define KDE_stat        ::stat
    00081 #define KDE_lstat       ::lstat
    00082 #define KDE_open        ::open
    00083 #define KDE_rename      ::rename
    00084 #endif
    00085
    00086 #define KDE_fstat       ::fstat
    00087 #define KDE_lseek       ::lseek
    00088 #define KDE_fseek       ::fseek
    00089 #define KDE_ftell       ::ftell
    00090 #define KDE_fgetpos     ::fgetpos
    00091 #define KDE_fsetpos     ::fsetpos
    00092 #define KDE_readdir     ::readdir
    00093 #define KDE_sendfile    ::sendfile
    00094 #define KDE_struct_stat     struct stat
    00095 #define KDE_struct_dirent   struct dirent
    00096 #endif
    00097
    00098
    00099 #ifdef _LFS64_STDIO
    00100 #define KDE_fopen       ::fopen64
    00101 #define KDE_freopen ::freopen64
    00102 /* TODO: define for win32 */
    00103 #else
    00104 #ifdef _WIN32
    00105 #define KDE_fopen       kdewin32_fopen
    00106 #define KDE_freopen kdewin32_freopen
    00107 #else /* unix */
    00108 #define KDE_fopen       ::fopen
    00109 #endif
    00110 #endif
    00111
    00112 /* functions without 64-bit version but wrapped for compatibility reasons */
    00113 #ifdef _WIN32
    00114 #define KDE_fdopen  kdewin32_fdopen
    00115 #else /* unix */
    00116 #define KDE_fdopen  ::fdopen
    00117 #endif
    00118
    00119 #endif /* _KDE_FILE_H_ */

This file is part of the documentation for kdecore Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:18:04 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003