HomeSort by relevance Sort by last modified time
    Searched defs:whence (Results 1 - 25 of 46) sorted by null

1 2

  /external/ltp/testcases/kernel/syscalls/lseek/
lseek01.c 21 * lseek() succeeds to set the specified offset according to whence
37 int whence; member in struct:tcase
59 TEST(lseek(fd, tc->off, tc->whence));
lseek02.c 27 * 2) lseek(2) fails ans sets errno to EINVAL when whence is invalid.
49 int whence; member in struct:tcase
73 TEST(lseek(*tc->fd, (off_t) 1, tc->whence));
76 *tc->fd, tc->whence);
82 *tc->fd, tc->whence);
85 "unexpectedly, expected %s", *tc->fd, tc->whence,
lseek11.c 24 * whence:
69 * SEEK from "startblock * block_size - offset", "whence" as the directive
70 * whence.
72 * whence: as whence of lseek()
80 int whence; member in struct:tparam
209 offset = SAFE_LSEEK(fd, offset, tp->whence);
221 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE",
226 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE",
  /external/python/cpython3/Modules/clinic/
fcntlmodule.c.h 137 "lockf($module, fd, cmd, len=0, start=0, whence=0, /)\n"
156 "EOF. `start` is the byte offset, relative to `whence`, to that the lock\n"
157 "starts. `whence` is as with fileobj.seek(), specifically:\n"
168 PyObject *startobj, int whence);
178 int whence = 0; local
181 conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) {
184 return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
fcntlmodule.c 310 int fd, code, ret, whence = 0; local
315 &lenobj, &startobj, &whence))
365 l.l_whence = whence;
380 "lockf (fd, operation, length=0, start=0, whence=0)\n\
397 EOF. start is the byte offset, relative to whence, to that the lock\n\
398 starts. whence is as with fileobj.seek(), specifically:\n\
  /external/ltp/testcases/kernel/syscalls/llseek/
llseek02.c 26 * 1. llseek() returns -1 and sets errno to EINVAL, if the 'Whence' argument
104 int Whence;
110 1, SEEK_TOP, "'whence' argument is not valid", EINVAL, setup1}, {
123 int whence; /* position of file handle in the file */ local
138 whence = Test_cases[ind].Whence;
152 TEST(lseek64(fildes, (loff_t) 0, whence));
  /external/python/cpython2/Modules/
fcntlmodule.c 312 int fd, code, ret, whence = 0; local
317 &lenobj, &startobj, &whence))
367 l.l_whence = whence;
382 "lockf (fd, operation, length=0, start=0, whence=0)\n\
399 EOF. start is the byte offset, relative to whence, to that the lock\n\
400 starts. whence is as with fileobj.seek(), specifically:\n\
  /system/core/libcutils/tests/
AshmemTest.cpp 157 int whence; member in struct:__anon2791
168 auto off = lseek(fd, cfg.offset, cfg.whence);
169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed"
  /external/python/cpython3/Modules/_io/clinic/
