Home
last modified time | relevance | path

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

123456789

/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.h10 #define read_lock(fd, offset, whence, len) \ argument
11 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLK)
12 #define write_lock(fd, offset, whence, len) \ argument
13 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK)
14 #define un_lock(fd, offset, whence, len) \ argument
15 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLK)
16 #define readb_lock(fd, offset, whence, len) \ argument
17 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLKW)
18 #define writeb_lock(fd, offset, whence, len) \ argument
19 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLKW)
[all …]
Dnfs_flock_func.c6 int lock_reg(int fd, int type, off_t offset, int whence, off_t len, int cmd) in lock_reg() argument
12 lock.l_whence = whence; in lock_reg()
18 int lock_test(int fd, int type, off_t offset, int whence, int len) in lock_test() argument
24 lock.l_whence = whence; in lock_test()
/external/curl/src/
Dtool_cb_see.c47 int tool_seek_cb(void *userdata, curl_off_t offset, int whence) in tool_seek_cb() argument
63 if(whence != SEEK_SET) in tool_seek_cb()
82 if(LSEEK_ERROR == lseek(in->fd, offset, whence)) in tool_seek_cb()
95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence) argument
103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) argument
110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
/external/pdfium/third_party/libtiff/
Dtiffiop.h221 #define TIFFSeekFile(tif, off, whence) \ argument
222 ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence)))
289 # define fseek(stream,offset,whence) fseeko(stream,offset,whence) argument
290 # define ftell(stream,offset,whence) ftello(stream,offset,whence) argument
297 #define _TIFF_lseek_f(fildes,offset,whence) _lseeki64(fildes,/* __int64 */ offset,whence) argument
299 #define _TIFF_fseek_f(stream,offset,whence) _fseeki64(stream,/* __int64 */ offset,whence) argument
307 #define _TIFF_lseek_f(fildes,offset,whence) lseek(fildes,offset,whence) argument
309 #define _TIFF_fseek_f(stream,offset,whence) fseek(stream,offset,whence) argument
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek02.c49 int whence; member
73 TEST(lseek(*tc->fd, (off_t) 1, tc->whence)); in verify_lseek()
76 *tc->fd, tc->whence); in verify_lseek()
82 *tc->fd, tc->whence); in verify_lseek()
85 "unexpectedly, expected %s", *tc->fd, tc->whence, in verify_lseek()
Dlseek11.c80 int whence; member
209 offset = SAFE_LSEEK(fd, offset, tp->whence); in test_lseek()
221 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE", in test_lseek()
226 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE", in test_lseek()
/external/python/cpython3/Lib/
D_compression.py120 def seek(self, offset, whence=io.SEEK_SET): argument
122 if whence == io.SEEK_SET:
124 elif whence == io.SEEK_CUR:
126 elif whence == io.SEEK_END:
133 raise ValueError("Invalid value for whence: {}".format(whence))
D_pyio.py324 def seek(self, pos, whence=0): argument
743 def seek(self, pos, whence=0): argument
744 new_position = self.raw.seek(pos, whence)
913 def seek(self, pos, whence=0): argument
922 if whence == 0:
926 elif whence == 1:
928 elif whence == 2:
1156 def seek(self, pos, whence=0): argument
1157 if whence not in valid_seek_flags:
1160 if whence == 1:
[all …]
/external/pdfium/third_party/libopenjpeg20/
Dopj_includes.h79 # define OPJ_FSEEK(stream,offset,whence) _fseeki64(stream,/* __int64 */ offset,whence) argument
85 # define OPJ_FSEEK(stream,offset,whence) fseek(stream,offset,whence) argument
/external/python/cpython3/Modules/clinic/
Dfcntlmodule.c.h168 PyObject *startobj, int whence);
178 int whence = 0; in fcntl_lockf() local
181 conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) { in fcntl_lockf()
184 return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence); in fcntl_lockf()
/external/python/cpython2/Lib/
D_pyio.py307 def seek(self, pos, whence=0): argument
700 def seek(self, pos, whence=0): argument
701 new_position = self.raw.seek(pos, whence)
855 def seek(self, pos, whence=0): argument
862 if whence == 0:
866 elif whence == 1:
868 elif whence == 2:
1051 def seek(self, pos, whence=0): argument
1052 if not (0 <= whence <= 2):
1055 if whence == 1:
[all …]
Dmultifile.py58 def seek(self, pos, whence=0): argument
60 if whence:
61 if whence == 1:
63 elif whence == 2:
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl20.c141 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() argument
146 fl.l_whence = whence; in do_lock()
152 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() argument
155 fl->l_whence = whence; in do_test()
165 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() argument
174 if (fl->l_whence != whence) { in compare_lock()
176 whence, fl->l_whence); in compare_lock()
Dfcntl19.c142 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() argument
147 fl.l_whence = whence; in do_lock()
153 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() argument
156 fl->l_whence = whence; in do_test()
166 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() argument
175 if (fl->l_whence != whence) { in compare_lock()
177 whence, fl->l_whence); in compare_lock()
Dfcntl11.c128 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() argument
133 fl.l_whence = whence; in do_lock()
139 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() argument
142 fl->l_whence = whence; in do_test()
152 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() argument
159 if (fl->l_whence != whence) in compare_lock()
161 whence, fl->l_whence); in compare_lock()
/external/python/cpython2/Modules/_io/
Dfileio.c71 portable_lseek(int fd, PyObject *posobj, int whence);
73 static PyObject *portable_lseek(int fd, PyObject *posobj, int whence);
753 portable_lseek(int fd, PyObject *posobj, int whence) in portable_lseek() argument
759 switch (whence) { in portable_lseek()
761 case 0: whence = SEEK_SET; break; in portable_lseek()
764 case 1: whence = SEEK_CUR; break; in portable_lseek()
767 case 2: whence = SEEK_END; break; in portable_lseek()
791 res = _lseeki64(fd, pos, whence); in portable_lseek()
793 res = lseek(fd, pos, whence); in portable_lseek()
812 int whence = 0; in fileio_seek() local
[all …]
/external/e2fsprogs/lib/blkid/
Dllseek.c95 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence) in blkid_llseek() argument
102 return lseek(fd, (off_t) offset, whence); in blkid_llseek()
109 result = my_llseek(fd, offset, whence); in blkid_llseek()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dllseek.c32 static off_t my_lseek(int fd, off_t off, int whence) in my_lseek() argument
34 return syscall(__NR_lseek, fd, off, whence); in my_lseek()
37 static off_t my_lseek(int fd, off_t off, int whence) in my_lseek() argument
/external/u-boot/arch/sandbox/cpu/
Dos.c54 off_t os_lseek(int fd, off_t offset, int whence) in os_lseek() argument
56 if (whence == OS_SEEK_SET) in os_lseek()
57 whence = SEEK_SET; in os_lseek()
58 else if (whence == OS_SEEK_CUR) in os_lseek()
59 whence = SEEK_CUR; in os_lseek()
60 else if (whence == OS_SEEK_END) in os_lseek()
61 whence = SEEK_END; in os_lseek()
64 return lseek(fd, offset, whence); in os_lseek()
/external/python/cpython2/Modules/zlib/
Dgzlib.c366 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument
369 int whence;
387 if (whence != SEEK_SET && whence != SEEK_CUR)
391 if (whence == SEEK_SET)
443 z_off_t ZEXPORT gzseek(file, offset, whence) in gzseek() argument
446 int whence;
450 ret = gzseek64(file, (z_off64_t)offset, whence);
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAsset.java103 public abstract long seek(long offset, int whence); in seek() argument
538 long handleSeek(long offset, int whence, long curPosn, long maxPosn) in handleSeek() argument
542 switch (whence) { in handleSeek()
553 ALOGW("unexpected whence %d\n", whence); in handleSeek()
814 public long seek(long offset, int whence) { in seek() argument
819 newPosn = handleSeek(offset, whence, mOffset, mLength); in seek()
1274 public long seek(long offset, int whence) { in seek() argument
1278 newPosn = handleSeek(offset, whence, mOffset, mUncompressedLen); in seek()
/external/zlib/src/
Dgzlib.c366 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument
369 int whence;
387 if (whence != SEEK_SET && whence != SEEK_CUR)
391 if (whence == SEEK_SET)
443 z_off_t ZEXPORT gzseek(file, offset, whence) in gzseek() argument
446 int whence;
450 ret = gzseek64(file, (z_off64_t)offset, whence);
/external/ltp/utils/ffsb-6.0-rc2/
Dfh.c189 void fhseek(int fd, uint64_t offset, int whence, ffsb_thread_t * ft, in fhseek() argument
197 if ((whence == SEEK_CUR) && (offset == 0)) in fhseek()
203 res = lseek64(fd, offset, whence); in fhseek()
209 if ((whence == SEEK_SET) && (res != offset)) in fhseek()
213 if (whence == SEEK_SET) in fhseek()
/external/python/cpython3/Modules/_io/
Dfileio.c77 static PyObject* portable_lseek(fileio *self, PyObject *posobj, int whence);
868 portable_lseek(fileio *self, PyObject *posobj, int whence) argument
875 switch (whence) {
877 case 0: whence = SEEK_SET; break;
880 case 1: whence = SEEK_CUR; break;
883 case 2: whence = SEEK_END; break;
908 res = _lseeki64(fd, pos, whence);
910 res = lseek(fd, pos, whence);
947 _io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence) argument
953 return portable_lseek(self, pos, whence);
/external/python/cpython3/Modules/_io/clinic/
Dstringio.c.h150 _io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence);
157 int whence = 0; in _io_StringIO_seek() local
160 &pos, &whence)) { in _io_StringIO_seek()
163 return_value = _io_StringIO_seek_impl(self, pos, whence); in _io_StringIO_seek()

123456789