/external/ltp/testcases/network/nfs/nfslock01/ |
D | nfs_flock.h | 10 #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 …]
|
D | nfs_flock_func.c | 6 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/ |
D | tool_cb_see.c | 47 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/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek03.c | 39 int whence; member 61 static const char *str_whence(int whence) in str_whence() argument 63 switch (whence) { in str_whence() 85 TEST(lseek64(fd, tc->off, tc->whence)); in verify_lseek64() 107 tst_res(TPASS, "%s read returned 0", str_whence(tc->whence)); in verify_lseek64() 115 tst_res(TPASS, "%s for llseek", str_whence(tc->whence)); in verify_lseek64()
|
D | llseek02.c | 31 int whence; member 42 TEST(lseek64(*tc->fd, (loff_t) 1, tc->whence)); in verify_llseek() 45 *tc->fd, tc->whence, TST_RET); in verify_llseek() 50 *tc->fd, tc->whence); in verify_llseek() 53 "unexpectedly, expected %s", *tc->fd, tc->whence, in verify_llseek()
|
/external/pdfium/third_party/libtiff/ |
D | tiffiop.h | 236 #define TIFFSeekFile(tif, off, whence) \ argument 237 ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence))) 303 # define fseek(stream,offset,whence) fseeko(stream,offset,whence) argument 304 # define ftell(stream,offset,whence) ftello(stream,offset,whence) argument 311 #define _TIFF_lseek_f(fildes,offset,whence) _lseeki64(fildes,/* __int64 */ offset,whence) argument 313 #define _TIFF_fseek_f(stream,offset,whence) _fseeki64(stream,/* __int64 */ offset,whence) argument 321 #define _TIFF_lseek_f(fildes,offset,whence) lseek(fildes,offset,whence) argument 323 #define _TIFF_fseek_f(stream,offset,whence) fseek(stream,offset,whence) argument
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek02.c | 32 int whence; member 56 TEST(lseek(*tc->fd, (off_t) 1, tc->whence)); in verify_lseek() 59 *tc->fd, tc->whence); in verify_lseek() 65 *tc->fd, tc->whence); in verify_lseek() 68 "unexpectedly, expected %s", *tc->fd, tc->whence, in verify_lseek()
|
D | lseek11.c | 65 int whence; member 194 offset = SAFE_LSEEK(fd, offset, tp->whence); in test_lseek() 206 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE", in test_lseek() 211 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE", in test_lseek()
|
/external/mtools/ |
D | llong.c | 67 int mt_lseek(int fd, mt_off_t where, int whence) in mt_lseek() argument 70 if(lseek64(fd, where, whence) >= 0) in mt_lseek() 75 if(llseek(fd, where, whence) >= 0) in mt_lseek() 80 if (lseek(fd, (off_t) where, whence) >= 0) in mt_lseek()
|
/external/python/cpython3/Lib/ |
D | _compression.py | 120 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 | codecs.py | 399 def seek(self, offset, whence=0): argument 400 self.stream.seek(offset, whence) 401 if whence == 0 and offset == 0: 634 def seek(self, offset, whence=0): argument 639 self.stream.seek(offset, whence) 732 def seek(self, offset, whence=0): argument 733 self.stream.seek(offset, whence) 735 if whence == 0 and offset == 0: 850 def seek(self, offset, whence=0): argument 853 self.reader.seek(offset, whence) [all …]
|
/external/pdfium/third_party/libopenjpeg20/ |
D | opj_includes.h | 79 # 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/ |
D | fcntlmodule.c.h | 218 PyObject *startobj, int whence); 228 int whence = 0; in fcntl_lockf() local 261 whence = _PyLong_AsInt(args[4]); in fcntl_lockf() 262 if (whence == -1 && PyErr_Occurred()) { in fcntl_lockf() 266 return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence); in fcntl_lockf()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl19.c | 142 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()
|
D | fcntl20.c | 141 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()
|
D | fcntl11.c | 128 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/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | llseek.c | 32 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/e2fsprogs/lib/blkid/ |
D | llseek.c | 95 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/python/cpython2/Lib/ |
D | multifile.py | 58 def seek(self, pos, whence=0): argument 60 if whence: 61 if whence == 1: 63 elif whence == 2:
|
D | _pyio.py | 307 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 …]
|
/external/libwebsockets/win32port/zlib/ |
D | gzlib.c | 275 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument 278 int whence; 296 if (whence != SEEK_SET && whence != SEEK_CUR) 300 if (whence == SEEK_SET) 351 z_off_t ZEXPORT gzseek(file, offset, whence) in gzseek() argument 354 int whence; 358 ret = gzseek64(file, (z_off64_t)offset, whence);
|
/external/python/cpython3/Modules/_io/clinic/ |
D | stringio.c.h | 168 _io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence); 175 int whence = 0; in _io_StringIO_seek() local 205 whence = _PyLong_AsInt(args[1]); in _io_StringIO_seek() 206 if (whence == -1 && PyErr_Occurred()) { in _io_StringIO_seek() 210 return_value = _io_StringIO_seek_impl(self, pos, whence); in _io_StringIO_seek()
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
D | funopen.cpp | 39 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument 41 assert(whence == SEEK_SET); in f_seek() 42 printf("SEEK CALLED; off=%d, whence=%d\n", (int)off, whence); in f_seek()
|
/external/python/cpython2/Modules/_io/ |
D | fileio.c | 71 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/angle/third_party/zlib/ |
D | gzlib.c | 366 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);
|