Searched refs:file_obj (Results 1 – 2 of 2) sorted by relevance
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | filemap.py | 28 def get_block_size(file_obj): argument 36 binary_data = fcntl.ioctl(file_obj, 2, struct.pack('I', 0)) 44 stat = os.fstat(file_obj.fileno()) 170 def _lseek(file_obj, offset, whence): argument 178 return os.lseek(file_obj.fileno(), offset, whence)
|
/openbmc/openbmc/poky/bitbake/lib/ |
H A D | pyinotify.py | 274 with open(os.path.join(self._base, self._attr), 'r') as file_obj: 275 return int(file_obj.readline()) 285 with open(os.path.join(self._base, self._attr), 'w') as file_obj: 286 file_obj.write(str(nval) + '\n') 1653 with open(filename, 'r') as file_obj: 1654 for line in file_obj.readlines():
|