Changeset 18 for trunk/src/corelib
- Timestamp:
- Jun 6, 2009, 11:27:15 PM (16 years ago)
- Location:
- trunk/src/corelib/io
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/io/io.pri
r2 r18 60 60 HEADERS += io/qwindowspipewriter_p.h 61 61 SOURCES += io/qwindowspipewriter.cpp 62 63 64 65 66 67 68 69 62 70 } else:unix { 63 71 SOURCES += io/qfsfileengine_unix.cpp -
trunk/src/corelib/io/qfsfileengine_iterator_os2.cpp
r17 r18 44 44 45 45 #include <QtCore/qvariant.h> 46 47 48 46 49 47 50 #ifndef QT_NO_FSFILEENGINE -
trunk/src/corelib/io/qfsfileengine_os2.cpp
r17 r18 59 59 #include <limits.h> 60 60 #include <errno.h> 61 #if !defined(QWS) && defined(Q_OS_MAC) 62 # include <private/qcore_mac_p.h> 63 #endif 61 #include <unistd.h> 62 63 #include <pwd.h> 64 #include <grp.h> 64 65 65 66 QT_BEGIN_NAMESPACE … … 119 120 } 120 121 121 #ifdef O_CLOEXEC122 // supported on Linux >= 2.6.23; avoids one extra system call123 // and avoids a race condition: if another thread forks, we could124 // end up leaking a file descriptor...125 oflags |= O_CLOEXEC;126 #endif127 122 return oflags; 128 123 } … … 178 173 } 179 174 180 #ifndef O_CLOEXEC181 // not needed on Linux >= 2.6.23182 175 setCloseOnExec(fd); // ignore failure 183 #endif184 176 185 177 // Seek to the end when in Append mode. … … 956 948 uchar *QFSFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags) 957 949 { 950 951 952 953 958 954 Q_Q(QFSFileEngine); 959 955 Q_UNUSED(flags); … … 997 993 } 998 994 return 0; 995 999 996 } 1000 997 1001 998 bool QFSFileEnginePrivate::unmap(uchar *ptr) 1002 999 { 1000 1001 1002 1003 1003 1004 Q_Q(QFSFileEngine); 1004 1005 if (!maps.contains(ptr)) { … … 1015 1016 maps.remove(ptr); 1016 1017 return true; 1018 1017 1019 } 1018 1020 -
trunk/src/corelib/io/qfsfileengine_p.h
r2 r18 139 139 mutable uint could_stat : 1; 140 140 mutable uint tried_stat : 1; 141 #if def Q_OS_UNIX141 #if 142 142 mutable uint need_lstat : 1; 143 143 mutable uint is_link : 1;
Note:
See TracChangeset
for help on using the changeset viewer.