Lines Matching defs:fileDescriptor
98 void SharedMemory::Handle::adoptFromAttachment(int fileDescriptor, size_t size)
103 m_fileDescriptor = fileDescriptor;
118 int fileDescriptor;
119 while ((fileDescriptor = mkstemp(tempNameC)) == -1) {
123 while (fcntl(fileDescriptor, F_SETFD, FD_CLOEXEC) == -1) {
125 while (close(fileDescriptor) == -1 && errno == EINTR) { }
131 while (ftruncate(fileDescriptor, size) == -1) {
133 while (close(fileDescriptor) == -1 && errno == EINTR) { }
139 void* data = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileDescriptor, 0);
141 while (close(fileDescriptor) == -1 && errno == EINTR) { }
150 instance->m_fileDescriptor = fileDescriptor;