search for: settimeofday

Displaying 20 results from an estimated 27 matches for "settimeofday".

Did you mean: gettimeofday
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...h | 3 +++ usr/include/sys/types.h | 1 + usr/klibc/Kbuild | 6 ++++-- usr/klibc/SYSCALLS.def | 9 +++++---- usr/klibc/clock_nanosleep.c | 17 +++++++++++++++++ usr/klibc/gettimeofday.c | 22 ++++++++++++++++++++++ usr/klibc/nanosleep.c | 8 ++++++++ usr/klibc/settimeofday.c | 22 ++++++++++++++++++++++ usr/klibc/time.c | 4 ---- 9 files changed, 82 insertions(+), 10 deletions(-) diff --git a/usr/include/sys/time.h b/usr/include/sys/time.h index da9f5809..e8163303 100644 --- a/usr/include/sys/time.h +++ b/usr/include/sys/time.h @@ -50,6 +50,9 @@ stati...
1999 Jan 06
0
FW: SUGGESTION: allow TZ to be specified at time of mount (PR#124 25)
...and the timestamps show up on LINUX (TZ:GB) with local timestamps and not GB timestamps. I tested with LINUX TZ set to GMT with same result. >It seems to me that you may have a configuration problem. You may care to ask >the samba mailing list for help on this I did this once before and the settimeofday(2) hack was suggested. I would love to find a way to get the directories mounted with the linux TZ vs NT TZ adjustment applied. Thanks for your attention to this problem. Michael > -----Original Message----- > From: John H Terpstra [SMTP:samba-bugs@samba.org] > Sent: Tuesday, January 05...
2010 May 05
1
[PATCH 1/1] staging: hv: Add Time Sync feature to hv_utils module
...reboot, restore, etc. + */ +static void adj_guesttime(winfiletime_t hosttime, u8 flags) +{ + s64 host_tns; + struct timespec host_ts; + static s32 scnt = 50; + + host_tns = (hosttime - WLTIMEDELTA) * 100; + host_ts = ns_to_timespec(host_tns); + + if ((flags & ICTIMESYNCFLAG_SYNC) != 0) { + do_settimeofday(&host_ts); + return; + } + + if ((flags & ICTIMESYNCFLAG_SAMPLE) != 0 && + scnt > 0) { + scnt--; + do_settimeofday(&host_ts); + } + + return; +} + +/* + * Time Sync Channel message handler. + */ +static void timesync_onchannelcallback(void *context) +{ + struct vmbus_c...
2010 May 05
1
[PATCH 1/1] staging: hv: Add Time Sync feature to hv_utils module
...reboot, restore, etc. + */ +static void adj_guesttime(winfiletime_t hosttime, u8 flags) +{ + s64 host_tns; + struct timespec host_ts; + static s32 scnt = 50; + + host_tns = (hosttime - WLTIMEDELTA) * 100; + host_ts = ns_to_timespec(host_tns); + + if ((flags & ICTIMESYNCFLAG_SYNC) != 0) { + do_settimeofday(&host_ts); + return; + } + + if ((flags & ICTIMESYNCFLAG_SAMPLE) != 0 && + scnt > 0) { + scnt--; + do_settimeofday(&host_ts); + } + + return; +} + +/* + * Time Sync Channel message handler. + */ +static void timesync_onchannelcallback(void *context) +{ + struct vmbus_c...
2007 Sep 03
5
Dom0 <> DomU clock sync
Hello ! Just a quick question about time synchronization between xen dom0 and domUs... We''re running Xen 3.1 64-bit, with 32 and 64 bits linux guests. It''s up since 89 days and the domU''s time is around 5 minutes behind the dom0, which is updated via ntpdate... Any idea why it doesn''t sync the guests even that /proc/sys/xen/independent_wallclock is 0 ?
2007 Jan 17
5
[PATCH] Have xen dom0 still handle time of 1970
It''s come to our attention, that the time gets screwed up when set between EPOCH and EPOCH + uptime. This may not seem important (because we don''t live in the 70s anymore) but it makes LTP fail. LTP has a date test that checks what happens when set to EPOCH + 100 secs + 100 nsecs, and makes sure that it gets a proper result. The following patches helps xen handle the case
2005 Mar 02
0
[PATCH] sys/times.h
...2:28.000000000 +0100 @@ -5,10 +5,10 @@ #ifndef _SYS_TIMES_H #define _SYS_TIMES_H +#include <klibc/extern.h> +#include <sys/types.h> #include <linux/times.h> __extern clock_t times(struct tms *); -__extern int gettimeofday(struct timeval *, struct timezone *); -__extern int settimeofday(const struct timeval *, const struct timezone *); #endif /* _SYS_TIMES_H */
2012 Sep 25
1
[PATCH] Fix <sys/time.h> for Linux 3.5.1
...set(void *, int, size_t); static inline void FD_ZERO(fd_set *__fdsetp) @@ -45,6 +48,8 @@ static inline int FD_ISSET(int __fd, fd_set *__fdsetp) (__fd % BITS_PER_LONG)) & 1; } +#define FD_SETSIZE __FD_SETSIZE + __extern int gettimeofday(struct timeval *, struct timezone *); __extern int settimeofday(const struct timeval *, const struct timezone *); __extern int getitimer(int, struct itimerval *); -- 1.7.10.4
2012 Oct 01
0
[klibc:master] include: [sys/time.h] fix for Linux 3.5.1
...set(void *, int, size_t); static inline void FD_ZERO(fd_set *__fdsetp) @@ -45,6 +46,8 @@ static inline int FD_ISSET(int __fd, fd_set *__fdsetp) (__fd % BITS_PER_LONG)) & 1; } +#define FD_SETSIZE __FD_SETSIZE + __extern int gettimeofday(struct timeval *, struct timezone *); __extern int settimeofday(const struct timeval *, const struct timezone *); __extern int getitimer(int, struct itimerval *);
1998 Dec 04
1
timezones not properly reflected on timestamps of files
I have read the documentation, performed the diagnostic tests, checked the archives, so if the answer is there, please accept my apologies in advance and simply direct me. I am running redhat Linux 2.0.3 and using smbmount to mount several directories from NT3.51 servers which are distributed gloablly in different timezones. Once mounted the files all have local timestamps which makes syncing
2014 Apr 16
6
[Bug 2228] New: ssh-agent passwords do not timeout properly
...es any time that the system is suspended. This allows applica? tions to get a suspend-aware monotonic clock without hav? ing to deal with the complications of CLOCK_REALTIME, which may have discontinuities if the time is changed using settimeofday(2). The attached patch seems to fix this: if CLOCK_MONOTONIC is available then additionally check for CLOCK_BOOTTIME. CLOCK_BOOTTIME is Linux specific and will never be defined unless CLOCK_MONOTONIC is also defined. So far as I can tell this has not been addressed in the current version. -- Y...
2006 Mar 28
18
wallclock time for paravirtualized guests
The paravirtualized guests are offered wallclock time referenced to UTC only, while fully virtualized guests are given the option via the config file (localtime parameter) of starting with UTC time or local time. What would it take to optionally provide localtime to the paravirtualized guests as well? For a guest that launches assuming localtime as its time basis, then later deriving UTC from it
2023 Jan 14
1
[klibc:time64] time: Use 64-bit time types on all architectures
...et_t *, size_t); int fsync(int); int fdatasync,fsync::fdatasync(int); int readv(int, const struct iovec *, int); @@ -204,9 +207,12 @@ int setitimer(int, const struct itimerval *, struct itimerval *); clock_t times(struct tms *); int gettimeofday::__gettimeofday(void *, struct timezone *); int settimeofday::__settimeofday(const void *, const struct timezone *); -int clock_gettime(clockid_t, struct timespec *); -int clock_settime(clockid_t, const struct timespec *); -int clock_nanosleep::__clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); +<32> int clock_gettime64::clo...
2008 Jan 19
5
Time just moved backwards error even with ntpd
Scenario: server PC abruptly switched off due to power cable problems (an UPS cannot solve this issue), so during shutdown Linux was not able to resinchronize the system clock. After a few hours the server come back on, Linux booted and the services (ntpd, dovecot and many others) started But the system clock was 45 minutes ahead, so: Jan 19 11:13:39 gw ntpd[2112]: synchronized to LOCAL(0),
2008 May 13
8
Time moved backwards
Hello, I would like to suggest a change in handling of 'Time moved backwards' problem. Right now dovecot just dies. So, the scenario: 1) Colocation server is shut down for some reason. The internal time drifts. 2) Server is started again. 3) Dovecot starts successfully. 4) In about a minute, NTP daemon feels confident about adjusting the system time. 5) Dovecot sees the changed time and
2001 Jun 22
0
Half-Life: Selected Mode is not supported by your card
...s checking for getservbyport... yes checking for getsockopt... yes checking for inet_network... yes checking for lseek64... yes checking for lstat... yes checking for memmove... yes checking for mmap... yes checking for rfork... no checking for select... yes checking for sendmsg... yes checking for settimeofday... yes checking for sigaltstack... yes checking for statfs... yes checking for strcasecmp... yes checking for strerror... yes checking for strncasecmp... yes checking for tcgetattr... yes checking for timegm... yes checking for usleep... yes checking for vfscanf... yes checking for wait4... yes che...
2008 Aug 06
10
[BUG 1282] time jump on live migrate root cause & proposed fixes
Hi, I have done some debugging to find out the root cause of bug 1282, which has the following symptoms with paravirtualized guests: - after a live migrate, the time on the guest can jump - after a live migrate, the guest "forgets" to wake up processes - after a domU save, dom0 reboot and domU restore, the time is correct but processes are not woken up from sys_nanosleep The problem
2007 Apr 13
0
Wine release 0.9.35
...cmd.exe: Add support for move with simple wildcards. cmd.exe: Add move support for wildcards and directories. cmd.exe: Add prompting and COPYCMD plus /Y support to move. cmd.exe: Fix regression when launching a fully qualified program. Kai Blin (1): ntdll: Don't use settimeofday() to attempt to set the timezone. Laurent Vromman (3): gdi32: Add two basic tests to check what WidenPath does. gdi32: Correction of WidenPath behaviour when pen width is 1. gdi32: Correct WidenPath behaviour when working on an open path. Lei Zhang (5): advapi32: Spelling...
2020 Mar 15
0
How to create a Bootable Live CD/DVD from your Linux From Scratch (LFS) build
...bb/missing_syscalls.c index 87cf59b3d..dc40d9155 100644 --- a/libbb/missing_syscalls.c +++ b/libbb/missing_syscalls.c @@ -15,14 +15,6 @@ pid_t getsid(pid_t pid) return syscall(__NR_getsid, pid); } -int stime(const time_t *t) -{ - struct timeval tv; - tv.tv_sec = *t; - tv.tv_usec = 0; - return settimeofday(&tv, NULL); -} - int sethostname(const char *name, size_t len) { return syscall(__NR_sethostname, name, len); diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 70f829e7f..878375d78 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -95,9 +95,13 @@ int rdate_main(int arg...
2011 May 14
3
Problems building wine 1.3.20 on Mac os x 10.6.7
...checking for port_create... no checking for prctl... no checking for pread... yes checking for pwrite... yes checking for readdir... yes checking for readlink... yes checking for sched_yield... yes checking for select... yes checking for setproctitle... no checking for setrlimit... yes checking for settimeofday... yes checking for sigaltstack... yes checking for sigprocmask... yes checking for snprintf... yes checking for spawnvp... no checking for statfs... yes checking for statvfs... yes checking for strcasecmp... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... ye...