Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / sys / mmixware / time.c
blob14be19b3460d7028d8493957aca16380f17d32dd
1 /* time stub for MMIXware.
3 Copyright (C) 2001 Hans-Peter Nilsson
5 Permission to use, copy, modify, and distribute this software is
6 freely granted, provided that the above copyright notice, this notice
7 and the following disclaimer are preserved with no changes.
9 THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
10 IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12 PURPOSE. */
14 #include <_ansi.h>
15 #include <sys/types.h>
16 #include <sys/stat.h>
17 #include "sys/syscall.h"
19 time_t
20 time (time_t *tloc)
22 /* Nowhere to get time reasonably from; neither of rC, rI and rU seems
23 usable without assuming some scaling of mems and oops to real time. */
24 time_t thetime = 0;
26 if (tloc)
27 *tloc = thetime;
29 return thetime;