On Solaris, it takes a 3rd length argument.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
#define POSIX_MADV_RANDOM MADV_RANDOM
#endif
#define POSIX_MADV_RANDOM MADV_RANDOM
#endif
+#define os_ctime_r(x, y, z) ctime_r((x), (y), (z))
+#define FIO_OS_HAS_CTIME_R
+
typedef psetid_t os_cpu_mask_t;
typedef struct solaris_rand_seed os_random_state_t;
typedef psetid_t os_cpu_mask_t;
typedef struct solaris_rand_seed os_random_state_t;
typedef socklen_t fio_socklen_t;
#endif
typedef socklen_t fio_socklen_t;
#endif
+#ifndef FIO_OS_HAS_CTIME_R
+#define os_ctime_r(x, y, z) ctime_r((x), (y))
+#endif
+
#ifdef FIO_USE_GENERIC_SWAP
static inline uint16_t fio_swap16(uint16_t val)
{
#ifdef FIO_USE_GENERIC_SWAP
static inline uint16_t fio_swap16(uint16_t val)
{
- ctime_r((const time_t *) &time_p, time_buf);
+ os_ctime_r((const time_t *) &time_p, time_buf, sizeof(time_buf));
if (!ts->error) {
log_info("%s: (groupid=%d, jobs=%d): err=%2d: pid=%d: %s",
if (!ts->error) {
log_info("%s: (groupid=%d, jobs=%d): err=%2d: pid=%d: %s",