Searched refs:whence (Results 1 - 25 of 28) sorted by relevance

12

/barrelfish-2018-10-04/include/vfs/
H A Dvfs_fd.h22 off_t vfsfd_lseek(int fd, off_t off, int whence);
H A Dvfs.h69 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 Dopen_memstream2_test.c159 #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 Dopen_wmemstream_test.c159 #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 Dstdio.c69 __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 Dfseek.c54 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 Dfopencookie.c117 _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 Dfmemopen.c49 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 Dopen_memstream.c111 memstream_seek(void *cookie, fpos_t pos, int whence) argument
122 switch (whence) {
160 whence, (intmax_t)old, (intmax_t)ms->offset);
H A Dopen_wmemstream.c173 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 Dfindfp.c90 static fpos_t seek_fail(void *cookie, fpos_t offset, int whence) argument
/barrelfish-2018-10-04/lib/libc/sys/barrelfish/
H A Dposix_syscalls.c28 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 Dfindfp.c106 _DEFUN(seek_fail, (ptr, cookie, offset, whence),
110 int whence)
/barrelfish-2018-10-04/lib/libc/sys/
H A Dbarrelfish_syscalls.c30 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 Dvfs_fd.c195 off_t vfsfd_lseek(int fd, off_t offset, int whence) argument
205 switch(whence) {
236 fd, offset, whence, retpos);
H A Dvfs_ops.h27 errval_t (*seek)(void *st, vfs_handle_t handle, enum vfs_seekpos whence,
H A Dvfs_blockdevfs.c216 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 Dvfs.c335 * \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 Dcache.c686 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 Dvfs_ramfs.c507 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 Dfile.h116 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 Dfs.h208 no_llseek(struct file *file, loff_t offset, int whence) argument
/barrelfish-2018-10-04/lib/zlib/
H A Dgzio.c767 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 Dio.c1962 * 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 Dzlib.h1184 z_off_t offset, int whence));
1188 uncompressed data stream. The whence parameter is defined as in lseek(2);

Completed in 105 milliseconds

12