set_real_time_clock: Change parameter from uint32 to uint64.

This should have been done along with the time_t change, but I forgot
to check this then.

Technically this breaks ABI against BeOS, but:
  1. BeOS used an int32, so we'd already slightly broken ABI here
  2. Only one thing at HaikuArchives (VMwareAddons) and one recipe at HaikuPorts
     (samba) uses this function at all.

If it turns out some critical BeOS app uses this, then I guess we can enclose
GCC2 guards around it, but since I can't find any evidence of that, I'm
pushing it without them for now.
This commit is contained in:
Augustin Cavalier 2017-11-15 18:28:04 +01:00
parent a7c323c633
commit 9a50e01ea6
3 changed files with 3 additions and 3 deletions

View File

@ -374,7 +374,7 @@ extern status_t convert_to_pthread(thread_id thread, pthread_t *_thread);
/* Time */
extern uint32 real_time_clock(void);
extern void set_real_time_clock(uint32 secsSinceJan1st1970);
extern void set_real_time_clock(uint64 secsSinceJan1st1970);
extern bigtime_t real_time_clock_usecs(void);
extern bigtime_t system_time(void);
/* time since booting in microseconds */

View File

@ -123,7 +123,7 @@ set_real_time_clock_usecs(bigtime_t currentTime)
void
set_real_time_clock(uint32 currentTime)
set_real_time_clock(uint64 currentTime)
{
set_real_time_clock_usecs((bigtime_t)currentTime * 1000000);
}

View File

@ -60,7 +60,7 @@ real_time_clock_usecs(void)
void
set_real_time_clock(uint32 secs)
set_real_time_clock(uint64 secs)
{
_kern_set_real_time_clock((bigtime_t)secs * 1000000);
}