Searched refs:file_des (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/syscalls/mount/ |
D | mount05.c | 49 static const char file_des[] = "mnt_des/tstfile"; variable 77 if (open(file_des, O_CREAT | O_EXCL, S_IRWXU) == -1 && in main() 82 file_des); in main()
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 3838 file_des = self.os.open(file_path, os.O_RDONLY) 3839 self.assertEqual(b'contents', self.os.read(file_des, 8)) 3841 self.os.write, file_des, b'test') 3842 self.os.close(file_des) 3849 file_des = self.os.open(file_path, os.O_RDONLY) 3851 self.os.write, file_des, b'test') 3852 self.os.close(file_des) 3860 file_des = self.os.open(file_path, os.O_RDONLY) 3861 self.assertEqual(0, self.os.write(file_des, b'')) 3862 self.os.close(file_des) [all …]
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_filesystem.py | 1280 def _close_open_file(self, file_des): argument 1290 self.open_files[file_des] = None 1291 heapq.heappush(self._free_fd_heap, file_des) 1293 def get_open_file(self, file_des): argument 1306 if not is_int_type(file_des): 1308 if (file_des >= len(self.open_files) or 1309 self.open_files[file_des] is None): 1310 self.raise_os_error(errno.EBADF, str(file_des)) 1311 return self.open_files[file_des][0] 3574 file_des = self.filesystem._add_open_file(dir_wrapper) [all …]
|