Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 31) sorted by relevance

12

/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfseek.c65 fseek(FILE *fp, long l_offset, int whence) in fseek() argument
69 if (whence == SEEK_SET) in fseek()
73 return fseeko(fp, offset, whence); in fseek()
Dfseeko.c72 fseeko(FILE *fp, off_t offset, int whence) in __weak_alias()
112 switch (whence) { in __weak_alias()
139 whence = SEEK_SET; in __weak_alias()
183 if (whence == SEEK_SET) in __weak_alias()
287 (*seekfn)(fp->_cookie, (fpos_t)offset, whence) == POS_ERR) { in __weak_alias()
Dstdio.c101 __sseek(void *cookie, fpos_t offset, int whence) in __sseek() argument
112 ret = lseek(fp->_file, (off_t)offset, whence); in __sseek()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dmultifile.py58 def seek(self, pos, whence=0): argument
60 if whence:
61 if whence == 1:
63 elif whence == 2:
D_pyio.py297 def seek(self, pos, whence=0): argument
690 def seek(self, pos, whence=0): argument
691 new_position = self.raw.seek(pos, whence)
842 def seek(self, pos, whence=0): argument
849 if whence == 0:
853 elif whence == 1:
855 elif whence == 2:
1032 def seek(self, pos, whence=0): argument
1033 if not (0 <= whence <= 2):
1036 if whence == 1:
[all …]
Dchunk.py96 def seek(self, pos, whence=0): argument
106 if whence == 1:
108 elif whence == 2:
Dcodecs.py373 def seek(self, offset, whence=0): argument
374 self.stream.seek(offset, whence)
375 if whence == 0 and offset == 0:
604 def seek(self, offset, whence=0): argument
609 self.stream.seek(offset, whence)
702 def seek(self, offset, whence=0): argument
703 self.stream.seek(offset, whence)
705 if whence == 0 and offset == 0:
Dgzip.py406 def seek(self, offset, whence=0): argument
407 if whence:
408 if whence == 1:
Dmailbox.py1848 def seek(self, offset, whence=0): argument
1850 if whence == 1:
1852 self._file.seek(offset, whence)
1882 def seek(self, offset, whence=0): argument
1884 if whence == 0:
1886 whence = 1
1887 elif whence == 2:
1889 whence = 1
1890 _ProxyFile.seek(self, offset, whence)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Dfileio.c73 portable_lseek(int fd, PyObject *posobj, int whence);
75 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
692 portable_lseek(int fd, PyObject *posobj, int whence) in portable_lseek() argument
698 switch (whence) { in portable_lseek()
700 case 0: whence = SEEK_SET; break; in portable_lseek()
703 case 1: whence = SEEK_CUR; break; in portable_lseek()
706 case 2: whence = SEEK_END; break; in portable_lseek()
730 res = _lseeki64(fd, pos, whence); in portable_lseek()
732 res = lseek(fd, pos, whence); in portable_lseek()
751 int whence = 0; in fileio_seek() local
[all …]
Dbufferedio.c615 _buffered_raw_seek(buffered *self, Py_off_t target, int whence) in _buffered_raw_seek() argument
623 whenceobj = PyLong_FromLong(whence); in _buffered_raw_seek()
1044 int whence = 0; in buffered_seek() local
1048 if (!PyArg_ParseTuple(args, "O|i:seek", &targetobj, &whence)) { in buffered_seek()
1051 if (whence < 0 || whence > 2) { in buffered_seek()
1053 "whence must be between 0 and 2, not %d", whence); in buffered_seek()
1063 if (whence != 2 && self->readable) { in buffered_seek()
1075 if (whence == 0) in buffered_seek()
1099 if (whence == 1) in buffered_seek()
1101 n = _buffered_raw_seek(self, target, whence); in buffered_seek()
Dtextio.c1958 int whence = 0; in textiowrapper_seek() local
1964 if (!PyArg_ParseTuple(args, "O|i:seek", &cookieObj, &whence)) in textiowrapper_seek()
1976 if (whence == 1) { in textiowrapper_seek()
1996 else if (whence == 2) { in textiowrapper_seek()
2027 else if (whence != 0) { in textiowrapper_seek()
2029 "invalid whence (%d, should be 0, 1 or 2)", whence); in textiowrapper_seek()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
Dfileio.c68 portable_lseek(int fd, PyObject *posobj, int whence);
70 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
704 portable_lseek(int fd, PyObject *posobj, int whence) in portable_lseek() argument
710 switch (whence) { in portable_lseek()
712 case 0: whence = SEEK_SET; break; in portable_lseek()
715 case 1: whence = SEEK_CUR; break; in portable_lseek()
718 case 2: whence = SEEK_END; break; in portable_lseek()
742 res = _lseeki64(fd, pos, whence); in portable_lseek()
744 res = lseek(fd, pos, whence); in portable_lseek()
763 int whence = 0; in fileio_seek() local
[all …]
Dbufferedio.c643 _buffered_raw_seek(buffered *self, Py_off_t target, int whence) in _buffered_raw_seek() argument
651 whenceobj = PyLong_FromLong(whence); in _buffered_raw_seek()
1071 int whence = 0; in buffered_seek() local
1075 if (!PyArg_ParseTuple(args, "O|i:seek", &targetobj, &whence)) { in buffered_seek()
1078 if (whence < 0 || whence > 2) { in buffered_seek()
1080 "whence must be between 0 and 2, not %d", whence); in buffered_seek()
1090 if (whence != 2 && self->readable) { in buffered_seek()
1102 if (whence == 0) in buffered_seek()
1126 if (whence == 1) in buffered_seek()
1128 n = _buffered_raw_seek(self, target, whence); in buffered_seek()
Dtextio.c2004 int whence = 0; in textiowrapper_seek() local
2010 if (!PyArg_ParseTuple(args, "O|i:seek", &cookieObj, &whence)) in textiowrapper_seek()
2022 if (whence == 1) { in textiowrapper_seek()
2042 else if (whence == 2) { in textiowrapper_seek()
2073 else if (whence != 0) { in textiowrapper_seek()
2075 "invalid whence (%d, should be 0, 1 or 2)", whence); in textiowrapper_seek()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dgzlib.c362 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument
365 int whence;
383 if (whence != SEEK_SET && whence != SEEK_CUR)
387 if (whence == SEEK_SET)
439 z_off_t ZEXPORT gzseek(file, offset, whence) in gzseek() argument
442 int whence;
446 ret = gzseek64(file, (z_off64_t)offset, whence);
/device/google/contexthub/util/common/
Dfile.cpp88 off64_t File::seekTo(off64_t pos, int whence) { in seekTo() argument
89 off64_t new_pos = lseek64(mFd, pos, whence); in seekTo()
Dfile.h39 off64_t seekTo(off64_t pos, int whence = SEEK_SET);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcodecs.py379 def seek(self, offset, whence=0): argument
380 self.stream.seek(offset, whence)
381 if whence == 0 and offset == 0:
607 def seek(self, offset, whence=0): argument
612 self.stream.seek(offset, whence)
705 def seek(self, offset, whence=0): argument
706 self.stream.seek(offset, whence)
708 if whence == 0 and offset == 0:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dfcntlmodule.c310 int fd, code, ret, whence = 0; in fcntl_lockf() local
315 &lenobj, &startobj, &whence)) in fcntl_lockf()
365 l.l_whence = whence; in fcntl_lockf()
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/UefiShell/
DdaShell.c100 int whence in da_ShellSeek() argument
109 if(whence != SEEK_SET) { in da_ShellSeek()
111 if(whence == SEEK_END) { in da_ShellSeek()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dfileobject.c695 _portable_fseek(FILE *fp, Py_off_t offset, int whence) in _portable_fseek() argument
698 return fseek(fp, offset, whence); in _portable_fseek()
700 return fseeko(fp, offset, whence); in _portable_fseek()
702 return fseek64(fp, offset, whence); in _portable_fseek()
704 return _fseek(fp, offset, whence); in _portable_fseek()
709 switch (whence) { in _portable_fseek()
760 int whence; in file_seek() local
768 whence = 0; in file_seek()
769 if (!PyArg_ParseTuple(args, "O|i:seek", &offobj, &whence)) in file_seek()
796 ret = _portable_fseek(f->f_fp, offset, whence); in file_seek()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dfileobject.c681 _portable_fseek(FILE *fp, Py_off_t offset, int whence) in _portable_fseek() argument
684 return fseek(fp, offset, whence); in _portable_fseek()
686 return fseeko(fp, offset, whence); in _portable_fseek()
688 return fseek64(fp, offset, whence); in _portable_fseek()
690 return _fseek(fp, offset, whence); in _portable_fseek()
695 switch (whence) { in _portable_fseek()
746 int whence; in file_seek() local
754 whence = 0; in file_seek()
755 if (!PyArg_ParseTuple(args, "O|i:seek", &offobj, &whence)) in file_seek()
782 ret = _portable_fseek(f->f_fp, offset, whence); in file_seek()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dgzio.c767 z_off_t ZEXPORT gzseek (file, offset, whence) in gzseek() argument
770 int whence;
774 if (s == NULL || whence == SEEK_END ||
783 if (whence == SEEK_SET) {
809 if (whence == SEEK_CUR) {
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_gzip.py167 f.seek(10, whence=1)

12