| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qsharedmemory_unix.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | - | |
| 7 | - | |
| 8 | QSharedMemoryPrivate::QSharedMemoryPrivate() | - |
| 9 | : QObjectPrivate(), memory(0), size(0), error(QSharedMemory::NoError), | - |
| 10 | - | |
| 11 | systemSemaphore(QString()), lockedByMe(false), | - |
| 12 | - | |
| 13 | - | |
| 14 | unix_key(0) | - |
| 15 | - | |
| 16 | - | |
| 17 | - | |
| 18 | { | - |
| 19 | } executed 3612 times by 3 tests: end of blockExecuted by:
| 3612 |
| 20 | - | |
| 21 | void QSharedMemoryPrivate::setErrorString(QLatin1String function) | - |
| 22 | { | - |
| 23 | - | |
| 24 | switch ((*__errno_location ())) { | - |
| 25 | case never executed: 13:case 13:never executed: case 13: | 0 |
| 26 | errorString = QSharedMemory::tr("%1: permission denied").arg(function); | - |
| 27 | error = QSharedMemory::PermissionDenied; | - |
| 28 | break; never executed: break; | 0 |
| 29 | case executed 2 times by 1 test: 17:case 17:Executed by:
executed 2 times by 1 test: case 17:Executed by:
| 2 |
| 30 | errorString = QSharedMemory::tr("%1: already exists").arg(function); | - |
| 31 | error = QSharedMemory::AlreadyExists; | - |
| 32 | break; executed 2 times by 1 test: break;Executed by:
| 2 |
| 33 | case never executed: 2:case 2:never executed: case 2: | 0 |
| 34 | errorString = QSharedMemory::tr("%1: doesn't exist").arg(function); | - |
| 35 | error = QSharedMemory::NotFound; | - |
| 36 | break; never executed: break; | 0 |
| 37 | case never executed: 24:case 24:never executed: case 24: | 0 |
| 38 | case never executed: 12:case 12:never executed: case 12: | 0 |
| 39 | case never executed: 28:case 28:never executed: case 28: | 0 |
| 40 | errorString = QSharedMemory::tr("%1: out of resources").arg(function); | - |
| 41 | error = QSharedMemory::OutOfResources; | - |
| 42 | break; never executed: break; | 0 |
| 43 | default never executed: :default:never executed: default: | 0 |
| 44 | errorString = QSharedMemory::tr("%1: unknown error %2").arg(function).arg((*__errno_location ())); | - |
| 45 | error = QSharedMemory::UnknownError; | - |
| 46 | - | |
| 47 | - | |
| 48 | - | |
| 49 | } never executed: end of block | 0 |
| 50 | } | - |
| 51 | - | |
| 52 | - | |
| Switch to Source code | Preprocessed file |