Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file.cpp
Show First 20 Lines • Show All 858 Lines • ▼ Show 20 Line(s) | |||||
859 | // regular stat struct | 859 | // regular stat struct | ||
860 | inline int STAT(const char* path, QT_STATBUF * buff) { | 860 | inline int STAT(const char* path, QT_STATBUF * buff) { | ||
861 | return QT_LSTAT(path, buff); | 861 | return QT_LSTAT(path, buff); | ||
862 | } | 862 | } | ||
863 | inline static mode_t stat_mode(QT_STATBUF &buf) { return buf.st_mode; } | 863 | inline static mode_t stat_mode(QT_STATBUF &buf) { return buf.st_mode; } | ||
864 | inline static dev_t stat_dev(QT_STATBUF &buf) { return buf.st_dev; } | 864 | inline static dev_t stat_dev(QT_STATBUF &buf) { return buf.st_dev; } | ||
865 | inline static ino_t stat_ino(QT_STATBUF &buf) { return buf.st_ino; } | 865 | inline static ino_t stat_ino(QT_STATBUF &buf) { return buf.st_ino; } | ||
866 | inline static off_t stat_size(QT_STATBUF &buf) { return buf.st_size; } | 866 | inline static off_t stat_size(QT_STATBUF &buf) { return buf.st_size; } | ||
867 | #ifndef Q_OS_WIN | ||||
867 | inline static uid_t stat_uid(QT_STATBUF &buf) { return buf.st_uid; } | 868 | inline static uid_t stat_uid(QT_STATBUF &buf) { return buf.st_uid; } | ||
868 | inline static gid_t stat_gid(QT_STATBUF &buf) { return buf.st_gid; } | 869 | inline static gid_t stat_gid(QT_STATBUF &buf) { return buf.st_gid; } | ||
870 | #endif | ||||
869 | inline static time_t stat_atime(QT_STATBUF &buf) { return buf.st_atime; } | 871 | inline static time_t stat_atime(QT_STATBUF &buf) { return buf.st_atime; } | ||
870 | inline static time_t stat_mtime(QT_STATBUF &buf) { return buf.st_mtime; } | 872 | inline static time_t stat_mtime(QT_STATBUF &buf) { return buf.st_mtime; } | ||
871 | #endif | 873 | #endif | ||
872 | 874 | | |||
873 | bool FileProtocol::createUDSEntry(const QString &filename, const QByteArray &path, UDSEntry &entry, | 875 | bool FileProtocol::createUDSEntry(const QString &filename, const QByteArray &path, UDSEntry &entry, | ||
874 | short int details) | 876 | short int details) | ||
875 | { | 877 | { | ||
876 | assert(entry.count() == 0); // by contract :-) | 878 | assert(entry.count() == 0); // by contract :-) | ||
▲ Show 20 Lines • Show All 665 Lines • Show Last 20 Lines |