diff options
author | Filip Bozuta <Filip.Bozuta@syrmia.com> | 2020-08-25 00:30:50 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-08-28 15:24:42 +0200 |
commit | cac46eb021fbbac77f1f98223b19608f31fc2236 (patch) | |
tree | 05bbb65b371d3bd4e647e3ba88a4de46620f94f6 /hw/sd/sdmmc-internal.c | |
parent | ddcbde157d66f7ee53d9789cf605ebaa4be0745e (diff) | |
download | qemu-cac46eb021fbbac77f1f98223b19608f31fc2236.zip qemu-cac46eb021fbbac77f1f98223b19608f31fc2236.tar.gz qemu-cac46eb021fbbac77f1f98223b19608f31fc2236.tar.bz2 |
linux-user: Add support for utimensat_time64() and semtimedop_time64()
This patch introduces functionality for following time64 syscalls:
*utimensat_time64()
int utimensat(int dirfd, const char *pathname,
const struct timespec times[2], int flags);
-- change file timestamps with nanosecond precision --
man page: https://man7.org/linux/man-pages/man2/utimensat.2.html
*semtimedop_time64()
int semtimedop(int semid, struct sembuf *sops, size_t nsops,
const struct timespec *timeout);
-- System V semaphore operations --
man page: https://www.man7.org/linux/man-pages/man2/semtimedop.2.html
Implementation notes:
Syscall 'utimensat_time64()' is implemented in similar way as its
regular variants only difference being that time64 converting function
is used to convert values of 'struct timespec' between host and target
('target_to_host_timespec64()').
For syscall 'semtimedop_time64()' and additional argument is added
in function 'do_semtimedop()' through which the aproppriate 'struct timespec'
converting function is called (false for regular target_to_host_timespec()
and true for target_to_host_timespec64()). For 'do_ipc()' a
check was added as that additional argument: 'TARGET_ABI_BITS == 64'.
Signed-off-by: Filip Bozuta <Filip.Bozuta@syrmia.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200824223050.92032-3-Filip.Bozuta@syrmia.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/sd/sdmmc-internal.c')
0 files changed, 0 insertions, 0 deletions