search for: time_t

Displaying 20 results from an estimated 471 matches for "time_t".

2024 Feb 05
7
Bug#1063270: xen: NMU diff for 64-bit time_t transition
Source: xen Version: 4.17.3+10-g091466ba55-1 Severity: serious Tags: patch pending sid trixie Justification: library ABI skew on upgrade User: debian-arm at lists.debian.org Usertags: time-t NOTICE: these changes must not be uploaded to unstable yet! Dear maintainer, As part of the 64-bit time_t transition required to support 32-bit architectures in 2038 and beyond (https://wiki.debian.org/ReleaseGoals/64bit-time), we have identified xen as a source package shipping runtime libraries whose ABI either is affected by the change in size of time_t, or could not be analyzed via abi-compliance-c...
2004 Apr 10
0
patches for copying atimes
...else #endif - rprintf(FINFO, "%s %11.0f %s %s\n", + rprintf(FINFO, "%s %11.0f %s %s %s\n", perms, (double) f->length, timestring(f->modtime), - f_name(f)); + timestring(f->atime), f_name(f)); } @@ -323,6 +323,7 @@ { unsigned short flags; static time_t modtime; + static time_t atime; static mode_t mode; static DEV64_T rdev, rdev_high; static DEV64_T dev; @@ -337,7 +338,7 @@ if (!file) { write_byte(f, 0); - modtime = 0, mode = 0; + modtime = 0, atime = 0, mode = 0; rdev = 0, rdev_high = 0, dev = 0; uid = 0, gid = 0; *lastna...
2015 May 18
2
[Y2038] kernel/libc uapi changes for y2038
...chance for breakage is introduced? It's hard because we don't even know what ioctls are affected at this point, and I was hoping to get this part merged as a stepping stone in the process of finding out. The problem is that there are so many different cases we have to worry about just for time_t: a) ioctls that pass a data structure from include/uapi/ with time_t and have a properly defined (using _IOW()/_IOR()/_IORW()) command number: these are easy enough to find and fix. b) ioctls that have a data structure as before but define their ioctl commands differently (e.g. using a l...
2014 Mar 16
1
How to convert time_t to R date object
Hi all, I am writing a R extensions, and I need pass time_t to R in C, but I don't know how to do. Can you give me some help? do not use double directly. Thanks, Bill -- *Travel | Programming* *http://freecnpro.net* <http://freecnpro.net> [[alternative HTML version deleted]]
2006 May 19
0
[OT] Important Issue with "TIME" as we had with Y2K.
...the reported time at the second the bug occurs. Also, may make some small adjustment to the actual time the bug expresses itself. This bug to cause serious problems on many platforms, especially Unix and Unix-like platforms, because these systems will "run out of time". What causes it? Time_t is a data type used by C and C++ programs to represent dates and times internally. (Windows programmers out there might also recognize it as the basis for the CTime and CTimeSpan classes in MFC.) time_t is actually just an integer, a whole number, that counts the number of seconds since January 1,...
2004 Apr 20
1
improved atime patch
...else #endif - rprintf(FINFO, "%s %11.0f %s %s\n", + rprintf(FINFO, "%s %11.0f %s %s %s\n", perms, (double) f->length, timestring(f->modtime), - f_name(f)); + timestring(f->atime), f_name(f)); } @@ -326,6 +326,7 @@ { unsigned short flags; static time_t modtime; + static time_t atime; static mode_t mode; static uint64 dev; static dev_t rdev; @@ -341,7 +342,7 @@ if (!file) { write_byte(f, 0); - modtime = 0, mode = 0; + modtime = 0, atime = 0, mode = 0; dev = 0, rdev = makedev(0, 0); rdev_major = 0; uid = 0, gid = 0; @@ -390,...
2014 Dec 15
2
Replace atoi and atol with strtol strtoul:Need Help
Hello, I am working on replacing atoi () and atol() functions with strtol() and strtoul() . I came across many files which uses statement like these time_t secs= atoi(data_span.c_str()), here time_t Datatype is not known but wikipedia says that it is integer so is it necessary to replace atoi with strtol over here ?? And is their any document which helps me what each file function does like date.cc,cgiparams.cc,omega.cc,query.cc. Thank You --------...
2024 Mar 09
3
Bug#1065794: xen: FTBFS on armhf: xenstored_control.c:646:70: error: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘time_t’ {aka ‘long long int’} [-Werror=format=]
...lly in the past) X-Debbugs-Cc: sramacher at debian.org https://buildd.debian.org/status/fetch.php?pkg=xen&arch=armhf&ver=4.17.3%2B10-g091466ba55-1.1&stamp=1709892742&raw=0 xenstored_control.c:646:70: error: format ?%ld? expects argument of type ?long int?, but argument 5 has type ?time_t? {aka ?long long int?} [-Werror=format=] 646 | ret = talloc_asprintf(ctx, "%s\nDomain %u: %ld s", | ~~^ | | |...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...close(fd); + if (preserve_atime) + set_modtime(fname, file->modtime, file->acctime); } free_sums(s); *** util.c@@/main/original/1 Tue Apr 9 14:04:04 2002 --- util.c Tue Apr 9 15:22:00 2002 *************** *** 240,246 **** ! int set_modtime(char *fname, time_t modtime) { extern int dry_run; if (dry_run) --- 240,246 ---- ! int set_modtime(char *fname,time_t modtime, time_t acctime) { extern int dry_run; if (dry_run) *************** *** 255,271 **** { #ifdef HAVE_UTIMBUF struct utimbuf tbuf; ! tbuf.actime = time(NULL);...
2006 Jan 24
1
propagate atimes with rsync-2.6.6 (fwd)
...06-01-07 14:04:38.000000000 +0100 @@ -54,6 +54,7 @@ extern int implied_dirs; extern int copy_links; extern int copy_unsafe_links; +extern int remote_protocol; extern int protocol_version; extern int sanitize_paths; extern int orig_umask; @@ -314,6 +315,7 @@ { unsigned short flags; static time_t modtime; + static time_t acctime; static mode_t mode; static int64 dev; static dev_t rdev; @@ -329,7 +331,7 @@ if (!file) { write_byte(f, 0); - modtime = 0, mode = 0; + modtime = 0, acctime = 0, mode = 0; dev = 0, rdev = makedev(0, 0); rdev_major = 0; uid = 0, gid = 0; @@ -3...
2011 Oct 13
0
1) A memory leak in drivers/rhino.c 2) Wunused-but-set-variable.patch
...; */ + /* imin = RecPack[27]; */ + /* isec = RecPack[28]; */ /* Flag1 */ /* SobreTemp = ( ( 0x01 & RecPack[33]) = 0x01 ); */ @@ -546,18 +530,8 @@ static void getbaseinfo(void) unsigned char temp[256]; unsigned char Pacote[37]; int tam, i, j=0; - time_t *tmt; - struct tm *now; const char *Model; - tmt = ( time_t * ) malloc( sizeof( time_t ) ); - time( tmt ); - now = localtime( tmt ); - dian = now->tm_mday; - mesn = now->tm_mon+1; - anon = now->tm_year+1900; - weekn = now->tm_wd...
2000 Jan 20
1
MS Excel/NT/Samba timestamp - serious problem, bug?
A rather distressing timestamp issue (to multiple users here). Anyone seen similar behavior or have a suggestion/solution? Problem: Opening and closing an excel file (no changes/keystrokes to file) on the Samba server causes the file to be saved with time stamp of closing. (There is no autosave set on Excel - also see other info below) MS Excel 97 SR-2 NT 4.0 SP5 Solaris 2.6 or 2.7 (2
2004 Apr 22
2
[PATCH] --timelimit and --stopat
...nown[] = "unknown"; @@ -759,6 +760,58 @@ select(0, NULL, NULL, NULL, &tv); } +/** + When --timelimit is used, compare rsync_start_time and the current time and + return 1 when the timelimit has been reached. + **/ +static int has_timelimit_expired() +{ + struct timeval tv; + time_t start_time = 0; + time_t expiration_time = 0; + + assert(timelimit > 0); + + start_time = get_rsync_start_time(); + assert( start_time > 0); + + gettimeofday(&tv, NULL); + expiration_time = start_time + (timelimit * 60); + + return ( tv.tv_sec > expiration_time ) ? 1 : 0; +} + +/** +...
2006 Nov 08
2
set_bias() in bindings
...follows: >>> db=xapian.Database('/home/richard/foo') >>> enq=xapian.Enquire(db) >>> enq.set_bias(1.0, 3600) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: in method 'Enquire_set_bias', argument 3 of type 'time_t' I know that set_bias is a temporary API, but it would be good to be able to use it as it is. Is there some trick that can let this work that I don't know of, or is a fix needed to the bindings? As far as I can tell, the problem is that SWIG doesn't know about the time_t type, and t...
2002 Dec 20
1
smbclient and large file support
...ue Apr 30 06:26:18 2002 +++ samba-2.2.7a-fixed/source/client/clitar.c Thu Dec 19 15:50:20 2002 @@ -45,10 +45,10 @@ struct file_info_struct { - size_t size; + SMB_BIG_UINT size; uint16 mode; - int uid; - int gid; + uid_t uid; + gid_t gid; /* These times are normally kept in GMT */ time_t mtime; time_t atime; @@ -125,11 +125,11 @@ int blocksize=20; int tarhandle; -static void writetarheader(int f, char *aname, int size, time_t mtime, +static void writetarheader(int f, char *aname, SMB_BIG_UINT size, time_t mtime, char *amode, unsigned char ftype); static void do_ata...
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...seed48.o \ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index ad8eefa4..d46bb548 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -201,11 +201,12 @@ int setitimer(int, const struct itimerval *, struct itimerval *); /* * Time-related system calls */ -<?> time_t time(time_t *); clock_t times(struct tms *); -int gettimeofday(struct timeval *, struct timezone *); -int settimeofday(const struct timeval *, const struct timezone *); -int nanosleep(const struct timespec *, struct timespec *); +int gettimeofday::__gettimeofday(void *, struct timezone *); +int se...
2004 Apr 19
3
[PATCH] time limit
...timeout; extern int am_server; @@ -759,6 +760,26 @@ select(0, NULL, NULL, NULL, &tv); } +/** + When --timelimit is used, compare rsync_start_time and the current time and + return 1 when the timelimit has been reached. + **/ +static int has_timelimit_expired() +{ + struct timeval tv; + time_t start_time = 0; + time_t expiration_time = 0; + + assert(timelimit > 0); + + start_time = get_rsync_start_time(); + assert( start_time > 0); + + gettimeofday(&tv, NULL); + expiration_time = start_time + (timelimit * 60); + + return ( tv.tv_sec > expiration_time ) ? 1 : 0; +} /** *...
2016 Jul 06
0
[PATCH] ext2: Don't load whole files into memory when copying to the appliance (RHBZ#1113065).
...ext2fs-c.c b/src/ext2fs-c.c index cb9282b..96a3de0 100644 --- a/src/ext2fs-c.c +++ b/src/ext2fs-c.c @@ -185,6 +185,7 @@ supermin_ext2fs_read_bitmaps (value fsv) static void ext2_mkdir (ext2_filsys fs, ext2_ino_t dir_ino, const char *dirname, const char *basename, mode_t mode, uid_t uid, gid_t gid, time_t ctime, time_t atime, time_t mtime); static void ext2_empty_inode (ext2_filsys fs, ext2_ino_t dir_ino, const char *dirname, const char *basename, mode_t mode, uid_t uid, gid_t gid, time_t ctime, time_t atime, time_t mtime, int major, int minor, int dir_ft, ext2_ino_t *ino_ret); static void ext2_wr...
2012 Sep 27
3
NUT Bugs #313634 & #313714: unification & encapsulation of timer proposition
...encapsulated & general approach: 1/ I'd create an opaque timer type and its get/set/cmp/inc/dec etc interface under common 2/ implementation of the interface would use the monotonic clock if available (the clock_*time on Linux, potentially other monotonic clock impl. on other systems) and time_t as a fallback 3/ when implemented, use of the timer shall be spread throughout the code, replacing direct use of time_t What do you think? I'm also a bit reluptant to do such a change in scope of the bugfix; I'd create a new feature req. for that, OK? Any comments/ suggestions welcome,...
2003 Apr 29
0
[PATCH] Fix busy-looping behaviour in ipconfig
...figure_device(struct netdev *dev) { + if (do_not_config) + return; + if (netdev_setaddress(dev)) printf("IP-Config: failed to set addresses on %s\n", dev->name); if (netdev_setdefaultroute(dev)) @@ -118,8 +124,10 @@ } } -static void process_receive_event(struct state *s, time_t now) +static int process_receive_event(struct state *s, time_t now) { + int handled = 1; + switch (s->state) { case DEVST_BOOTP: s->restart_state = DEVST_BOOTP; @@ -173,8 +181,12 @@ case DEVST_ERROR: /* error occurred, try again in 10 seconds */ s->expire = now + 10; + def...