/third_party/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()
|
/third_party/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 104 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence) argument 111 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) argument
|
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
D | fseek.c | 3 int __fseeko_unlocked(FILE *f, off_t off, int whence) in __fseeko_unlocked() argument 6 if (whence == SEEK_CUR && f->rend) off -= f->rend - f->rpos; in __fseeko_unlocked() 18 if (lseek(f->fd, off, whence) < 0) return -1; in __fseeko_unlocked() 27 int __fseeko(FILE *f, off_t off, int whence) in __fseeko() argument 31 result = __fseeko_unlocked(f, off, whence); in __fseeko() 36 int fseek(FILE *f, long off, int whence) in fseek() argument 38 return __fseeko(f, off, whence); in fseek()
|
D | __stdio_seek.c | 5 static off64_t __stdio_lseek64(int fd, int offsetHigh, int offsetLow, off64_t *result, int whence) 38 ret = file_seek64(filep, offset, whence); 49 off_t __stdio_seek(FILE *f, off_t off, int whence) in __stdio_seek() argument 52 return lseek(f->fd, (unsigned int)off, whence) ? -1 : result; in __stdio_seek()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
D | fseek.c | 3 int __fseeko_unlocked(FILE *f, off_t off, int whence) in __fseeko_unlocked() argument 6 if (whence == SEEK_CUR && f->rend) off -= f->rend - f->rpos; in __fseeko_unlocked() 18 if (lseek(f->fd, off, whence) < 0) return -1; in __fseeko_unlocked() 27 int __fseeko(FILE *f, off_t off, int whence) in __fseeko() argument 31 result = __fseeko_unlocked(f, off, whence); in __fseeko() 36 int fseek(FILE *f, long off, int whence) in fseek() argument 38 return __fseeko(f, off, whence); in fseek()
|
D | __stdio_seek.c | 5 static off64_t __stdio_lseek64(int fd, int offsetHigh, int offsetLow, off64_t *result, int whence) 38 ret = file_seek64(filep, offset, whence); 49 off_t __stdio_seek(FILE *f, off_t off, int whence) in __stdio_seek() argument 52 return lseek(f->fd, (unsigned int)off, whence) ? -1 : result; in __stdio_seek()
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
D | fseek.c | 3 int __fseeko_unlocked(FILE *f, off_t off, int whence) in __fseeko_unlocked() argument 6 if (whence == SEEK_CUR && f->rend) off -= f->rend - f->rpos; in __fseeko_unlocked() 18 if (f->seek(f, off, whence) < 0) return -1; in __fseeko_unlocked() 27 int __fseeko(FILE *f, off_t off, int whence) in __fseeko() argument 31 result = __fseeko_unlocked(f, off, whence); in __fseeko() 36 int fseek(FILE *f, long off, int whence) in fseek() argument 38 return __fseeko(f, off, whence); in fseek()
|
/third_party/musl/src/stdio/ |
D | fseek.c | 3 int __fseeko_unlocked(FILE *f, off_t off, int whence) in __fseeko_unlocked() argument 6 if (whence == SEEK_CUR && f->rend) off -= f->rend - f->rpos; in __fseeko_unlocked() 18 if (f->seek(f, off, whence) < 0) return -1; in __fseeko_unlocked() 27 int __fseeko(FILE *f, off_t off, int whence) in __fseeko() argument 31 result = __fseeko_unlocked(f, off, whence); in __fseeko() 36 int fseek(FILE *f, long off, int whence) in fseek() argument 38 return __fseeko(f, off, whence); in fseek()
|
/third_party/ffmpeg/libavformat/ |
D | cache.c | 227 static int64_t cache_seek(URLContext *h, int64_t pos, int whence) in cache_seek() argument 232 if (whence == AVSEEK_SIZE) { in cache_seek() 233 pos= ffurl_seek(c->inner, pos, whence); in cache_seek() 245 if (whence == SEEK_CUR) { in cache_seek() 246 whence = SEEK_SET; in cache_seek() 248 } else if (whence == SEEK_END && c->is_true_eof) { in cache_seek() 250 whence = SEEK_SET; in cache_seek() 254 if (whence == SEEK_SET && pos >= 0 && pos < c->end) { in cache_seek() 261 ret= ffurl_seek(c->inner, pos, whence); in cache_seek() 262 if ((whence == SEEK_SET && pos >= c->logical_pos || in cache_seek() [all …]
|
D | subfile.c | 116 static int64_t subfile_seek(URLContext *h, int64_t pos, int whence) in subfile_seek() argument 122 if (whence == AVSEEK_SIZE || whence == SEEK_END) { in subfile_seek() 128 if (whence == AVSEEK_SIZE) in subfile_seek() 130 switch (whence) { in subfile_seek()
|
/third_party/musl/porting/liteos_a_newlib/kernel/src/ |
D | fs.c | 72 off_t _lseek(int fd, off_t offset, int whence) in _lseek() argument 74 return lseek(fd, offset, whence); in _lseek() 77 int __wrap__fseeko_r(struct _reent *ptr, register FILE *fp, _off_t offset, int whence) in __wrap__fseeko_r() argument 79 return _lseek(fp, offset, whence); in __wrap__fseeko_r() 119 off_t _lseek(int fd, off_t offset, int whence) in _lseek() argument 124 int __wrap__fseeko_r(struct _reent *ptr, register FILE *fp, _off_t offset, int whence) in __wrap__fseeko_r() argument
|
/third_party/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()
|
/third_party/cef/libcef/browser/ |
D | stream_impl.h | 23 int Seek(int64 offset, int whence) override; 44 int Seek(int64 offset, int whence) override; 65 int Seek(int64 offset, int whence) override; 93 int Seek(int64 offset, int whence) override; 124 int Seek(int64 offset, int whence) override { in Seek() argument 125 return handler_->Seek(offset, whence); in Seek() 146 int Seek(int64 offset, int whence) override { in Seek() argument 147 return handler_->Seek(offset, whence); in Seek()
|
D | stream_impl.cc | 85 int CefFileReader::Seek(int64 offset, int whence) { in Seek() argument 88 return _fseeki64(file_, offset, whence); in Seek() 90 return fseek(file_, offset, whence); in Seek() 124 int CefFileWriter::Seek(int64 offset, int whence) { in Seek() argument 126 return fseek(file_, offset, whence); in Seek() 159 int CefBytesReader::Seek(int64 offset, int whence) { in Seek() argument 162 switch (whence) { in Seek() 247 int CefBytesWriter::Seek(int64 offset, int whence) { in Seek() argument 250 switch (whence) { in Seek()
|
/third_party/NuttX/fs/vfs/ |
D | fs_lseek.c | 58 off_t file_seek(struct file *filep, off_t offset, int whence) in file_seek() argument 76 pos = filep->ops->seek(filep, offset, whence); in file_seek() 89 switch (whence) in file_seek() 161 off_t lseek(int fd, off_t offset, int whence) in lseek() argument 176 return file_seek(filep, offset, whence); in lseek()
|
D | fs_lseek64.c | 73 off64_t file_seek64(struct file *filep, off64_t offset, int whence) in file_seek64() argument 92 pos = filep->ops->seek(filep, offset, whence); in file_seek64() 105 switch (whence) in file_seek64() 178 off64_t lseek64(int fd, off64_t offset, int whence) in lseek64() argument 193 return file_seek64(filep, offset, whence); in lseek64()
|
/third_party/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()
|
/third_party/musl/src/unistd/ |
D | lseek.c | 4 off_t __lseek(int fd, off_t offset, int whence) in __lseek() argument 8 return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result; in __lseek() 10 return syscall(SYS_lseek, fd, offset, whence); in __lseek()
|
/third_party/cef/include/ |
D | cef_stream.h | 61 virtual int Seek(int64 offset, int whence) = 0; 120 virtual int Seek(int64 offset, int whence) = 0; 162 virtual int Seek(int64 offset, int whence) = 0; 216 virtual int Seek(int64 offset, int whence) = 0;
|
/third_party/python/Lib/ |
D | _compression.py | 130 def seek(self, offset, whence=io.SEEK_SET): argument 132 if whence == io.SEEK_SET: 134 elif whence == io.SEEK_CUR: 136 elif whence == io.SEEK_END: 143 raise ValueError("Invalid value for whence: {}".format(whence))
|
/third_party/python/Modules/clinic/ |
D | fcntlmodule.c.h | 203 PyObject *startobj, int whence); 213 int whence = 0; in fcntl_lockf() local 236 whence = _PyLong_AsInt(args[4]); in fcntl_lockf() 237 if (whence == -1 && PyErr_Occurred()) { in fcntl_lockf() 241 return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence); in fcntl_lockf()
|
/third_party/cef/include/capi/ |
D | cef_stream_capi.h | 73 int whence); 117 int whence); 179 int whence); 223 int whence);
|
/third_party/libsnd/ossfuzz/ |
D | sndfile_fuzzer.cc | 21 static sf_count_t vfseek (sf_count_t offset, int whence, void *user_data) in vfseek() argument 26 switch (whence) in vfseek() 50 new_offset, vf->length, whence, vf->offset, offset); in vfseek() 58 new_offset, whence, vf->offset, vf->length, offset); in vfseek()
|