Klaas Freitag
b261ecb705
Do proper handling of Win32 special characters.
...
Introduced a tchar based handling of wide character encoding that
is happening on Windows platforms.
2012-07-09 13:25:59 +02:00
Dominik Schmidt
8d5af96f46
Compile cstdlib with -fPIC
2012-07-09 13:25:11 +02:00
Dominik Schmidt
fcb3aa6208
Define O_NOATIME to 0 if it's not there
2012-07-09 13:24:15 +02:00
Klaas Freitag
ec921a1e51
Win32: Added some specific headers to c_private.h to fix build.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:47:56 +02:00
Klaas Freitag
2ac172f4fe
update: Add new exported file tree traverse functions.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:45:04 +02:00
Klaas Freitag
3ae453cc36
std: Renamed struct_stat to csync_stat_t and use c_private.h again.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-03-21 13:48:41 +01:00
Klaas Freitag
ffd2e0e767
Fixed file copy for Win32 platform by using API function FileCopy.
2012-03-19 12:40:30 +01:00
Andreas Schneider
f0cf678c0e
Fix config checks.
2012-03-02 17:04:02 +01:00
Dominik Schmidt
6e4ce19a85
Add csync_fnmatch
2012-03-02 17:04:02 +01:00
Dominik Schmidt
d1ea29f4aa
Don't check for links on non-unix platforms
2012-03-02 17:04:02 +01:00
Dominik Schmidt
6272a2b485
Use stat if lstat is not available
2012-03-02 17:04:02 +01:00
Dominik Schmidt
da286857e0
windows: add utimes implementation
2012-03-02 17:04:02 +01:00
Dominik Schmidt
674aa7cd64
windows: add strerror_r implementation
2012-03-02 17:04:02 +01:00
Dominik Schmidt
ee6c631f28
windows: add missing status codes, types and return-values
2012-03-02 17:04:02 +01:00
Dominik Schmidt
29f45a4ee5
windows: minor adjustments
2012-03-02 17:04:02 +01:00
Andreas Schneider
1d9b4f0640
std: Make it possible to use the macros alone.
2012-03-02 17:02:59 +01:00
Andreas Schneider
9d6001d39d
std: Add missing include.
2012-03-02 17:02:59 +01:00
Andreas Schneider
82c2017a04
path: Fix dead assignment.
2012-02-04 12:44:15 +01:00
Christian Jann
9864baa0c8
fixed small error:
...
csync/first/a~
was renamed to:
csync/first/~a_conflict-20110326-190457~
but it should be:
csync/first/a_conflict-20110326-190457~
2011-04-06 17:08:01 +02:00
Christian Jann
d842119065
improved logging
2011-04-06 17:07:20 +02:00
Christian Jann
e4d8e793f6
added new conflict resolution to libcsync
...
- use the latest version of the two files under its original filename
in both destinations (same as currently implemented)
- additionally, create a copy of the older file under a different name
using the same file extension with appended marker (e.g. "conflict")
and timestamp in both destinations
(e.g. textfile.odt -> textfile_conflict-20100222-105000.odt)
- At the Moment 'textfile_conflict-20100222-105000.odt' is only created
on the side where the conflict has occurred and gets synced to the other side
on the second sync.
2011-04-06 16:57:24 +02:00
Andreas Schneider
312c40d16f
Improve c_list_find functions.
2009-06-05 11:22:06 +02:00
Andreas Schneider
f98265b30e
Some code cleanups.
2009-06-05 10:51:22 +02:00
Andreas Schneider
f57576f08a
Cleanup c_list_insert_sorted().
2009-05-23 11:57:15 +02:00
Andreas Schneider
6e893ab31c
Document the return value of c_list_remove().
2009-05-21 11:53:07 +02:00
Andreas Schneider
f79b291646
Add a c_rmdirs() function.
2009-05-14 17:22:42 +02:00
Andreas Schneider
df5a8d6662
Add a macro to get the size of an array.
2009-05-06 19:35:21 +02:00
Andreas Schneider
73548e8a16
Merge branch 'master' of git://git.csync.org/projects/csync/csync
2009-04-29 10:08:34 +02:00
Andreas Schneider
e7a495dc50
Fix a segfault in c_uppercase and c_lowercase.
2009-04-29 09:55:32 +02:00
Andreas Schneider
9de1f977b5
Cleanup some code of the doubly-linked list.
2009-04-25 10:57:46 +02:00
Andreas Schneider
e7a09af755
Add a function to uppercase and to lowercase a string.
2009-04-21 09:05:40 +02:00
Andreas Schneider
25f83f1764
Cleanup dirname and basename code.
2009-03-18 20:19:37 +01:00
Andreas Schneider
0634e0fdea
Don't require a C++ compiler.
2009-03-18 10:55:14 +01:00
Andreas Schneider
228a19abf4
Add min and max macros.
2009-01-22 14:43:37 +01:00
Andreas Schneider
3b51103a60
Implement own function to create a random filename.
...
This removes an uneeded syscall to lstat by mktemp at this point.
2008-11-13 15:11:02 +01:00
Andreas Schneider
d177c57cfe
Check return value of mkdir in the mkdirs functions.
2008-11-13 10:53:24 +01:00
Andreas Schneider
1b4e340565
Fix compiler warnings.
2008-09-11 14:16:04 +02:00
Andreas Schneider
8753352e5e
Set errno for expand function of the string list.
2008-09-02 11:23:38 +02:00
Andreas Schneider
538d03f94e
Cleanup and reformating of the dirname and basename function.
2008-08-12 15:43:02 +02:00
Andreas Schneider
04d022f2ae
Add a function to parse an uri in stdlib.
2008-08-12 15:37:02 +02:00
Andreas Schneider
ce6896453c
Fix check for CSYNC_NOMEMORY env variable.
2008-07-29 15:43:18 +02:00
Andreas Schneider
7143f20f95
Add memory NULL tests.
2008-07-28 11:49:56 +02:00
Andreas Schneider
bccadc7d67
Fix segfault in str(n)dup function.
2008-07-28 11:49:37 +02:00
Andreas Schneider
262a179c68
Add a strreplace function to stdlib.
2008-06-16 12:12:06 +02:00
Andreas Schneider
5168e3ee70
Change name of the buffersize so that they can't conflict.
2008-06-02 16:05:40 +02:00
Andreas Schneider
e2b049c935
Static functions should all start with an underscore.
...
For better readablity...
2008-06-02 15:11:45 +02:00
Andreas Schneider
8fe1cb54b5
Add c_list to standard lib header file.
2008-05-20 13:56:19 +02:00
Andreas Schneider
49c4ad76e1
Add missing NULL test.
2008-05-20 12:05:27 +02:00
Andreas Schneider
b54cb0fd66
Rename c_list_previous to c_list_prev.
2008-05-20 11:24:09 +02:00
Andreas Schneider
679927b5a9
Fix c_list_length() function.
2008-05-20 11:14:16 +02:00