Files
haiku-beta6/src/tools/fs_shell/time.cpp
T
Ingo Weinhold c3c6ad0a0b BeOS build fixes:
* On BeOS compatible host platforms we must not include
  BeOSBuildCompatibility.h, but HaikuBuildCompatibility.h.
* Fixed errno usage in command_cp.cpp.
* Fixed fssh_ioctl().
* fssh_set_sem_owner() doesn't invoke BeOS's set_sem_owner() anymore or
  otherwise the FS's semaphores are assigned to the kernel.
* Commented out <string.h> functions that don't exist under BeOS (and aren't
  used anyway).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-30 17:19:19 +00:00

63 lines
705 B
C++

/*
* Copyright 2007, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
#include "compatibility.h"
#include "fssh_os.h"
#include "fssh_time.h"
#include <time.h>
#include <OS.h>
// #pragma mark - OS.h
#if 0
uint32_t
fssh_real_time_clock(void)
{
}
void
fssh_set_real_time_clock(uint32_t secs_since_jan1_1970)
{
}
fssh_bigtime_t
fssh_real_time_clock_usecs(void)
{
}
fssh_status_t
fssh_set_timezone(char *timezone)
{
}
#endif // 0
fssh_bigtime_t
fssh_system_time(void)
{
return system_time();
}
// #pragma mark - time.h
fssh_time_t
fssh_time(fssh_time_t *timer)
{
time_t result = time(NULL);
if (timer)
*timer = result;
return result;
}