RTEMS Logo

RTEMS 4.9.4 On-Line Library


Clock Manager gettimeofday - Get the Time of Day

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

14.4.7: gettimeofday - Get the Time of Day

CALLING SEQUENCE:

#include <sys/time.h>
#include <unistd.h>

int gettimeofday(
  struct timeval  *tp,
  struct timezone *tzp
);

STATUS CODES:

On error, this routine returns -1 and sets errno as appropriate.

EPERM
settimeofdat is called by someone other than the superuser.
EINVAL
Timezone (or something else) is invalid.
EFAULT
One of tv or tz pointed outside your accessible address space

DESCRIPTION:

This routine returns the current time of day in the tp structure.

NOTES:

Currently, the timezone information is not supported. The tzp argument is ignored.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation