Home
last modified time | relevance | path

Searched refs:_file (Results 1 – 25 of 29) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Daifc.py285 self._file = file
300 chunk = Chunk(self._file)
341 return self._file
351 self._file.close()
565 self._file = file
583 if self._file:
712 self._file.write(data)
726 self._file.write(chr(0))
738 self._file.close()
823 self._file.write('FORM')
[all …]
Dtempfile.py495 self._file = _StringIO()
508 file = self._file
509 newfile = self._file = TemporaryFile(*self._TemporaryFileArgs)
524 if self._file.closed:
529 self._file.close()
533 return self._file.__iter__()
536 self._file.close()
540 return self._file.closed
544 return self._file.encoding
548 return self._file.fileno()
[all …]
Dwave.py128 self._file = Chunk(file, bigendian = 0)
129 if self._file.getname() != 'RIFF':
131 if self._file.read(4) != 'WAVE':
138 chunk = Chunk(self._file, bigendian = 0)
175 return self._file
185 self._file = None
313 self._file = file
425 data.tofile(self._file)
428 self._file.write(data)
438 if self._file:
[all …]
Dmailbox.py563 self._file = f
609 _lock_file(self._file)
615 _unlock_file(self._file)
630 self._file.seek(0, 2)
631 cur_len = self._file.tell()
643 self._file.seek(start)
647 buffer = self._file.read(min(4096,
648 stop - self._file.tell()))
660 self._file.close()
670 self._file = open(self._path, 'rb+')
[all …]
Dfileinput.py101 if _state and _state._file:
217 self._file = None
277 file = self._file
278 self._file = 0
302 if not self._file:
308 self._file = None
313 self._file = sys.stdin
323 self._file = open(self._backupfilename, self._mode)
325 perm = os.fstat(self._file.fileno()).st_mode
343 self._file = self._openhook(self._filename, self._mode)
[all …]
Dhttplib.py1268 self._file = file
1274 return getattr(self._file, attr)
1281 self.read = self._file.read
1282 self.readline = self._file.readline
1283 self.readlines = self._file.readlines
1287 return self._file.read(amt)
1293 return s + self._file.read()
1295 return s + self._file.read(amt - len(s))
1309 return self._file.readline()
1317 return self._file.readlines(size)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dfileinput.py100 if _state and _state._file:
216 self._file = None
279 file = self._file
280 self._file = 0
305 if not self._file:
311 self._file = None
316 self._file = sys.stdin
326 self._file = open(self._backupfilename, self._mode)
328 perm = os.fstat(self._file.fileno()).st_mode
346 self._file = self._openhook(self._filename, self._mode)
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dstdio.c73 ret = (int)read(fp->_file, buf, (size_t)n); in __sread()
95 (void) lseek(fp->_file, (off_t)0, SEEK_END); in __swrite()
97 return (int)(write(fp->_file, (char *)buf, (size_t)n)); in __swrite()
112 ret = lseek(fp->_file, (off_t)offset, whence); in __sseek()
132 return (close(((FILE *)cookie)->_file)); in __sclose()
Dmakebuf.c95 if (couldbetty || isatty(fp->_file)) in __smakebuf()
116 if (fp->_file < 0 || fstat(fp->_file, &st) < 0) { in __swhatbuf()
Dfseeko.c170 fp->_file < 0 || fstat(fp->_file, &st) || in __weak_alias()
186 if (fstat(fp->_file, &st)) in __weak_alias()
Dfreopen.c107 if (((wantfd = fp->_file) >= 0) && isopen) { in freopen()
182 fp->_file = (short)f; in freopen()
Dvsprintf.c66 f._file = -1; in vsprintf()
Dsprintf.c69 f._file = -1; in sprintf()
Dfclose.c83 fp->_file = -1; in fclose()
Dfunopen.c75 fp->_file = -1;
Dsnprintf.c80 f._file = -1; in __weak_alias()
Dvsnprintf.c73 f._file = -1; in __weak_alias()
Dvasprintf.c57 f._file = -1;
Dfopen.c87 fp->_file = (short)f; in fopen()
Dfdopen.c105 fp->_file = (short)fd; in __weak_alias()
Dvswscanf.c89 f._file = -1; in vswscanf()
Dvswprintf.c59 f._file = -1; in vswprintf()
Dfindfp.c157 fp->_file = -1; /* no file */ in __sfp()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_mailbox.py826 self._box._file.flush()
827 self._box._file.seek(0)
828 contents = self._box._file.read()
1680 self._file = open(self._path, 'wb+')
1683 self._file.close()
1688 self._file.write('foo')
1689 pos = self._file.tell()
1690 proxy0 = mailbox._ProxyFile(self._file)
1692 self.assertEqual(self._file.tell(), pos)
1693 proxy1 = mailbox._ProxyFile(self._file, 0)
[all …]
/device/linaro/bootloader/edk2/StdLib/Include/
Dstdio.h224 short _file; /**< fileno, if Unix descriptor, else -1 */ member
1598 #define __sfileno(p) ((p)->_file)

12