Files
m241Neelima/vxworks-6.9/target/h/sys/time.h
T
2026-07-30 11:19:44 +05:30

60 lines
1.2 KiB
C

/* time.h - header file for time definitions/functions */
/*
* Copyright (c) 2011, 2023 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01b,10aug23,kch Update timeval structure for POSIX conformance
01a,15oct11,jpb written
*/
#ifndef __INCsys_timeh
#define __INCsys_timeh
#include <base/b_time_t.h>
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(__suseconds_t_defined)
#define __suseconds_t_defined
typedef long suseconds_t;
#endif /* !defined(__suseconds_t_defined) */
struct timeval
{
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */
};
struct timezone
{
int tz_minuteswest; /* minutes west of Greenwich */
int tz_dsttime; /* type of dst correction */
};
struct itimerval
{
struct timeval it_interval;
struct timeval it_value;
};
/* function declarations */
int gettimeofday (struct timeval * timep, void * tmz);
int settimeofday (struct timeval * timep, void * tmz);
#ifdef __cplusplus
}
#endif
#endif /* __INCsys_timeh */