OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [sys/] [time.h] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 1... Line 1...
/* This is file TIME.H */
 
 
 
/* time.h -- An implementation of the standard Unix <sys/time.h> file.
/* time.h -- An implementation of the standard Unix <sys/time.h> file.
   Written by Geoffrey Noer <noer@cygnus.com>
   Written by Geoffrey Noer <noer@cygnus.com>
   Public domain; no rights reserved. */
   Public domain; no rights reserved. */
 
 
#ifndef _SYS_TIME_H_
#ifndef _SYS_TIME_H_
#ifdef __cplusplus
 
extern "C" {
 
#endif
 
#define _SYS_TIME_H_
#define _SYS_TIME_H_
 
 
#include <_ansi.h>
#include <_ansi.h>
 
#include <sys/types.h>
 
 
 
#ifdef __cplusplus
 
extern "C" {
 
#endif
 
 
#ifndef _GNU_H_WINDOWS32_SOCKETS
#ifndef _WINSOCK_H
struct timeval {
struct timeval {
  long tv_sec;
  long tv_sec;
  long tv_usec;
  long tv_usec;
};
};
 
 
struct timezone {
struct timezone {
  int tz_minuteswest;
  int tz_minuteswest;
  int tz_dsttime;
  int tz_dsttime;
};
};
#endif
 
 
 
/* Cygwin32 needs itimer headers */
 
#ifdef __CYGWIN32__
#ifdef __CYGWIN32__
 
#include <sys/select.h>
 
#endif /* __CYGWIN32__ */
 
 
 
#endif /* _WINSOCK_H */
 
 
#define ITIMER_REAL     0
#define ITIMER_REAL     0
#define ITIMER_VIRTUAL  1
#define ITIMER_VIRTUAL  1
#define ITIMER_PROF     2
#define ITIMER_PROF     2
 
 
struct  itimerval {
struct  itimerval {
  struct  timeval it_interval;
  struct  timeval it_interval;
  struct  timeval it_value;
  struct  timeval it_value;
};
};
 
 
/* Functions provided by Cygwin32 */
int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
int _EXFUN(gettimeofday, (struct timeval *p, struct timezone *z));
 
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
int _EXFUN(utimes, (const char *path, struct timeval *tvp));
int _EXFUN(utimes, (const char *__path, struct timeval *__tvp));
 
int _EXFUN(getitimer, (int __which, struct itimerval *__value));
#endif /* __CYGWIN32__ */
int _EXFUN(setitimer, (int __which, const struct itimerval *__value,
 
                                        struct itimerval *__ovalue));
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
#endif /* _SYS_TIME_H_ */
#endif /* _SYS_TIME_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.