Skip to content

SignedLong does not work on Mac OS in Gettimeofday. #6

Open
@konstantin-krasheninnikov-ullink

Description

I am on 12.5.0 Darwin Kernel Version 12.5.0: ...RELEASE_X86_64 x86_64 and SignedLong did not work for me. Generally speaking I do not see a need for long as it is an offset in microseconds. But it seem in Linux headers it is long int and on Mac:
typedef __int32_t __darwin_suseconds_t;

Maybe there's a need for Struct.suseconds_t type similar to Struct.time_t. Could anyone shed some light of 32- vs 64-bit int for suseconds_t type?

Alternatively SignedLong can still work but with tv.tv_usec.intValue() instead of tv.tv_usec.get().

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions