Standards
Standards / Extensions |
C or C++ |
Dependencies |
|
both |
|
Format
#include <sys/_Elmarm4.h>
arm_error_t arm_get_timestamp(
/* [out] */ arm_timestamp_t *timestamp
);
General description
Use arm_get_timestamp()
to obtain the current time. If the application wants to pass the arrival
time sub-buffer to arm_start_transaction(), it must call arm_get_timestamp()
to capture the arrival time in a format that is compatible with the
arrival time sub-buffer.
- timestamp
- Area where the current time is returned. The format of the timestamp
is implementation-dependent.
Returned value
On success, arm_get_timestamp
returns ARM_RC_SUCCESS. On failure, the errno and return code are
set to indicate the error. See
Return code for
the list of all possible return codes.
- Error Code
- Description
- EFAULT
- A parameter of this service contained an address that was not
accessible to the caller.
- EINVAL
- A parameter of this service contained a value that was not valid.
- EMVSARMERROR
- An ARM error occurred. Refer to the return code for the specific
error.
- EPERM
- The caller does not have the appropriate privileges. The return
code is set to ARM_RC_AUTH_ERROR.
- EMVSSAF2ERR
- An error occurred in the security product.