search for: utimbuf

Displaying 20 results from an estimated 168 matches for "utimbuf".

2000 Mar 16
0
Compilation and solving problem on mips-sony-bsd.
...ave question and want be helped to solve the problem. Yes, I can compile it with dirty hack which is found at ftp://ftp.tutrp.tut.ac.jp/pub/sony-news/samba/samba-news4.diff There are some problems about this old and specific system. 1. It does not have setvbuf(). 2. It does not have 'struct utimbuf'. 3. It has 'O_NONBLOCK' in <stream/xti.h>. 4. It does not have 'WNOHANG'. I don't know why. The setvbuf() can be replaced with setbuffer() and setlinebuf(), for example, I wrote --->8------>8------>8------>8------>8------>8------>8------>8--...
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...rs.c index 352a6c7a..d5255eb9 100644 --- a/src/libFLAC/metadata_iterators.c +++ b/src/libFLAC/metadata_iterators.c @@ -3422,13 +3422,18 @@ FLAC__bool get_file_stats_(const char *filename, struct flac_stat_s *stats) void set_file_stats_(const char *filename, struct flac_stat_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;...
2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
...] == 0 && di->d_name[0] == 0) exit(0); exit(1);} ]])],[rsync_cv_HAVE_BROKEN_READDIR=yes],[rsync_cv_HAVE_BROKEN_READDIR=no],[rsync_cv_HAVE_BROKEN_READDIR=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=n...
2018 Jan 15
1
Rsync 3.1.3pre1 released
...-I./popt -g -DHAVE_CONFIG_H -c syscall.c -o > syscall.o > return utime(fname, t); > ^ > "/home/git/rsync/syscall.c", line 448: error(252): argument of type > "time_t *" is incompatible with parameter of type "const struct utimbuf *" > This is apparently because HAVE_STRUCT_UTIMBUF is not set but should be. You might want to look into configure.sh to see why this is failing, or just tweak the generated config.h file. cc -c99 -I. -I. -I./zlib -I./popt -g -DHAVE_CONFIG_H -c lib/compat.c -o > lib/compat.o >...
2013 Apr 20
1
One tiny Windows Unicode patch
...@@ extern "C" { #include <stdio.h> #include <sys/stat.h> #include <stdarg.h> - +#include <windows.h> int get_utf8_argv(int *argc, char ***argv); @@ -25,6 +25,7 @@ int chmod_utf8(const char *filename, int pmode); int utime_utf8(const char *filename, struct utimbuf *times); int unlink_utf8(const char *filename); int rename_utf8(const char *oldname, const char *newname); +HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttr...
2005 Mar 23
1
Problems with Excel & MS Word files (still)
Problem is apparently with locking issues, disabled oplocks in the [general] section, and the problem actually got worse... Here's what happens: User-A part of group1, opens Excel file off of share, saves, exits... User-B (or even User-A for that matter) tries to re-open same file, get error stating it's locked and can only open for read-only access... Both users in the same group, and
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...#39;s wait() function */ union wait statusp; pid_t wait_pid; + #undef wait /* Use NeXT's wait() function */ wait_pid = wait(&statusp); status = (int *) statusp.w_status; 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()...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...*** 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); 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);...
2006 Feb 16
1
ugly hack to make maildir quotas work
.../index/maildir/maildir-save.c 16 Feb 2006 04:32:49 -0000 @@ -9,6 +9,7 @@ #include "str.h" #include "maildir-storage.h" #include "maildir-uidlist.h" +#include "index-mail.h" #include <stdio.h> #include <stdlib.h> @@ -233,6 +234,7 @@ struct utimbuf buf; const char *path; int output_errno; + struct stat st; if (ctx->failed && ctx->fd == -1) { /* tmp file creation failed */ @@ -264,6 +266,9 @@ "fsync(%s) failed: %m", path); ctx->failed = TRUE; } + if (fstat(ctx->fd, &st) < 0) { + ctx...
2000 Nov 22
0
problem with installing openssh on HP/UX
...# include <prot.h> #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 \...
2002 Jul 08
0
[Bug 344] New: syntax error in bsd-misc.c / utimes()
...did not test this, just 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 ar...
2005 Sep 23
0
Building 3.0.20 for ubuntu
...#39; include/proto.h:7485: error: syntax error before 'DIR' include/proto.h:7486: error: syntax error before 'DIR' include/proto.h:7487: error: syntax error before 'DIR' include/proto.h:7490: error: syntax error before 'DIR' include/proto.h:7514: warning: 'struct utimbuf' declared inside parameter list In file included from dynconfig.c:21: include/includes.h:1090: warning: conflicting types for built-in function 'memmove' include/includes.h:1114: error: 'ftruncate' redeclared as different kind of symbol include/vfs.h:259: error: previous declara...
2005 Aug 08
3
[PATCH] add inotify system calls
...next part -------------- diff --git a/klibc/klibc/SYSCALLS.def b/klibc/klibc/SYSCALLS.def --- a/klibc/klibc/SYSCALLS.def +++ b/klibc/klibc/SYSCALLS.def @@ -114,6 +114,9 @@ int lchown32,lchown::lchown(const char * int getcwd::__getcwd(char *, size_t) <?> int utime(const char *, const struct utimbuf *) <?> int utimes(const char *, const struct timeval *) +<?> int inotify_init(void) +<?> int inotify_add_watch(int, const char *, __u32) +<?> int inotify_rm_watch(int, __u32) ; ; I/O operations
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
...NULL) : t_strconcat(ctx->curdir, "/", dest, NULL); - if (link(tmp_path, new_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 =...
2018 Jan 15
4
Rsync 3.1.3pre1 released
I have made rsync 3.1.3pre1 available for testing. This release has a couple security fixes, a few new features, and a smattering of bug fixes. Please test this new release and send email to the rsync mailing list with any questions, comments, or bug reports. To see a summary of the changes since 3.1.2, visit this link: http://rsync.samba.org/ftp/rsync/src-previews/rsync-3.1.3pre1-NEWS You
2018 Jan 15
4
Rsync 3.1.3pre1 released
I have made rsync 3.1.3pre1 available for testing. This release has a couple security fixes, a few new features, and a smattering of bug fixes. Please test this new release and send email to the rsync mailing list with any questions, comments, or bug reports. To see a summary of the changes since 3.1.2, visit this link: http://rsync.samba.org/ftp/rsync/src-previews/rsync-3.1.3pre1-NEWS You
2001 Dec 16
1
compile errors with rsync 2.5.0 for RedHat linux 7.1 alpha
...yes checking for working fnmatch... yes checking for poptGetContext in -lpopt... yes checking whether to use included libpopt... no checking for long long... yes checking for off64_t... no checking for short ino_t... no checking for unsigned char... no checking for broken readdir... no checking for utimbuf... yes checking if gettimeofday takes tz argument... yes checking for C99 vsnprintf... yes checking for secure mkstemp... yes checking for broken inet_ntoa... no checking for broken inet_aton... no checking whether -c -o works... yes configure: creating ./config.status config.status: creating Makef...
2013 Apr 01
1
flac 1.3.0pre3 pre-release
...lename, const char *mode); int stat_utf8(const char *path, struct stat *buffer); -int _stat64_utf8(const char *path, struct _stat64 *buffer); +int _stat64_utf8(const char *path, struct __stat64 *buffer); int chmod_utf8(const char *filename, int pmode); int utime_utf8(const char *filename, struct utimbuf *times); int unlink_utf8(const char *filename); --- flac-1.3.0pre3/src/share/win_utf8_io/win_utf8_io.c.orig 2013-04-01 16:24:18 +0400 +++ flac-1.3.0pre3/src/share/win_utf8_io/win_utf8_io.c 2013-04-01 16:39:34 +0400 @@ -182,7 +182,7 @@ return f; } -int _stat64_utf8(const char *path, struct _st...
2019 Sep 18
2
[PATCH] build: remove unused gnulib modules
...-/strtoimax.m4 /strtoll.m4 -/strtol.m4 /strtoull.m4 -/strtoul.m4 /strtoumax.m4 /symlinkat.m4 /symlink.m4 @@ -252,8 +220,6 @@ /time_h.m4 /timespec.m4 /tls.m4 -/ttyname_r.m4 -/ulonglong.m4 /ungetc.m4 /unistd_h.m4 /unistd-safer.m4 @@ -261,7 +227,6 @@ /unlinkdir.m4 /unlink.m4 /usleep.m4 -/utimbuf.m4 /utimecmp.m4 /utime_h.m4 /utime.m4 @@ -276,20 +241,16 @@ /warnings.m4 /warn-on-use.m4 /wchar_h.m4 -/wchar.m4 /wchar_t.m4 /wcrtomb.m4 /wctob.m4 /wctomb.m4 /wctype_h.m4 -/wctype.m4 /wint_t.m4 /write.m4 /xalloc.m4 /xgetcwd.m4 /xsize.m4 -/xstrndup.m4 -/xstrtol.m4 /xstrtol.m4 /xvasp...
2002 Feb 06
1
2.5.2 will not compile
...fnmatch... yes checking for poptGetContext in -lpopt... yes checking whether to use included libpopt... no checking for long long... yes checking for off64_t... yes checking for short ino_t... no checking for unsigned char... no checking for broken readdir... no checking for utimbuf... yes checking if gettimeofday takes tz argument... yes checking for C99 vsnprintf... yes checking for secure mkstemp... yes checking for broken inet_ntoa... no checking for broken inet_aton... no checking whether -c -o works... yes configure: creating ./config.status confi...