/barrelfish-2018-10-04/include/vfs/ |
H A D | vfs_fd.h | 22 off_t vfsfd_lseek(int fd, off_t off, int whence);
|
H A D | vfs.h | 69 errval_t vfs_seek(vfs_handle_t handle, enum vfs_seekpos whence, off_t offset);
|
/barrelfish-2018-10-04/lib/libc/tests/stdio/ |
H A D | open_memstream2_test.c | 159 #define SEEK_FAIL(offset, whence, error) do { \ 161 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \ 163 __STRING(offset), __STRING(whence), \ 167 __STRING(offset), __STRING(whence), errno, \ 171 #define SEEK_OK(offset, whence, result) do { \ 172 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \ 174 __STRING(offset), __STRING(whence), strerror(errno)); \ 177 __STRING(offset), __STRING(whence), \
|
H A D | open_wmemstream_test.c | 159 #define SEEK_FAIL(offset, whence, error) do { \ 161 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) != 0, \ 163 __STRING(offset), __STRING(whence), \ 167 __STRING(offset), __STRING(whence), errno, \ 171 #define SEEK_OK(offset, whence, result) do { \ 172 ATF_REQUIRE_MSG(fseeko(fp, (offset), (whence)) == 0, \ 174 __STRING(offset), __STRING(whence), strerror(errno)); \ 177 __STRING(offset), __STRING(whence), \
|
/barrelfish-2018-10-04/lib/libc/stdio/ |
H A D | stdio.c | 69 __sseek(void *cookie, fpos_t offset, int whence) argument 73 return (lseek(fp->_file, (off_t)offset, whence)); 132 _sseek(FILE *fp, fpos_t offset, int whence) argument 139 ret = (*fp->_seek)(fp->_cookie, offset, whence); 150 if (offset != 0 || whence != SEEK_CUR) {
|
H A D | fseek.c | 54 fseek(FILE *fp, long offset, int whence) argument 64 ret = _fseeko(fp, (off_t)offset, whence, 1); 72 fseeko(FILE *fp, off_t offset, int whence) argument 82 ret = _fseeko(fp, offset, whence, 0); 94 _fseeko(FILE *fp, off_t offset, int whence, int ltest) argument 111 * Change any SEEK_CUR to SEEK_SET, and check `whence' argument. 112 * After this, whence is either SEEK_SET or SEEK_END. 114 switch (whence) { 142 whence = SEEK_SET; 188 if (whence [all...] |
H A D | fopencookie.c | 117 _fopencookie_seek(void *cookie, fpos_t offset, int whence) argument 123 switch (whence) { 146 res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence);
|
H A D | fmemopen.c | 49 static fpos_t fmemopen_seek(void *cookie, fpos_t offset, int whence); 213 fmemopen_seek(void *cookie, fpos_t offset, int whence) argument 218 switch (whence) {
|
H A D | open_memstream.c | 111 memstream_seek(void *cookie, fpos_t pos, int whence) argument 122 switch (whence) { 160 whence, (intmax_t)old, (intmax_t)ms->offset);
|
H A D | open_wmemstream.c | 173 wmemstream_seek(void *cookie, fpos_t pos, int whence) argument 180 switch (whence) { 221 (intmax_t)pos, whence, (intmax_t)old, (intmax_t)ms->offset);
|
H A D | findfp.c | 90 static fpos_t seek_fail(void *cookie, fpos_t offset, int whence) argument
|
/barrelfish-2018-10-04/lib/libc/sys/barrelfish/ |
H A D | posix_syscalls.c | 28 static off_t lseek_fail(int fd, off_t off, int whence) { FAIL_FN(); } argument 157 xlseek(int fd, off_t offset, int whence) argument 159 return fs_ops.lseek(fd, offset, whence); 163 _DEFUN (_lseek_r, (ptr, fd, pos, whence), 167 int whence) 172 if ((ret = xlseek (fd, pos, whence)) == (_off_t) -1 && errno != 0)
|
H A D | findfp.c | 106 _DEFUN(seek_fail, (ptr, cookie, offset, whence), 110 int whence)
|
/barrelfish-2018-10-04/lib/libc/sys/ |
H A D | barrelfish_syscalls.c | 30 static off_t lseek_fail(int fd, off_t off, int whence) { FAIL_FN(); } argument 86 off_t lseek(int fd, off_t offset, int whence) argument 88 return fs_ops.lseek(fd, offset, whence);
|
/barrelfish-2018-10-04/lib/vfs/ |
H A D | vfs_fd.c | 195 off_t vfsfd_lseek(int fd, off_t offset, int whence) argument 205 switch(whence) { 236 fd, offset, whence, retpos);
|
H A D | vfs_ops.h | 27 errval_t (*seek)(void *st, vfs_handle_t handle, enum vfs_seekpos whence,
|
H A D | vfs_blockdevfs.c | 216 static errval_t seek(void *st, vfs_handle_t handle, enum vfs_seekpos whence, argument 223 switch (whence) { 244 USER_PANIC("invalid whence argument to blockdevfs seek");
|
H A D | vfs.c | 335 * \param whence Determines interpretation of offset 336 * \param offset Offset in bytes from position specified by #whence 338 * See documentation of the enum #vfs_seekpos for the possible values of #whence. 340 errval_t vfs_seek(vfs_handle_t handle, enum vfs_seekpos whence, off_t offset) argument 346 return m->ops->seek(m->st, handle, whence, offset);
|
H A D | cache.c | 686 static errval_t seek(void *st, vfs_handle_t handle, enum vfs_seekpos whence, argument 694 if(whence == VFS_SEEK_END) { 719 err = bst->orig_ops->seek(bst->orig_st, handle, whence, offset);
|
H A D | vfs_ramfs.c | 507 static errval_t seek(void *st, vfs_handle_t handle, enum vfs_seekpos whence, argument 514 switch (whence) { 535 USER_PANIC("invalid whence argument to ramfs seek");
|
/barrelfish-2018-10-04/include/sys/ |
H A D | file.h | 116 typedef int fo_seek_t(struct file *fp, off_t offset, int whence, 387 fo_seek(struct file *fp, off_t offset, int whence, struct thread *td) argument 390 return ((*fp->f_ops->fo_seek)(fp, offset, whence, td));
|
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/include/linux/ |
H A D | fs.h | 208 no_llseek(struct file *file, loff_t offset, int whence) argument
|
/barrelfish-2018-10-04/lib/zlib/ |
H A D | gzio.c | 767 z_off_t ZEXPORT gzseek (file, offset, whence) 770 int whence; 774 if (s == NULL || whence == SEEK_END || 783 if (whence == SEEK_SET) { 809 if (whence == SEEK_CUR) {
|
/barrelfish-2018-10-04/usr/eclipseclp/Kernel/src/ |
H A D | io.c | 1962 * FUNCTION NAME: ec_seek_stream(nst, pos, whence) 1970 ec_seek_stream(stream_id nst, long int pos, int whence) argument 1972 return StreamMethods(nst).seek(nst, pos, whence); 1977 _dummy_seek(stream_id nst, long int pos, int whence) argument 1984 _illegal_seek(stream_id nst, long int pos, int whence) argument 1990 _string_seek(stream_id nst, long int pos, int whence) argument 1996 if (whence == LSEEK_END) /* seek to current end */ 2080 _file_seek(stream_id nst, long int pos, int whence) argument 2087 if (!IsWriteStream(nst) || whence == LSEEK_END) /* we need the length */ 2097 if (whence 2148 _buffer_seek(stream_id nst, long int pos, int whence) argument [all...] |
/barrelfish-2018-10-04/include/ |
H A D | zlib.h | 1184 z_off_t offset, int whence)); 1188 uncompressed data stream. The whence parameter is defined as in lseek(2);
|