strace.c (430da7a81d356e368ccd88dcca60f38da9aa5b9a) strace.c (19f59bcef91cd4abc04d10c9ecbf5183b71f1b06)
1#include "qemu/osdep.h"
2#include <sys/ipc.h>
3#include <sys/msg.h>
4#include <sys/sem.h>
5#include <sys/shm.h>
6#include <sys/select.h>
7#include <sys/mount.h>
8#include <arpa/inet.h>

--- 563 unchanged lines hidden (view full) ---

572 gemu_log(",");
573 print_fdset(newselect_arg1,newselect_arg4);
574 gemu_log(",");
575 print_timeval(newselect_arg5, 1);
576 gemu_log(")\n");
577}
578#endif
579
1#include "qemu/osdep.h"
2#include <sys/ipc.h>
3#include <sys/msg.h>
4#include <sys/sem.h>
5#include <sys/shm.h>
6#include <sys/select.h>
7#include <sys/mount.h>
8#include <arpa/inet.h>

--- 563 unchanged lines hidden (view full) ---

572 gemu_log(",");
573 print_fdset(newselect_arg1,newselect_arg4);
574 gemu_log(",");
575 print_timeval(newselect_arg5, 1);
576 gemu_log(")\n");
577}
578#endif
579
580/* special meanings of adjtimex()' non-negative return values */
581#define TARGET_TIME_OK 0 /* clock synchronized, no leap second */
582#define TARGET_TIME_INS 1 /* insert leap second */
583#define TARGET_TIME_DEL 2 /* delete leap second */
584#define TARGET_TIME_OOP 3 /* leap second in progress */
585#define TARGET_TIME_WAIT 4 /* leap second has occurred */
586#define TARGET_TIME_ERROR 5 /* clock not synchronized */
587static void
588print_syscall_ret_adjtimex(const struct syscallname *name, abi_long ret)
589{
590 const char *errstr = NULL;
591
592 gemu_log(" = ");
593 if (ret < 0) {
594 gemu_log("-1 errno=%d", errno);
595 errstr = target_strerror(-ret);
596 if (errstr) {
597 gemu_log(" (%s)", errstr);
598 }
599 } else {
600 gemu_log(TARGET_ABI_FMT_ld, ret);
601 switch (ret) {
602 case TARGET_TIME_OK:
603 gemu_log(" TIME_OK (clock synchronized, no leap second)");
604 break;
605 case TARGET_TIME_INS:
606 gemu_log(" TIME_INS (insert leap second)");
607 break;
608 case TARGET_TIME_DEL:
609 gemu_log(" TIME_DEL (delete leap second)");
610 break;
611 case TARGET_TIME_OOP:
612 gemu_log(" TIME_OOP (leap second in progress)");
613 break;
614 case TARGET_TIME_WAIT:
615 gemu_log(" TIME_WAIT (leap second has occurred)");
616 break;
617 case TARGET_TIME_ERROR:
618 gemu_log(" TIME_ERROR (clock not synchronized)");
619 break;
620 }
621 }
622
623 gemu_log("\n");
624}
625
580UNUSED static struct flags access_flags[] = {
581 FLAG_GENERIC(F_OK),
582 FLAG_GENERIC(R_OK),
583 FLAG_GENERIC(W_OK),
584 FLAG_GENERIC(X_OK),
585 FLAG_END,
586};
587

--- 1711 unchanged lines hidden ---
626UNUSED static struct flags access_flags[] = {
627 FLAG_GENERIC(F_OK),
628 FLAG_GENERIC(R_OK),
629 FLAG_GENERIC(W_OK),
630 FLAG_GENERIC(X_OK),
631 FLAG_END,
632};
633

--- 1711 unchanged lines hidden ---