search for: actim

Displaying 20 results from an estimated 31 matches for "actim".

Did you mean: achim
2013 Apr 20
1
One tiny Windows Unicode patch
I have been doing some heavy testing with the new FLAC version, and I found that CreateFile function in grabbag had been left out of UTF-8 treatment at some point. This causes re-encoding an existing flac to the same name to break the file if it contains non-ascii characters. Attached patch fixes this. -------------- next part -------------- diff --git a/include/share/win_utf8_io.h
1999 Apr 08
0
Keep-timestamp-in-`get'-patch for smbclient in samba-2.0.3
...NT/and linux samba-2.0.3 server, but + Win98 returns garbage a_time, m_time (Win95 not tested). + ( Using gmtime() is correct here ? ) + printf("a:%ld m:%ld\n", a_time, m_time); + printf("a:%s m:%s\n", ctime(&a_time), ctime(&m_time)); */ + utb.actime = mktime(gmtime(&a_time)); + utb.modtime = mktime(gmtime(&m_time)); +#else + uint16 attribute = aDIR | aSYSTEM | aHIDDEN; + + /* Use cmd_dir() type of interface here. */ + cli_list(cli, rname, attribute, do_get_an_finfo); + + /* Now rname's finfo is copied in an_finfo */...
2016 Sep 30
1
Sys.setFileTime()
Since there has been a recent tweak to the functionality of Sys.setFileTime() I thought it might be an opportune time to ask a question regarding the decision to set both access and modification times (i.e. settime.actime = settime.modtime = (int)ftime; ) vs provide a parameter for each. Might it be possible to change the behavior to accept two parameters (one for active and one for modtime) but default to setting both the same (to preserve existing functionality)? If there was a compelling reason to have it set...
2002 Jul 08
0
[Bug 344] New: syntax error in bsd-misc.c / utimes()
...tried to adapt the code to what the utimes() man pages on FreeBSD says it should do. Someone needs more coffee here :-) -------- snip -------- --- bsd-misc.c 3 Jul 2002 23:50:00 -0000 1.9 +++ bsd-misc.c 8 Jul 2002 19:30:26 -0000 @@ -93,8 +93,8 @@ { struct utimbuf ub; - ub.actime = tvp[0]->tv_sec; - ub.modtime = tvp[1]->tv_usec; + ub.actime = tvp[0].tv_sec; + ub.modtime = tvp[1].tv_sec; return(utime(filename, &ub)); } ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee...
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
..._s *stats) { - struct utimbuf srctime; - FLAC__ASSERT(0 != filename); FLAC__ASSERT(0 != stats); +#if _POSIX_C_SOURCE >= 200809L + struct timespec srctime[2] = {}; + srctime[0].tv_sec = stats->st_atime; + srctime[1].tv_sec = stats->st_mtime; +#else + struct utimbuf srctime; srctime.actime = stats->st_atime; srctime.modtime = stats->st_mtime; +#endif (void)flac_chmod(filename, stats->st_mode); (void)flac_utime(filename, &srctime); #if !defined _MSC_VER && !defined __BORLANDC__ && !defined __MINGW32__ diff --git a/src/share/grabbag/file.c b/src/sha...
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
..._path) == 0) + if (link(tmp_path, new_path) == 0) { ret = 0; - else { + if (ctx->received_date != (time_t)-1) { + struct utimbuf buf; + /* set the received_date by modifying mtime */ + buf.actime = ioloop_time; + buf.modtime = ctx->received_date; + if (utime(new_path, &buf) < 0) { + ctx->failed = TRUE; + mail_storage_set_critical(STORAGE(ctx->mbox->storage), +...
2004 Nov 09
2
AW: Permissions problem with 3.0.8
.../dosmode.c:dos_mode(283) dos_mode: bootfont.bin [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning ra [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning ra [2004/11/09 17:02:02, 6] smbd/trans2.c:call_trans2setfilepathinfo(3621) actime: Wed Apr 2 13:00:00 2003 modtime: Thu Jan 1 01:00:00 1970 size: 4952 dosmode: a0 [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode(283) dos_mode: bootfont.bin [2004/11/09 17:02:02, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning ra [2004/11/09 17:02:02, 8] smbd/do...
2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
...cross])]) if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then @@ -833,14 +840,14 @@ fi AC_CACHE_CHECK([for utimbuf],rsync_cv_HAVE_STRUCT_UTIMBUF,[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> -#include <utime.h>]], [[struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));]])],[rsync_cv_HAVE_STRUCT_UTIMBUF=yes],[rsync_cv_HAVE_STRUCT_UTIMBUF=no])]) +#include <utime.h>]], [[struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; utime("foo.c",&tbuf);]])],[rsync_cv_HAVE_STRUCT_UTIMBUF...
2014 Feb 04
1
Samba 3.6.3 and NT_STATUS_INVALID_PARAMETER
..._set_file_unix_basic: SMB_SET_FILE_UNIX_BASIC: name = bw-gen/node93-ae945955-8d98-11e3-8969-d10c885bfb91 size = 0, uid = 4294967295, gid = 4294967295, raw perms = 037777777777 [2014/02/04 12:34:49.808205, 6] smbd/trans2.c:5622(smb_set_file_size) smb_set_file_size: size: 0 smb_set_filetime: actime: Thu Jan 1 00:59:59 1970 smb_set_filetime: modtime: Tue Feb 4 12:34:41 2014 smb_set_filetime: ctime: Thu Jan 1 01:00:00 1970 smb_set_file_time: createtime: Thu Jan 1 01:00:00 1970 smb_set_file_time: setting utimes to modified values. [2014/02/04 12:34:49.808328,...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...(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); tbuf.modtime = modtime; return utime(fname,&tbuf); #elif defined(HAVE_UTIME) time_t t[2]; ! t[0] = time(NULL); t[1] = modtime; return utime(fname,t); #else struct timeval t[2]; ! t[0].tv_sec = time(NULL); t[0].tv_usec = 0; t[1].tv_sec = mod...
1998 Apr 16
2
Problem with visual C++ and samba
...ch message SMBwrite (pid 1726) Skipping become_user - already user 04/16/1998 13:58:53 write fnum=14 cnum=67 num=0 wrote=0 04/16/1998 13:58:53 Transaction 218245 of length 54 switch message SMBsetattrE (pid 1726) Skipping become_user - already user 04/16/1998 13:58:53 reply_setattrE fnum=14 cnum=67 actime=892732330 modtime=892732330 04/16/1998 13:58:53 Transaction 218246 of length 1184 switch message SMBwrite (pid 1726) Skipping become_user - already user 04/16/1998 13:58:53 write fnum=14 cnum=67 num=1132 wrote=1132 04/16/1998 13:58:53 Transaction 218247 of length 115 switch message SMBopenX (pid 1...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...tatus; return wait_pid; } - -int -posix_utime(char *filename,struct utimbuf *buf) -{ - time_t timep[2]; - - timep[0] = buf->actime; - timep[1] = buf->modtime; - - #undef utime /* Use NeXT's utime() function */ - return utime(filename,timep); -} - - -int -waitpid(int pid, int *stat_loc, int options) +pid_t +waitpid(int...
1999 Nov 17
6
Samba 2.0.6, MKS' touch.exe, and file/dir time stamps
...odification -rwxr--r-- 1 vons users 0 Nov 17 13:39 xx Executing "f:\mksnt\touch.exe xx" on the client results in the following log messages (debug level = 10): | < .... the file is looked up and opened .... > | [1999/11/17 13:39:45, 6] smbd/trans2.c:(1905) | actime: Wed Nov 17 13:36:24 1999 | modtime: Wed Nov 17 10:18:01 1999 | size: 0 mode: 0 | [1999/11/17 13:39:45, 10] smbd/trans2.c:(1935) | call_trans2setfilepathinfo: setting pending modtime to Wed Nov 17 10:18:01 1999 | < .... file is closed .... > MKS' touch is supposedly u...
2007 Jan 30
0
[PATCH][HVM] fix smp guest hang after restore
...visor; - + uint32_t lvtt = vlapic_get_reg(s, APIC_LVTT); + + s->pt.irq = lvtt & APIC_VECTOR_MASK; create_periodic_time(v, &s->pt, period, s->pt.irq, vlapic_lvtt_period(s), NULL, s); printk("lapic_load to rearm the actimer:" "bus cycle is %uns, " - "saved tmict count %lu, period %"PRIu64"ns\n", - APIC_BUS_CYCLE_NS, tmict, period); + "saved tmict count %lu, period %"PRIu64"ns, irq=%"PR...
2000 Nov 22
0
problem with installing openssh on HP/UX
...> #endif and further down uses functions that don't exist on the system. I prevented this by: #undef __hpux 3. The system doesn't have the function utimes. I put the following in bsd-misc.c: int utimes(const char *path, const struct timeval *times) { struct utimbuf tv ; tv.actime = times[0].tv_sec ; tv.modtime = times[1].tv_sec ; return(utime(path,&tv)) ; } These changes got make to work, but make install doesn't work. It fails when making the host-key: # make install ... ... if [ -z "" ] ; then \ if [ -f "/usr...
1999 Jul 28
1
Date/time bug in 2.0.5a?
Is this just me???? Just installed 2.0.5a for testing. Copying files (using explorer) from NT to Samba-2.0.5a (Solaris2.6 *and* Irix6.5) fails to copy the date/time stamp correctly (1.9.18p7 is fine, from the same NT system). 24/06/1999 11:59 (on NT) => 25/06/1999 17:14 (Samba) 25/06/1999 17:00 (on NT) => 25/06/1999 17:09 (Samba) (Yes, that is one 24th and three 25ths of
2004 Apr 10
0
patches for copying atimes
..."set modtime, atime of %s to (%ld) %s, (%ld) %s\n", fname, (long) modtime, - asctime(localtime(&modtime))); + mtimebuf, + (long) atime, atimebuf); } { #ifdef HAVE_UTIMBUF struct utimbuf tbuf; - tbuf.actime = time(NULL); + tbuf.actime = atime; tbuf.modtime = modtime; return utime(fname,&tbuf); #elif defined(HAVE_UTIME) time_t t[2]; - t[0] = time(NULL); + t[0] = atime; t[1] = modtime; return utime(fname,t); #else struct timeval t[2]; - t[0].tv_sec = time(NULL); + t[0].tv_s...
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
2006 Jan 24
1
propagate atimes with rsync-2.6.6 (fwd)
...@ -128,7 +128,7 @@ -int set_modtime(char *fname, time_t modtime) +int set_modtime(char *fname, time_t modtime, time_t acctime) { if (verbose > 2) { rprintf(FINFO, "set modtime of %s to (%ld) %s", @@ -142,17 +142,17 @@ { #ifdef HAVE_UTIMBUF struct utimbuf tbuf; - tbuf.actime = time(NULL); + tbuf.actime = acctime; tbuf.modtime = modtime; return utime(fname,&tbuf); #elif defined HAVE_UTIME time_t t[2]; - t[0] = time(NULL); + t[0] = acctime; t[1] = modtime; return utime(fname,t); #else struct timeval t[2]; - t[0].tv_sec = time(NULL); + t[0].t...
2007 Nov 04
3
Dovecot write activity (mostly 1.1.x)
I?m experiencing write activity that?s somewhat different from my previous qmail/courier-imap/Maildir setup. This more outspoken in v.1.1.x than v1.0.x (I?m using Maildir). Write activity is about half that of read activity when measuring throughput. But when measuring operations it?s about 5-7 times as high (measured with zpool iostat on ZFS). I think this might be due to the many small updates