Skip to content

Commit

Permalink
bsd-user: Rename target_freebsd_time_t to target_time_t
Browse files Browse the repository at this point in the history
This is necessary for future code using target_time_t, in
bsd-user/syscall_defs.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
bsdimp committed Aug 28, 2023
1 parent 243c725 commit a0c20b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bsd-user/syscall_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
*
*/
#if (!defined(TARGET_I386))
typedef int64_t target_freebsd_time_t;
typedef int64_t target_time_t;
#else
typedef int32_t target_freebsd_time_t;
typedef int32_t target_time_t;
#endif

struct target_iovec {
Expand Down Expand Up @@ -102,7 +102,7 @@ typedef abi_long target_freebsd_suseconds_t;

/* compare to sys/timespec.h */
struct target_freebsd_timespec {
target_freebsd_time_t tv_sec; /* seconds */
target_time_t tv_sec; /* seconds */
abi_long tv_nsec; /* and nanoseconds */
#if !defined(TARGET_I386) && TARGET_ABI_BITS == 32
abi_long _pad;
Expand All @@ -120,7 +120,7 @@ struct target_freebsd__umtx_time {
};

struct target_freebsd_timeval {
target_freebsd_time_t tv_sec; /* seconds */
target_time_t tv_sec; /* seconds */
target_freebsd_suseconds_t tv_usec;/* and microseconds */
#if !defined(TARGET_I386) && TARGET_ABI_BITS == 32
abi_long _pad;
Expand Down

0 comments on commit a0c20b1

Please sign in to comment.