Home
last modified time | relevance | path

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

/qemu/migration/
H A Dchannel-block.c116 int whence, in qio_channel_block_seek() argument
121 switch (whence) { in qio_channel_block_seek()
126 bioc->offset += whence; in qio_channel_block_seek()
H A Dqemu-file.h74 void qemu_set_offset(QEMUFile *f, off_t off, int whence);
H A Dqemu-file.c524 void qemu_set_offset(QEMUFile *f, off_t off, int whence) in qemu_set_offset() argument
537 ret = qio_channel_io_seek(f->ioc, off, whence, &err); in qemu_set_offset()
/qemu/qga/
H A Dcommands.c533 int ga_parse_whence(GuestFileWhence *whence, Error **errp) in ga_parse_whence() argument
540 if (whence->type == QTYPE_QSTRING) { in ga_parse_whence()
541 int value = whence->u.name; in ga_parse_whence()
542 whence->type = QTYPE_QNUM; in ga_parse_whence()
543 whence->u.value = value; in ga_parse_whence()
545 switch (whence->u.value) { in ga_parse_whence()
553 error_setg(errp, "invalid whence code %"PRId64, whence->u.value); in ga_parse_whence()
H A Dguest-agent-core.h46 int ga_parse_whence(GuestFileWhence *whence, Error **errp);
H A Dqapi-schema.json343 # @set: Set to the specified offset (same effect as 'whence':0)
345 # @cur: Add offset to the current location (same effect as 'whence':1)
347 # @end: Add offset to the end of the file (same effect as 'whence':2)
374 # functionality, with offset=0 and whence=1.
380 # @whence: Symbolic or numeric code for interpreting offset
388 'whence': 'GuestFileWhence' },
H A Dcommands-win32.c427 int whence; in qmp_guest_file_seek() local
436 whence = ga_parse_whence(whence_code, &err); in qmp_guest_file_seek()
443 res = SetFilePointerEx(fh, off_pos, &new_pos, whence); in qmp_guest_file_seek()
H A Dcommands-posix.c656 int whence; in qmp_guest_file_seek() local
664 whence = ga_parse_whence(whence_code, &err); in qmp_guest_file_seek()
671 ret = fseek(fh, offset, whence); in qmp_guest_file_seek()
/qemu/block/export/
H A Dfuse.c800 int whence, struct fuse_file_info *fi) in fuse_lseek() argument
804 if (whence != SEEK_HOLE && whence != SEEK_DATA) { in fuse_lseek()
838 if (offset > blk_len || whence == SEEK_DATA) { in fuse_lseek()
847 if (whence == SEEK_DATA) { in fuse_lseek()
852 if (whence == SEEK_HOLE) { in fuse_lseek()
/qemu/io/
H A Dchannel-file.c235 int whence, in qio_channel_file_seek() argument
241 ret = lseek(fioc->fd, offset, whence); in qio_channel_file_seek()
245 (long long int)offset, whence); in qio_channel_file_seek()
H A Dchannel-null.c111 int whence G_GNUC_UNUSED, in qio_channel_null_seek()
H A Dchannel-buffer.c129 int whence, in qio_channel_buffer_seek() argument
H A Dchannel.c554 int whence, in qio_channel_io_seek() argument
564 return klass->io_seek(ioc, offset, whence, errp); in qio_channel_io_seek()
/qemu/include/io/
H A Dchannel.h153 int whence,
713 int whence,
/qemu/semihosting/
H A Dsyscalls.c354 GuestFD *gf, int64_t off, int whence) in host_lseek() argument
365 ret = lseek(gf->hostfd, ret, whence); in host_lseek()
/qemu/include/standard-headers/linux/
H A Dfuse.h1088 uint32_t whence; member
/qemu/linux-user/
H A Dstrace.c2523 const char *whence = "UNKNOWN"; in print__llseek() local
2530 case SEEK_SET: whence = "SEEK_SET"; break; in print__llseek()
2531 case SEEK_CUR: whence = "SEEK_CUR"; break; in print__llseek()
2532 case SEEK_END: whence = "SEEK_END"; break; in print__llseek()
2534 qemu_log("%s", whence); in print__llseek()