Home
last modified time | relevance | path

Searched refs:mFd (Results 1 – 25 of 234) sorted by relevance

12345678910

/dports/lang/spidermonkey60/firefox-60.9.0/memory/volatile/
H A DVolatileBufferAshmem.cpp29 mFd(-1) {} in VolatileBuffer()
41 mFd = open("/" ASHMEM_NAME_DEF, O_RDWR); in Init()
42 if (mFd < 0) { in Init()
46 if (ioctl(mFd, ASHMEM_SET_SIZE, mSize) < 0) { in Init()
57 if (mFd >= 0) { in Init()
58 close(mFd); in Init()
59 mFd = -1; in Init()
77 close(mFd); in ~VolatileBuffer()
93 return ioctl(mFd, ASHMEM_PIN, &pin) == ASHMEM_NOT_PURGED; in Lock()
105 ioctl(mFd, ASHMEM_UNPIN, &pin); in Unlock()
[all …]
/dports/www/firefox-legacy/firefox-52.8.0esr/memory/volatile/
H A DVolatileBufferAshmem.cpp29 , mFd(-1) in VolatileBuffer()
45 mFd = open("/" ASHMEM_NAME_DEF, O_RDWR); in Init()
46 if (mFd < 0) { in Init()
50 if (ioctl(mFd, ASHMEM_SET_SIZE, mSize) < 0) { in Init()
61 if (mFd >= 0) { in Init()
62 close(mFd); in Init()
63 mFd = -1; in Init()
82 close(mFd); in ~VolatileBuffer()
100 return ioctl(mFd, ASHMEM_PIN, &pin) == ASHMEM_NOT_PURGED; in Lock()
114 ioctl(mFd, ASHMEM_UNPIN, &pin); in Unlock()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/memory/volatile/
H A DVolatileBufferAshmem.cpp30 mFd(-1) {} in VolatileBuffer()
42 mFd = mozilla::android::ashmem_create(nullptr, mSize); in Init()
43 if (mFd < 0) { in Init()
47 mBuf = mmap(nullptr, mSize, PROT_READ | PROT_WRITE, MAP_SHARED, mFd, 0); in Init()
54 if (mFd >= 0) { in Init()
55 close(mFd); in Init()
56 mFd = -1; in Init()
74 close(mFd); in ~VolatileBuffer()
90 return ioctl(mFd, ASHMEM_PIN, &pin) == ASHMEM_NOT_PURGED; in Lock()
102 ioctl(mFd, ASHMEM_UNPIN, &pin); in Unlock()
[all …]
/dports/www/firefox/firefox-99.0/memory/volatile/
H A DVolatileBufferAshmem.cpp30 mFd(-1) {} in VolatileBuffer()
42 mFd = mozilla::android::ashmem_create(nullptr, mSize); in Init()
43 if (mFd < 0) { in Init()
47 mBuf = mmap(nullptr, mSize, PROT_READ | PROT_WRITE, MAP_SHARED, mFd, 0); in Init()
54 if (mFd >= 0) { in Init()
55 close(mFd); in Init()
56 mFd = -1; in Init()
74 close(mFd); in ~VolatileBuffer()
90 return ioctl(mFd, ASHMEM_PIN, &pin) == ASHMEM_NOT_PURGED; in Lock()
102 ioctl(mFd, ASHMEM_UNPIN, &pin); in Unlock()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/memory/volatile/
H A DVolatileBufferAshmem.cpp30 mFd(-1) {} in VolatileBuffer()
42 mFd = mozilla::android::ashmem_create(nullptr, mSize); in Init()
43 if (mFd < 0) { in Init()
47 mBuf = mmap(nullptr, mSize, PROT_READ | PROT_WRITE, MAP_SHARED, mFd, 0); in Init()
54 if (mFd >= 0) { in Init()
55 close(mFd); in Init()
56 mFd = -1; in Init()
74 close(mFd); in ~VolatileBuffer()
90 return ioctl(mFd, ASHMEM_PIN, &pin) == ASHMEM_NOT_PURGED; in Lock()
102 ioctl(mFd, ASHMEM_UNPIN, &pin); in Unlock()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/memory/volatile/
H A DVolatileBufferAshmem.cpp30 mFd(-1) {} in VolatileBuffer()
42 mFd = mozilla::android::ashmem_create(nullptr, mSize); in Init()
43 if (mFd < 0) { in Init()
47 mBuf = mmap(nullptr, mSize, PROT_READ | PROT_WRITE, MAP_SHARED, mFd, 0); in Init()
54 if (mFd >= 0) { in Init()
55 close(mFd); in Init()
56 mFd = -1; in Init()
74 close(mFd); in ~VolatileBuffer()
90 return ioctl(mFd, ASHMEM_PIN, &pin) == ASHMEM_NOT_PURGED; in Lock()
102 ioctl(mFd, ASHMEM_UNPIN, &pin); in Unlock()
[all …]
/dports/converters/wkhtmltopdf/qt-5db36ec/src/plugins/platforms/blackberry/
H A Dqbbvirtualkeyboardpps.cpp76 mFd(-1), in QBBVirtualKeyboardPps()
106 if (mFd != -1) { in close()
108 ::close(mFd); in close()
109 mFd = -1; in close()
139 mFd = ::open(sPPSPath, O_RDWR); in connect()
140 if (mFd == -1) { in connect()
156 mReadNotifier = new QSocketNotifier(mFd, QSocketNotifier::Read); in connect()
180 ssize_t nread = qt_safe_read(mFd, mBuffer, sBufferSize - 1); in ppsDataReady()
280 if (mFd == -1 && !connect()) in showKeyboard()
310 if (mFd == -1 && !connect()) in hideKeyboard()
[all …]
H A Dqbbbuttoneventnotifier.cpp67 mFd(-1), in QBBButtonEventNotifier()
88 if (mFd != -1) in start()
93 mFd = qt_safe_open(ppsPath, O_RDONLY); in start()
94 if (mFd == -1) { in start()
99 mReadNotifier = new QSocketNotifier(mFd, QSocketNotifier::Read); in start()
102 qButtonDebug() << Q_FUNC_INFO << "successfully connected to Navigator. fd =" << mFd; in start()
112 int bytes = qt_safe_read(mFd, buffer, ppsBufferSize - 1); in updateButtonStates()
185 if (mFd != -1) { in close()
186 qt_safe_close(mFd); in close()
187 mFd = -1; in close()
H A Dqbblocalethread.cpp65 : mFd(-1), in QBBLocaleThread()
84 mFd = open(NAV_CONTROL_PATH, O_RDONLY); in run()
85 if (mFd == -1) { in run()
98 int bytes = read(mFd, buffer, PPS_BUFFER_SIZE - 1); in run()
115 close(mFd); in run()
H A Dqbbnavigatoreventnotifier.cpp66 mFd(-1), in QBBNavigatorEventNotifier()
75 if (mFd != -1) in ~QBBNavigatorEventNotifier()
76 qt_safe_close(mFd); in ~QBBNavigatorEventNotifier()
91 mFd = qt_safe_open(NAV_CONTROL_PATH, O_RDWR); in start()
92 if (mFd == -1) { in start()
97 mReadNotifier = new QSocketNotifier(mFd, QSocketNotifier::Read); in start()
175 int bytes = write(mFd, ppsData.constData(), ppsData.size()); in replyPPS()
215 int bytes = qt_safe_read(mFd, buffer, PPS_BUFFER_SIZE - 1); in readData()
/dports/www/firefox-legacy/firefox-52.8.0esr/hal/gonk/
H A DGonkDiskSpaceWatcher.cpp102 int mFd; member in mozilla::hal_impl::GonkDiskSpaceWatcher
154 mFd(-1) in GonkDiskSpaceWatcher()
174 if (mFd == -1) { in DoStart()
191 close(mFd); in DoStart()
192 mFd = -1; in DoStart()
197 mFd, /* persistent = */ true, in DoStart()
201 close(mFd); in DoStart()
202 mFd = -1; in DoStart()
212 if (mFd != -1) { in DoStop()
215 close(mFd); in DoStop()
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/layout/printing/
H A DDrawEventRecorder.h27 : mFd(nullptr), mBuffer(nullptr), mBufferPos(0), mGood(true) {} in PRFileDescStream()
33 mFd = aFd; in OpenFD()
34 mGood = !!mFd; in OpenFD()
44 PR_Close(mFd); in Close()
45 mFd = nullptr; in Close()
51 bool IsOpen() { return mFd != nullptr; } in IsOpen()
57 PR_Write(mFd, static_cast<const void*>(mBuffer.get()), mBufferPos); in Flush()
65 PRInt64 pos = PR_Seek64(mFd, aOffset, aWhence); in Seek()
80 PRInt32 length = PR_Write(mFd, static_cast<const void*>(aData), aSize); in write()
104 PRInt32 res = PR_Read(mFd, static_cast<void*>(aOut), aSize); in read()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/layout/printing/
H A DDrawEventRecorder.h27 : mFd(nullptr), mBuffer(nullptr), mBufferPos(0), mGood(true) {} in PRFileDescStream()
33 mFd = aFd; in OpenFD()
34 mGood = !!mFd; in OpenFD()
44 PR_Close(mFd); in Close()
45 mFd = nullptr; in Close()
51 bool IsOpen() { return mFd != nullptr; } in IsOpen()
57 PR_Write(mFd, static_cast<const void*>(mBuffer.get()), mBufferPos); in Flush()
65 PRInt64 pos = PR_Seek64(mFd, aOffset, aWhence); in Seek()
80 PRInt32 length = PR_Write(mFd, static_cast<const void*>(aData), aSize); in write()
104 PRInt32 res = PR_Read(mFd, static_cast<void*>(aOut), aSize); in read()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/layout/printing/
H A DDrawEventRecorder.h28 : mFd(nullptr), mBuffer(nullptr), mBufferPos(0), mGood(true) {} in PRFileDescStream()
34 mFd = aFd; in OpenFD()
35 mGood = !!mFd; in OpenFD()
45 PR_Close(mFd); in Close()
46 mFd = nullptr; in Close()
52 bool IsOpen() { return mFd != nullptr; } in IsOpen()
58 PR_Write(mFd, static_cast<const void*>(mBuffer.get()), mBufferPos); in Flush()
66 PRInt64 pos = PR_Seek64(mFd, aOffset, aWhence); in Seek()
81 PRInt32 length = PR_Write(mFd, static_cast<const void*>(aData), aSize); in write()
105 PRInt32 res = PR_Read(mFd, static_cast<void*>(aOut), aSize); in read()
[all …]
/dports/www/firefox/firefox-99.0/layout/printing/
H A DDrawEventRecorder.h28 : mFd(nullptr), mBuffer(nullptr), mBufferPos(0), mGood(true) {} in PRFileDescStream()
34 mFd = aFd; in OpenFD()
35 mGood = !!mFd; in OpenFD()
45 PR_Close(mFd); in Close()
46 mFd = nullptr; in Close()
52 bool IsOpen() { return mFd != nullptr; } in IsOpen()
58 PR_Write(mFd, static_cast<const void*>(mBuffer.get()), mBufferPos); in Flush()
66 PRInt64 pos = PR_Seek64(mFd, aOffset, aWhence); in Seek()
81 PRInt32 length = PR_Write(mFd, static_cast<const void*>(aData), aSize); in write()
105 PRInt32 res = PR_Read(mFd, static_cast<void*>(aOut), aSize); in read()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/layout/printing/
H A DDrawEventRecorder.h28 : mFd(nullptr), mBuffer(nullptr), mBufferPos(0), mGood(true) {} in PRFileDescStream()
34 mFd = aFd; in OpenFD()
35 mGood = !!mFd; in OpenFD()
45 PR_Close(mFd); in Close()
46 mFd = nullptr; in Close()
52 bool IsOpen() { return mFd != nullptr; } in IsOpen()
58 PR_Write(mFd, static_cast<const void*>(mBuffer.get()), mBufferPos); in Flush()
66 PRInt64 pos = PR_Seek64(mFd, aOffset, aWhence); in Seek()
81 PRInt32 length = PR_Write(mFd, static_cast<const void*>(aData), aSize); in write()
105 PRInt32 res = PR_Read(mFd, static_cast<void*>(aOut), aSize); in read()
[all …]
/dports/www/firefox-esr/firefox-91.8.0/ipc/glue/
H A DTransport_posix.cpp54 aOne->mFd = base::FileDescriptor(fd1, true /*close after sending*/); in CreateTransport()
55 aTwo->mFd = base::FileDescriptor(fd2, true /*close after sending*/); in CreateTransport()
61 return MakeUnique<Transport>(aTd.mFd.fd, aMode, nullptr); in OpenDescriptor()
72 result.mFd.fd = dup(aTd.mFd.fd); in DuplicateDescriptor()
73 if (result.mFd.fd == -1) { in DuplicateDescriptor()
76 MOZ_RELEASE_ASSERT(result.mFd.fd != -1, "DuplicateDescriptor failed"); in DuplicateDescriptor()
80 void CloseDescriptor(const TransportDescriptor& aTd) { close(aTd.mFd.fd); } in CloseDescriptor()
/dports/mail/thunderbird/thunderbird-91.8.0/ipc/glue/
H A DTransport_posix.cpp54 aOne->mFd = base::FileDescriptor(fd1, true /*close after sending*/); in CreateTransport()
55 aTwo->mFd = base::FileDescriptor(fd2, true /*close after sending*/); in CreateTransport()
61 return MakeUnique<Transport>(aTd.mFd.fd, aMode, nullptr); in OpenDescriptor()
72 result.mFd.fd = dup(aTd.mFd.fd); in DuplicateDescriptor()
73 if (result.mFd.fd == -1) { in DuplicateDescriptor()
76 MOZ_RELEASE_ASSERT(result.mFd.fd != -1, "DuplicateDescriptor failed"); in DuplicateDescriptor()
80 void CloseDescriptor(const TransportDescriptor& aTd) { close(aTd.mFd.fd); } in CloseDescriptor()
/dports/www/firefox-legacy/firefox-52.8.0esr/ipc/glue/
H A DTransport_posix.cpp56 aOne->mFd = base::FileDescriptor(fd1, true/*close after sending*/); in CreateTransport()
57 aTwo->mFd = base::FileDescriptor(fd2, true/*close after sending*/); in CreateTransport()
64 return MakeUnique<Transport>(aTd.mFd.fd, aMode, nullptr); in OpenDescriptor()
78 result.mFd.fd = dup(aTd.mFd.fd); in DuplicateDescriptor()
79 if (result.mFd.fd == -1) { in DuplicateDescriptor()
82 MOZ_RELEASE_ASSERT(result.mFd.fd != -1, "DuplicateDescriptor failed"); in DuplicateDescriptor()
89 close(aTd.mFd.fd); in CloseDescriptor()
/dports/lang/spidermonkey60/firefox-60.9.0/ipc/glue/
H A DTransport_posix.cpp53 aOne->mFd = base::FileDescriptor(fd1, true /*close after sending*/); in CreateTransport()
54 aTwo->mFd = base::FileDescriptor(fd2, true /*close after sending*/); in CreateTransport()
60 return MakeUnique<Transport>(aTd.mFd.fd, aMode, nullptr); in OpenDescriptor()
71 result.mFd.fd = dup(aTd.mFd.fd); in DuplicateDescriptor()
72 if (result.mFd.fd == -1) { in DuplicateDescriptor()
75 MOZ_RELEASE_ASSERT(result.mFd.fd != -1, "DuplicateDescriptor failed"); in DuplicateDescriptor()
79 void CloseDescriptor(const TransportDescriptor& aTd) { close(aTd.mFd.fd); } in CloseDescriptor()
/dports/lang/spidermonkey78/firefox-78.9.0/ipc/glue/
H A DTransport_posix.cpp53 aOne->mFd = base::FileDescriptor(fd1, true /*close after sending*/); in CreateTransport()
54 aTwo->mFd = base::FileDescriptor(fd2, true /*close after sending*/); in CreateTransport()
60 return MakeUnique<Transport>(aTd.mFd.fd, aMode, nullptr); in OpenDescriptor()
71 result.mFd.fd = dup(aTd.mFd.fd); in DuplicateDescriptor()
72 if (result.mFd.fd == -1) { in DuplicateDescriptor()
75 MOZ_RELEASE_ASSERT(result.mFd.fd != -1, "DuplicateDescriptor failed"); in DuplicateDescriptor()
79 void CloseDescriptor(const TransportDescriptor& aTd) { close(aTd.mFd.fd); } in CloseDescriptor()
/dports/audio/openal-soft/openal-soft-1.21.1/alc/backends/
H A Doss.cpp239 int mFd{-1}; in casecompare()
251 if(mFd != -1) in casecompare()
252 close(mFd); in casecompare()
253 mFd = -1; in casecompare()
269 pollitem.fd = mFd; in casecompare()
332 if(mFd == -1) in casecompare()
452 int mFd{-1}; in casecompare()
464 if(mFd != -1) in casecompare()
465 close(mFd); in casecompare()
466 mFd = -1; in casecompare()
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/netwerk/base/
H A DnsSocketTransport2.h210 mFd = mSocketTransport->GetFD_Locked(); in mSocketTransport()
217 if (mFd) { in ~PRFileDescAutoLock()
218 mSocketTransport->ReleaseFD_Locked(mFd); in ~PRFileDescAutoLock()
221 bool IsInitialized() { return mFd; } in IsInitialized()
222 operator PRFileDesc *() { return mFd; }
232 PRFileDesc *mFd; variable
243 bool IsInitialized() { return mFd; } in IsInitialized()
246 mFd = aFd;
253 return mFd;
257 return mFd == aFd;
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/netwerk/base/
H A DnsSocketTransport2.h215 mFd = mSocketTransport->GetFD_Locked(); in mSocketTransport()
222 if (mFd) { in ~PRFileDescAutoLock()
223 mSocketTransport->ReleaseFD_Locked(mFd); in ~PRFileDescAutoLock()
226 bool IsInitialized() { return mFd; } in IsInitialized()
227 operator PRFileDesc*() { return mFd; }
237 PRFileDesc* mFd; variable
248 bool IsInitialized() { return mFd; } in IsInitialized()
251 mFd = aFd;
258 return mFd;
262 return mFd == aFd;
[all …]
/dports/graphics/vulkan-validation-layers/Vulkan-ValidationLayers-1.2.203/external/robin-hood-hashing/src/test/app/
H A DPerformanceCounters.cpp112 ioctl(mFd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP); // NOLINT(hicpp-signed-bitwise) in enable()
117 ioctl(mFd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP); // NOLINT(hicpp-signed-bitwise) in disable()
121 ioctl(mFd, PERF_EVENT_IOC_RESET, PERF_IOC_FLAG_GROUP); // NOLINT(hicpp-signed-bitwise) in reset()
142 auto fd = static_cast<int>(syscall(__NR_perf_event_open, &pea, pid, cpu, mFd, flags)); in monitor()
146 if (-1 == mFd) { in monitor()
148 mFd = fd; in monitor()
167 auto ret = read(mFd, mReadFormat.data(), numBytes); in fetch()
195 if (-1 != mFd) { in ~PerformanceCounters()
196 close(mFd); in ~PerformanceCounters()

12345678910