fileio.c.h 263 "seek($self, pos, whence=0, /)\n"
268 "Argument offset is a byte count. Optional argument whence defaults to\n"
280 _io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence);
287 int whence = 0; local
290 &pos, &whence)) {
293 return_value = _io_FileIO_seek_impl(self, pos, whence);
stringio.c.h 138 "seek($self, pos, whence=0, /)\n"
143 "Seek to character offset pos relative to position indicated by whence:\n"
153 _io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence);
160 int whence = 0; local
163 &pos, &whence)) {
166 return_value = _io_StringIO_seek_impl(self, pos, whence);
bufferedio.c.h 258 "seek($self, target, whence=0, /)\n"
266 _io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence);
273 int whence = 0; local
276 &targetobj, &whence)) {
279 return_value = _io__Buffered_seek_impl(self, targetobj, whence);
bytesio.c.h 329 "seek($self, pos, whence=0, /)\n"
334 "Seek to byte offset pos relative to position indicated by whence:\n"
344 _io_BytesIO_seek_impl(bytesio *self, Py_ssize_t pos, int whence);
351 int whence = 0; local
354 &pos, &whence)) {
357 return_value = _io_BytesIO_seek_impl(self, pos, whence);
textio.c.h 277 "seek($self, cookie, whence=0, /)\n"
285 _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence);
292 int whence = 0; local
295 &cookieObj, &whence)) {
298 return_value = _io_TextIOWrapper_seek_impl(self, cookieObj, whence);
  /external/syslinux/gpxe/src/include/gpxe/
xfer.h 112 int whence; member in struct:xfer_metadata
124 * @v whence Basis for new position
127 whence_text ( int whence ) {
128 switch ( whence ) {
156 extern int xfer_seek ( struct xfer_interface *xfer, off_t offset, int whence );
  /external/ltp/testcases/kernel/sched/sched_stress/
sched_tc6.c 321 int whence = 0; local
336 if (lseek(fd, file_offset, whence) < 0)
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
fileio.c 68 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)
710 switch (whence) {
712 case 0: whence = SEEK_SET; break;
715 case 1: whence = SEEK_CUR; break;
718 case 2: whence = SEEK_END; break;
742 res = _lseeki64(fd, pos, whence);
744 res = lseek(fd, pos, whence);
763 int whence = 0; local
    [all...]
bufferedio.c 643 _buffered_raw_seek(buffered *self, Py_off_t target, int whence)
651 whenceobj = PyLong_FromLong(whence);
1071 int whence = 0; local
1075 if (!PyArg_ParseTuple(args, "O|i:seek", &targetobj, &whence)) {
1078 if (whence < 0 || whence > 2) {
1080 "whence must be between 0 and 2, not %d", whence);
1090 if (whence != 2 && self->readable) {
1095 Don't know how to do that when whence == 2, though. */
    [all...]
textio.c 2004 int whence = 0; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
fileio.c 73 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)
698 switch (whence) {
700 case 0: whence = SEEK_SET; break;
703 case 1: whence = SEEK_CUR; break;
706 case 2: whence = SEEK_END; break;
730 res = _lseeki64(fd, pos, whence);
732 res = lseek(fd, pos, whence);
751 int whence = 0; local
    [all...]
bufferedio.c 615 _buffered_raw_seek(buffered *self, Py_off_t target, int whence)
623 whenceobj = PyLong_FromLong(whence);
1044 int whence = 0; local
1048 if (!PyArg_ParseTuple(args, "O|i:seek", &targetobj, &whence)) {
1051 if (whence < 0 || whence > 2) {
1053 "whence must be between 0 and 2, not %d", whence);
1063 if (whence != 2 && self->readable) {
1068 Don't know how to do that when whence == 2, though. */
    [all...]
textio.c 1958 int whence = 0; local
    [all...]
  /external/python/cpython2/Mac/Modules/
MacOS.c 138 int whence = SEEK_SET; local
146 if (!PyArg_ParseTuple(args, "l|i", &amount, &whence)) {
150 switch (whence) {
  /external/python/cpython2/Modules/_io/
fileio.c 68 portable_lseek(int fd, PyObject *posobj, int whence);
70 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
717 portable_lseek(int fd, PyObject *posobj, int whence)
723 switch (whence) {
725 case 0: whence = SEEK_SET; break;
728 case 1: whence = SEEK_CUR; break;
731 case 2: whence = SEEK_END; break;
755 res = _lseeki64(fd, pos, whence);
757 res = lseek(fd, pos, whence);
776 int whence = 0 local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
fileobject.c 695 _portable_fseek(FILE *fp, Py_off_t offset, int whence)
698 return fseek(fp, offset, whence);
700 return fseeko(fp, offset, whence);
702 return fseek64(fp, offset, whence);
704 return _fseek(fp, offset, whence);
709 switch (whence) {
760 int whence; local
768 whence = 0;
769 if (!PyArg_ParseTuple(args, "O|i:seek", &offobj, &whence))
796 ret = _portable_fseek(f->f_fp, offset, whence);
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
fileobject.c 681 _portable_fseek(FILE *fp, Py_off_t offset, int whence)
684 return fseek(fp, offset, whence);
686 return fseeko(fp, offset, whence);
688 return fseek64(fp, offset, whence);
690 return _fseek(fp, offset, whence);
695 switch (whence) {
746 int whence; local
754 whence = 0;
755 if (!PyArg_ParseTuple(args, "O|i:seek", &offobj, &whence))
782 ret = _portable_fseek(f->f_fp, offset, whence);
    [all...]

Completed in 1235 milliseconds

1 2