source: trunk/libs/newlib/src/libgloss/libnosys/gettod.c @ 546

Last change on this file since 546 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 371 bytes
Line 
1/*
2 * Stub version of gettimeofday.
3 */
4
5#include "config.h"
6#include <_ansi.h>
7#include <_syslist.h>
8#include <sys/time.h>
9#include <sys/times.h>
10#include <errno.h>
11#undef errno
12extern int errno;
13#include "warning.h"
14
15struct timeval;
16
17int
18_gettimeofday (struct timeval  *ptimeval,
19        void *ptimezone)
20{
21  errno = ENOSYS;
22  return -1;
23}
24
25stub_warning(_gettimeofday)
Note: See TracBrowser for help on using the repository browser.