/qemu/qga/ |
H A D | commands.c | 533 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 D | guest-agent-core.h | 46 int ga_parse_whence(GuestFileWhence *whence, Error **errp);
|
H A D | commands-posix.c | 644 int whence; in qmp_guest_file_seek() local 652 whence = ga_parse_whence(whence_code, &err); in qmp_guest_file_seek() 659 ret = fseek(fh, offset, whence); in qmp_guest_file_seek()
|
H A D | qapi-schema.json | 351 # @set: Set to the specified offset (same effect as 'whence':0) 353 # @cur: Add offset to the current location (same effect as 'whence':1) 355 # @end: Add offset to the end of the file (same effect as 'whence':2) 382 # functionality, with offset=0 and whence=1. 388 # @whence: Symbolic or numeric code for interpreting offset 396 'whence': 'GuestFileWhence' },
|
H A D | commands-win32.c | 427 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()
|
/qemu/block/export/ |
H A D | fuse.c | 800 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 D | channel-file.c | 237 int whence, in qio_channel_file_seek() argument 243 ret = lseek(fioc->fd, offset, whence); in qio_channel_file_seek() 247 (long long int)offset, whence); in qio_channel_file_seek()
|
H A D | channel-null.c | 111 int whence G_GNUC_UNUSED, in qio_channel_null_seek()
|
H A D | channel-buffer.c | 129 int whence, in qio_channel_buffer_seek() argument
|
H A D | channel.c | 570 int whence, in qio_channel_io_seek() argument 580 return klass->io_seek(ioc, offset, whence, errp); in qio_channel_io_seek()
|
/qemu/migration/ |
H A D | channel-block.c | 116 int whence, in qio_channel_block_seek() argument 121 switch (whence) { in qio_channel_block_seek()
|
H A D | qemu-file.h | 76 void qemu_set_offset(QEMUFile *f, off_t off, int whence);
|
H A D | qemu-file.c | 598 void qemu_set_offset(QEMUFile *f, off_t off, int whence) in qemu_set_offset() argument 611 ret = qio_channel_io_seek(f->ioc, off, whence, &err); in qemu_set_offset()
|
/qemu/include/io/ |
H A D | channel.h | 154 int whence, 717 int whence,
|
/qemu/semihosting/ |
H A D | syscalls.c | 356 GuestFD *gf, int64_t off, int whence) in host_lseek() argument 367 ret = lseek(gf->hostfd, ret, whence); in host_lseek()
|
/qemu/include/standard-headers/linux/ |
H A D | fuse.h | 1125 uint32_t whence; member
|
/qemu/linux-user/ |
H A D | strace.c | 2591 const char *whence = "UNKNOWN"; in print__llseek() local 2598 case SEEK_SET: whence = "SEEK_SET"; break; in print__llseek() 2599 case SEEK_CUR: whence = "SEEK_CUR"; break; in print__llseek() 2600 case SEEK_END: whence = "SEEK_END"; break; in print__llseek() 2602 qemu_log("%s", whence); in print__llseek()
|