-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChangeLog.1
2598 lines (1744 loc) · 88.8 KB
/
ChangeLog.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2001-01-14 Andrew Arensburger <[email protected]>
- Version 1.6.6 released.
* doc/coldsync.8: Clarified installation process a bit.
* src/coldsync.c (bug fix? enhancement?): Previously, ColdSync
installed databases before or after the main sync, depending on
whether the -z option was given, but ran the Install conduits
before the main sync no matter what.
Now runs the Install conduits just before installing files, either
before or after the main sync.
* doc/coldsync.8: Clarified -mr option a bit.
* doc/coldsync.8: Mention -z command-line option.
2001-01-11 Andrew Arensburger <[email protected]>
* AUTHORS: Added two more contributors.
* src/config.c, src/coldsync.c: Added -z option, to install new
databases after the main sync.
Zachary P. Landau <[email protected]>
* src/coldsync.c (bug fix): dumped core when .coldsyncrc didn't
contain any pda blocks. Fix contributed by
Ted Faber <[email protected]>
- Version 1.6.5 released.
* i18n/fr.po: Latest translations.
* i18n/de.po: Checked in on general principle.
* src/restore.c, src/parser.y, src/palm.c, src/log.c, src/lexer.l,
src/install.c, src/config.c, src/conduit.c, src/coldsync.c,
src/backup.c, src/archive.c, src/GenericConduit.cc, libpdb/pdb.c,
libpconn/slp.c, libpconn/padp.c, libpconn/dlp_rpc.c,
libpconn/dlp_cmd.c, libpconn/dlp.c, libpconn/cmp.c,
libpconn/PConnection_usb.c, libpconn/PConnection_serial.c,
libpconn/PConnection.c:
Anal retentive error message cleanup.
2001-01-10 Andrew Arensburger <[email protected]>
- Version 1.6.4 released
* src/restore.c, src/parser.y, src/palm.c, src/config.c,
src/conduit.c, src/coldsync.c:
Updated error messages to look better with Error() and Warn().
2001-01-09 Andrew Arensburger <[email protected]>
* include/pconn/util.h, include/pconn/slp.h, include/pconn/padp.h,
include/pconn/dlp_cmd.h, include/pconn/dlp.h, include/pconn/cmp.h,
include/pconn/PConnection.h, include/pdb.h, src/GenericConduit.hh,
src/parser.h, doc/conduits.texi, doc/coldsync.8:
Updated copyright statement.
* include/pconn/pconn.h: Added header comment, copyright
statement.
* include/pconn/palm_types.h, configure.in: Added copyright
statement.
* src/restore.c, src/pref.c, src/parser.y, src/palm.c, src/log.c,
src/lexer.l, src/install.c, src/conduit.c, src/backup.c,
src/archive.c, src/GenericConduit.cc:
Changed fprintf(stderr, ...) to Warn() or Error(), as appropriate.
* src/spc.c: Updated copyright statement.
* src/coldsync.c: Added abortive logfile. Not used, though.
Changed fprintf(stderr, ...) to Warn() or Error(), as appropriate.
* src/misc.c: Added Warn(), Error().
* src/coldsync.h: Added abortive global_opts.log_fname. Changed
print_version() prototype. Added declarations for Warn(), Error().
* src/config.c: Added abortive "-l <logfile>" option. Not used,
though. print_version() now takes a file handle argument. Replaced
fprintf(stderr, ...) with Error() or Warn(), as appropriate.
2001-01-08 Andrew Arensburger <[email protected]>
* configure.in: Added test for vfprintf().
2001-01-05 Andrew Arensburger <[email protected]>
* libpdb/pdb.c: Cosmetic modifications.
2000-12-31 Andrew Arensburger <[email protected]>
* src/GenericConduit.cc: Added a comment. Made sure previous fix
was okay.
2000-12-30 Andrew Arensburger <[email protected]>
* src/GenericConduit.cc (bug fix): Fixed the logic for new records
from the Palm, to handle the pathological (but not unheard-of)
case of an archived or expunged, but not deleted, record. Also,
now does _something_ with new, deleted, non-archived, non-expunged
records, though it's probably not something very smart.
2000-12-24 Andrew Arensburger <[email protected]>
* (almost everything): Added "typedef struct PConnection
PConnection". Removed the "struct" where possible.
* src/coldsync.c: forward_netsync() terminates when it fails to
read from or write to either PConnection.
- Version 1.6.3 released.
* src/config.c: Added 'hostaddrs', 'num_hostaddrs', 'hostname'.
Renamed get_hostid() to get_hostinfo(). Use gethostbyname2()
instead of gethostbyname(). Added sockaddr_len(), get_hostaddrs(),
free_hotaddrs(). Updated new_pda_block(), free_pda_block().
* src/coldsync.c: Added mkforw_addr(), forward_netsync(). Use
get_hostinfo() instead of get_hostid(). main() now has "done:"
label, to simplify termination. Added forwarding support in
run_mode_Standalone(). Added "to do" comments in run_mode_Init().
Connect() now uses the new PConn_bind(). Removed unused
find_max_speed(), since it's in PConnection_serial.c.
* src/parser.y: Added grammar for "forward:" lines in pda block.
Added opt_string.
* src/coldsync.h: Added forwarding-related fields to pda_block.
Added declaration of 'hostaddrs', 'num_hostaddrs',
get_hostaddrs(), free_hostaddrs(). Renamed get_hostid() to
get_hostinfo(). Added conditional declaration of snprintf(), for
systems that don't have it.
* libpconn/PConnection_usb.c: Added trivial udp_bind(), dummy
udp_connect().
* libpconn/PConnection_serial.c: Added trivial serial_bind(),
dummy serial_connect().
* libpconn/PConnection_net.c: Uncommented the remaining ritual
statements, since they're now used. Added net_bind(),
net_connect(). pconn_net_open() initializes io_bind, io_connect.
Moved bind() out of pconn_net_open() and into net_bind(). Cleaned
up some trace statements.
(bug fix): net_tcp_listen() read from and wrote to NULL instead of a
PConnection.
* libpconn/PConnection.c: new_PConnection() now initializes
io_bind and io_connect. PConn_bind just calls the io_bind method.
* libpconn/slp.c: slp_bind() now takes a const address.
* include/pconn/slp.h: Changed slp_bind() declaration to take a
const address.
* include/pconn/PConnection.h: Added io_bind, io_connect methods
to struct PConnection. This follows the socket API reasonably
closely. Changed PConn_bind() declaration.
* i18n/fr.po, i18n/de.po: Checking in latest version of strings,
on general principle.
* configure.in: Bumped up version number. Added HAVE_IPV6 (really
check for AF_INET6).
* config.h.in: Added HAVE_IPV6.
2000-12-23 Andrew Arensburger <[email protected]>
* src/palm.h, src/palm.c: Added palm_netsync_hostaddr(),
palm_netsync_netmask().
* src/Makefile: Added "net_compat.c", "net_compat.h",
"ap_snprintf.c".
* src/GenericConduit.cc: Added a "to do" bug report.
* include/pconn/dlp_cmd.h: Minor cosmetic cleaning.
* i18n/Makefile: Added net_compat.c to list of files to check.
Removed FILES from distribution.
* configure.in: Cleaned up some comments. Added test for "long
long". Added tests for (struct sockaddr).sa_len, "struct
sockaddr6", inet_aton(), inet_ntoa(), inet_ntop(), net_pton(),
snprintf().
* config.h.in: Added checks for "long long", (struct
sockaddr).sa_len, "struct sockaddr6", snprintf(), inet_aton(),
inet_ntoa(), inet_ntop(), inet_pton(), gethostbyname2().
* README, AUTHORS: Added Apache Group, for snprintf().
* src/net_compat.h, src/net_compat.c (added): inet_ntop() and
inet_pton() for systems that don't have them.
* src/ap_snprintf.c (added): snprintf() from the Apache source.
2000-12-18 Andrew Arensburger <[email protected]>
* i18n/fr.po, i18n/de.po: Checked in latest version of strings, on
general principle.
* i18n/Makefile: Got rid of dependency on file "FILES". Moved list
of files to Makefile, so that message catalogs are rebuilt only if
the source files have changed.
* i18n/FILES (deleted): the list of files has been moved to
Makefile, to avoid rebuilding catalogs unnecessarily.
* AUTHORS: Added list of "bundled" software included in the
distribution.
* doc/coldsync.8: Mention "-t net" option.
* src/config.c: Added "-t net" command-line option.
* libpconn/dlp_cmd.c (feature): DlpAddSyncLogEntry(): if the
message exceeds DLPC_MAXLOGLEN, keep only the end of it.
* include/pconn/dlp_cmd.h: Added DLPC_MAXLOGLEN.
2000-12-17 Andrew Arensburger <[email protected]>
* doc/coldsync.8: Rewrote section on listen blocks. Added mention
of "listen net". Mention ${prefix}/etc/coldsync.conf in passing.
Added reference to Linux Visor HOWTO.
* src/palm.c, src/misc.c, libpdb/pdb.c, libpconn/slp.c,
libpconn/PConnection_usb.c, libpconn/PConnection_net.c: Added some
casts for portability.
* libpconn/PConnection.c: If USB isn't enabled but user tries to
listen on a USB port, print an error message to that effect,
rather than complaining about "unknown listen type"
* i18n/Makefile: Use INSTALL_I18N to determine whether message
catalogs should be installed or not.
* configure.in: Redid --with(out)-usb : it now checks to see
whether it's possible to build with USB support, so 'configure'
should do the Right Thing by default.
* README: Rewrote section on internationalization. Updated
compatibility notes.
* Make.rules.in: Added INSTALL_I18N, to determine whether message
catalogs should be installed or not.
* AUTHORS: Added UCBerkeley, for cfmakeraw().
* configure.in: Install i18n stuff if possible. To this end, added
INSTALL_I18N variable for Makefiles. Make sure 'makeinfo' is the
GNU program of that name. Changed AC_CHECK_PROG to AC_CHECK_PROGS
so that error message is more intuitive when the program can't be
found ("checking for foo... true" is misleading). Fixed typo.
* libpconn/PConnection_net.c: Look up ports in /etc/services;
default to NETSYNC_*_PORT if not found. Changed listen() backlog
to 1. Hopefully this doesn't suck. Cleaned up some trace
statements.
* libpconn/PConnection_usb.c: Print descriptive message if can't
open the USB device.
* libpconn/PConnection_serial.c: Print descriptive message if
can't open the serial device.
2000-12-16 Andrew Arensburger <[email protected]>
* src/lexer.l (portability): Cast malloc()'s return value to the
proper type.
* src/config.c: Removed unreached statement, to make some
compilers shut up.
* src/coldsync.c: Fixed lint comment.
* libpconn/PConnection_net.c (portability): Cast args to
recvfrom() and sendto() to (char *) to make compiler shut up under
Solaris.
* configure.in (portability): Added check for GNU libintl; added
EXTRA_MSGFMT_ARGS; added check for socklen_t.
* config.h.in: Added check for socklen_t, since Solaris doesn't
define it.
* aclocal.m4: Added CS_CHECK_GNU, CS_CHECK_GNU_PROGS,
CS_CHECK_TYPE.
* Make.rules.in (Portability): Added EXTRA_MSGFMT_ARGS, to allow
or disallow GNU-specific arguments to 'msgfmt', as appropriate.
* src/coldsync.c: Initialize a variable to make gcc happy.
* src/palm.c, src/misc.c, libpdb/pdb.c, libpconn/slp.c
(portability): Use bzero() rather than memset().
* configure.in: Added check for bzero() and memset().
* config.h.in: Check for the existence of bzero() and memset().
Define bzero() in terms of memset(), if necessary.
* src/parser.y, src/lexer.l: Added "forward" keyword, for NetSync
forwarding.
* src/coldsync.c: Added "done:" label in main(), for cleaning up.
On abnormal termination, jump to that label. Avoids certain memory
leaks.
* libpconn/slp.c, libpconn/dlp.c: Sanity: when free()ing pointers,
set them to NULL afterwards, to avoid double free()ing.
* libpconn/PConnection_serial.c: Check the file descriptor before
tcdrain()ing it.
* libpconn/PConnection.c: new_PConnection() no longer calls
PConnClose on abnormal termination. This avoids problems with
double free()ing, since the pconn_*_open() functions also clean up
after themselves.
* src/config.c (bug fix): Plugged memory leak.
2000-12-15 Andrew Arensburger <[email protected]>
- Version 1.6.2 released.
* libpconn/PConnection_serial.c: Got rid of io_setspeed. Renamed
serial_setspeed() to setspeed(), since it's only used for serial
connections.
* libpconn/PConnection_net.c, libpconn/PConnection_usb.c,
libpconn/PConnection.c, include/pconn/PConnection.h: Got rid of
io_setspeed.
* src/lexer.l: Plugged memory leak.
* src/lexer.l: Ugly hack to make compilation work with memory leak
detection.
* src/misc.c, find-leaks, config.h.in: Added leak-detection
support for calloc(), strdup().
2000-12-13 Andrew Arensburger <[email protected]>
- Version 1.6.1 released.
* libpconn/padp.c, libpconn/netsync.c, libpconn/dlp.c,
libpconn/PConnection_usb.c, libpconn/PConnection_serial.c,
libpconn/PConnection_net.c: Added error-checking.
* include/pconn/PConnection.h: Removed unused ver_maj, ver_min
fields.
* libpconn/PConnection.c: new_PConnection() initializes the common
part of 'struct PConnection'.
* src/palm.c: Added some trace statements.
* src/coldsync.c: Removed remnants of speeds[] and other
development cruft.
* src/Makefile: Added experimental 'manifest' target.
* libpconn/netsync.c: Removed extraneous #includes. Removed global
variables used for development. Added bump_xid().
* libpconn/cmp.c: Added some trace statements.
* libpconn/PConnection_usb.c: pconn_usb_open() cleans up after
itself if initialization fails.
* libpconn/PConnection_serial.c: Added find_available_speeds(),
bps_entry(). Added 'usable' initializers to speeds[]. Cleaned up
serial_accept(). pconn_serial_open() cleans up after itself
(though this may interfere with destructors). pconn_serial_open()
now finds the speeds at which the serial port can run.
* libpconn/PConnection_net.c: Got rid of ugly global variables and
other development cruft. net_udp_listen(),
net_acknowledge_wakeup() now take extra sockaddr_in arguments.
* include/pconn/padp.h, libpconn/padp.c: padp_write()'s 'len'
argument is now const. Yay!
* include/pconn/Makefile: Added "netsync.h" to distribution.
* i18n/FILES: Added newly-added files, as well as a few others
that fell through the cracks.
2000-12-11 Andrew Arensburger <[email protected]>
- Version 1.6.0 released.
* libpconn/PConnection_usb.c (bug fix): If pconn_usb_open()
aborted, its private data got freed twice.
* libpconn/PConnection_serial.c (bug fix): If user gave a speed of
0, serial_accept() complained that it couldn't set the requested
speed.
* src/config.c: Added "net" debugging facility.
* src/coldsync.c: Added initialization for net_trace.
* libpconn/netsync.c: net_trace initialized to a sane value of 0.
* libpconn/cmp.c: Include i18n header. Added cmp_accept(), to
negotiate CMP connection.
* libpconn/PConnection_usb.c: Trimmed usb_accept() down to just
the USB-specific parts. usb_close() is static again.
* libpconn/PConnection_serial.c: Added 'usable' field to the
speeds[] struct. Moved CMP negotiations from serial_accept() into
cmp_accept().
(bug fix): a stray assignment prevented default speed from working.
* libpconn/PConnection_net.c: net_close() is static again. Added
some casts, to make the compiler happy.
* libpconn/PConnection.c: Removed declarations for
<protocol>_close() (they're private, anyway). new_PConnection()
uses PConnClose() to clean up afterwards. PConnClose() is more
paranoid: doesn't assume that the methods were set.
* include/pconn/cmp.h: Added declaration for cmp_accept().
* include/pconn/PConnection.h: Added declaration for net_trace.
Removed declaration for PConnSetSpeed (OBE).
* doc/coldsync.8: Added mention of "net" debugging facility.
2000-12-10 Andrew Arensburger <[email protected]>
* src/coldsync.c: Commented out the speed table, since it's now in
PConnection_serial.c . Eviscerated Connect(), since most of what
it did was serial/USB-specific; replaced this with a call to
(*pconn->io_accept)().
Commented out find_max_speed(), since it was never used, and was
causing compilation problems. Added, then commented out,
net_listen(), an experimental NetSync function.
* libpconn/padp.c: Initialize PConnection->dlp.{read,write} to
point to padp_{read,write}().
* libpconn/netsync.c (added): Code for dealing with NetSync
communications.
* libpconn/dlp_rpc.c, libpconn/dlp.c: Took out references to PADP.
Now uses PConnection->dlp.read and PConnection->dlp.write to send
the formatted DLP packet to the Palm.
* libpconn/PConnection_usb.c: Added usb_accept(), with much of the
code from Connect(). Added <protocol>_tini() calls to usb_close().
Added <protocol>_init() calls to pconn_usb_open().
* libpconn/PConnection_serial.c: Moved the table of speeds from
"src/coldsync.c" to here, since it logically belongs here. Added
serial_accept(), which has taken over most of what Connect() used
to do. Added <protocol>_tini() calls to serial_close(). Added
<protocol>_init() calls to pconn_serial_open().
* libpconn/PConnection_net.c (added): Support for NetSync.
* libpconn/PConnection.c: Moved the <protocol>_init() calls out of
new_PConnection() and into pconn_<protocol>_open(), and moved the
<protocol>_tini() calls into <protocol>_close(), since the
protocol stack varies by connection type. Took out the generic
cleanup code after the switch, for the same reason. Added support
for LISTEN_NET.
* libpconn/Makefile: Added netsync.c, PConnection_net.c to
sources.
* include/pconn/pconn.h: Added <pconn/netsync.h>.
* include/pconn/netsync.h (added): Useful definitions for NetSync
protocol.
* include/pconn/PConnection.h: Added io_accept method to
PConnection, since different connection types get to where you can
send DLP requests differently. PConnection.dlp now has 'read' and
'write' methods that indicate how to send DLP requests, since
NetSync doesn't use PADP/SLP. Added 'net' section to Pconnection,
for NetSync.
* configure.in: Added some "to do" comments.
2000-12-09 Andrew Arensburger <[email protected]>
- Version 1.5.5 released.
* src/misc.c: Added wrappers for malloc(), realloc(), and free(),
for primitive memory leak detection.
* find-leaks (added): Primitive memory leak detector.
* configure.in: Added support for primitive memory leak detection.
Moved the developer-only options to the end. Added a section
header for the developer-only options, for "configure --help".
* config.h.in: Added support for primitive memory leak detection.
* Makefile: Added "find-leaks" to distribution.
* src/log.c: Initialize synclog to NULL.
* src/coldsync.c (bug fix): Plugged a memory leak: the sync log
didn't get freed.
* src/backup.c (bug fix): Plugged a memory leak: backup() didn't
free the downloaded PDB.
* libpdb/pdb.c (bug fix): plugged some memory leaks. Added
new_Resource().
* src/restore.c: Added a useful trace statement.
* src/backup.c (bug fix): If couldn't download database, error
didn't get logged correctly.
* src/palm.c (bug fix): Due to an off-by-one error, palm_nextdb()
didn't return the last database, so it never got synced (or backed
up, or whatever).
2000-12-08 Andrew Arensburger <[email protected]>
* src/coldsync.c: Use CMP_VER_* constants.
* include/pconn/dlp.h: Added constants specifying DLP version.
* include/pconn/cmp.h: Added constants specifying CMP version.
* doc/coldsync.8: Document the fact that "speed: 0;" makes
ColdSync use whatever the Palm suggests.
* src/coldsync.c (feature): If the .coldsyncrc doesn't specify a
speed, go with what the Palm suggests.
* src/lexer.l: Confirmed hack.
* src/parser.y: Added new listen type "net".
* src/lexer.l: Added keywords "net" and "network".
* src/config.c: Functions used only in this file are now static.
Added get_hostid().
* src/coldsync.h: Rearranged function declarations, to make it
easier to find them in source files.
* src/coldsync.c (bug fix): get this host's hostid, so as to know
whether to do a slow or fast sync. The functions that are only
used inside coldsync.c are now static.
* include/pconn/PConnection.h: Renamed LISTEN_TCP to LISTEN_NET,
since NetSync also uses UDP.
2000-12-01 Andrew Arensburger <[email protected]>
* Make.rules.in: Added a portability comment.
2000-11-27 Andrew Arensburger <[email protected]>
- Version 1.5.4 released.
* conduits/std-categories (bug fix): close the database when it's
done.
* src/backup.c (bug fix): backup() didn't DlpCloseDB() the
database when it was done.
* src/coldsync.c (bug fix): Check pref_cache before freeing it,
lest segmentation violations occur. Got rid of load_palm_config().
run_mode_Standalone() now performs those functions differently.
run_mode_Standalone() checks username and userid on Palm to make
sure they're sane. The run_mode_*() functions no longer worry
about freeing pref_cache: it's a global variable, so let main()
worry about it. run_mode_Backup() now prints an error message when
it fails. D'oh! The part of run_mode_Init() that prints the pda{}
block now moved into print_pda_block().
* src/coldsync.h: Removed load_palm_config() declaration. Fixed
find_pda_block() declaration. Added print_pda_block() declaration.
* src/config.c: Added print_pda_block(). Added 'check_user' option
to find_pda_block(). Got rid of load_palm_config(): it was too
confusing, and its reason for existence wasn't clear.
* libpconn/padp.c: Fixed an ugly hack (with a goto, but hey).
* i18n/fr.po: Updated some strings.
* doc/coldsync.8: Rewrote section on Bargle Bug in light of Init
mode. Mention that you shouldn't run ColdSync as root. More detail
on Visors' serial numbers. "Bad CRC" messages under Linux are due
to a Linux bug, and are therefore a limitation (not a bug) as far
as ColdSync goes.
* src/backup.c: Added error-checking.
* libpconn/padp.c: Increased robustness: in several cases, where
the old version would simply give up, the new version ignores the
offending packet, or retries. In the case of unexpected data
packets, sends a dummy ACK to get the Palm to shut up.
2000-11-25 Andrew Arensburger <[email protected]>
* libpconn/padp.c (bug fix): select() modifies its 'timeout'
argument on some architectures, hence it must be set before each
call to select(), and cannot be factored out of a while(){
select() } loop. Put it back in. Fix submitted by Christian Kirsch
2000-11-24 Andrew Arensburger <[email protected]>
* src/install.c: mkfname() and friends no longer return a volatile
value. Fixed some misleading error messages.
* src/config.c: Split off the part of load_palm_config() that
creates the backup directories (~/.palm etc.) into its own
function: make_sync_dirs().
* src/coldsync.c: Initialize pref_cache to NULL.
* src/coldsync.h: Added declaration for make_sync_dirs().
* src/misc.c, src/conduit.c, src/coldsync.h, src/backup.c,
src/archive.c, src/GenericConduit.cc: mkfname() and friends no
longer return a volatile value.
2000-11-23 Andrew Arensburger <[email protected]>
* conduits/std-categories: Rewritten from scratch. Might actually
work this time.
* include/pconn/dlp_cmd.h: Updated comment: official word from
Palm is that the viewer ID is not used.
* src/coldsync.c (bug fix): Fixed off-by-one error causing
username to not be NUL-terminated. Added sync log for (successful)
initialization mode.
2000-11-22 Andrew Arensburger <[email protected]>
* conduits/std-categories: Rewritten from scratch. About to be
rewritten again.
2000-11-20 Andrew Arensburger <[email protected]>
- Version 1.5.3 released.
* src/parser.y: Added support for pda_block.userid_given.
* src/palm.h: Added declarations for the new functions.
* src/palm.c (bug fix): fetch_userinfo() didn't update
have_userinfo_. Added palm_username(), palm_userid(),
palm_viewerid().
* src/config.c: load_config() now always calls get_userinfo(), not
just when no config file was specified. This is because
information about the current user is rather useful in other
cases. Removed remains of Install mode. Added Init mode. Updated
usage message. Added find_pda_block(). Update new_pda_block() to
initialize new field userid_given.
* src/coldsync.h: Removed remains of Install mode. Added Init
mode. Got rid of some archaic global variables. Added declarations
for find_pda_block(), load_palm_config().
* src/coldsync.c: Removed remains of Install mode. (feature) Added
Init mode.
* libpconn/PConnection_serial.c: That annoying sleep() is now only
under FreeBSD.
* doc/coldsync.8: Added description of Init mode.
* include/pconn/dlp_cmd.h: Made a string const.
* i18n/fr.po: Translated some strings.
* src/archive.c, src/backup.c, src/conduit.c, src/install.c:
Update for new volatileness.
* src/coldsync.h: Added declaration for mkfname(). All other
filename-building functions now return a volatile value.
* src/misc.c: Added mkfname(). All other filename-making functions
now use it, directly or indirectly, and now return a volatile
value.
* src/GenericConduit.cc: Replaced stat() with exists(). Cast away
the new volatileness of various functions' return values.
2000-11-19 Andrew Arensburger <[email protected]>
* src/install.c: Removed an unused variable.
* src/conduit.c: Re-added fpurge(), on general principle.
* config.h.in: Added test for fpurge(), and redefine it if it
doesn't exist.
* configure.in: Added test for fpurge().
2000-11-18 Andrew Arensburger <[email protected]>
* src/restore.c: Removed some old code to test whether a file to
be restored is a file: it's broken and unnecessary.
* src/install.c: Use is_database_name(), instead of doing it
manually.
* src/config.c: Removed get_config().
* src/coldsync.c: Removed the pre-mode version of main().
* src/misc.c,src/coldsync.h, src/backup.c: Renamed mkfname() to
mkpdbname().
* src/palm.c (bug fix) Stupid typo.
* src/coldsync.h: Moved the LISTEN_* constants to
include/pconn/PConnection.h .
* libpconn/PConnection.c: Removed inclusion of ColdSync header
file. Moved a trace statement from MISC_TRACE to IO_TRACE.
* include/pconn/PConnection.h: Moved the LISTEN_* constants here,
to help remove libpconn's dependency on coldsync.
- Version 1.5.2 released.
* src/coldsync.c: Removed global variable 'palm'; all run_mode_*()
functions now have their own 'struct Palm *'. They now use the
'struct Palm' accessor functions, rather than accessing it
directly. Consequently, removed a bunch of unnecessary code. Moved
various functions elsewhere: GetMemInfo() (now fetch_meminfo()),
ListDBs(), find_dbentry(), append_dbentry(). Got rid of
GetPalmInfo() (now split up into three functions in "palm.c"),
run_mode_Install() (no one seems to want it).
* src/palm.c: Fixed up some comments. Removed test to see if Palm
has more than one memory card: it doesn't work. ListDBs runs
fetch_meminfo() iff it's necessary. Moved (palm_)find_dbentry(),
(palm_)append_dbentry() from "coldsync.c". Added
palm_netsync_hostname().
* src/palm.h: Moved (palm_)find_dbentry(), (palm_)append_dbentry()
here. Added palm_netsync_hostname().
* src/restore.c: Minor changes.
* src/install.c: Use 'struct Palm' accessors, instead of accessing
it directly. find_dbentry() renamed to palm_find_dbentry().
append_dbentry() renamed to palm_append_dbentry(). Fixed
indentation.
* src/config.c: Use 'struct Palm' accessors, instead of accessing
it directly.
* src/conduit.h, src/conduit.c: run_conduits(), run_conduit(),
run_*_conduits() now take a const dbinfo 'cos hey, it seems to
work.
* src/coldsync.h: Moved 'struct Palm' and various related function
declarations to "palm.h".
* src/backup.c: Use 'struct Palm' accessors, instead of accessing
it directly.
* src/palm.c (added) Functions for the 'struct Palm' Proxy.
* src/palm.h (added) Declarations for the 'struct Palm' Proxy.
* src/Makefile: Added "palm.c" and "palm.h".
2000-11-17 Andrew Arensburger <[email protected]>
* doc/coldsync.8: "Synopsis" section is shorter and hopefully
clearer, but not as complete. Updated "Options" section to include
mode options. "-b" and "-r" are now officially deprecated.
"Description" section rewritten. Updated "Overview" section wrt
Install conduits. Added mention of Install conduits where
applicable. Added description of conduit arguments in conduit
blocks. Minor stylistic changes.
2000-11-14 Andrew Arensburger <[email protected]>
- Version 1.5.1 released.
Incorporated J.D. Smith's patch for install conduits:
* src/coldsync.c: Added support for Install conduits.
run_mode_Standalone() now runs Install conduits. Added convenience
function dbinfo_fill().
* src/parser.y: Added support for Install conduits.
* src/misc.c: Added mkinstfname() function. Arensb: added
is_database_name() function.
* src/lexer.l: Added "install" keyword, for Install conduits.
* src/config.c: Fixed a couple of debugging statements to support
Install conduits.
* src/conduit.h: Added declaration for run_Install_conduits().
* src/conduit.c: Added run_Install_conduits(), and support for it
throughout.
* src/coldsync.h: Added Install mode. Added prototypes for
NextInstallFile(), mkinstfname(), is_database_name(),
dbinfo_fill().
* perl/ColdSync/ColdSync.pm: Added support for Install conduits.
* libpdb/pdb.c: Made pdb_LoadHeader() externally visible.
* include/pdb.h: Added declaration for pdb_LoadHeader().
END
* src/coldsync.c: Added, then commented out, run_mode_Install().
Not sure if it's useful. Fixed run_mode_*() to return rather than
exit().
* src/restore.c: restore_dir() now uses is_database_name().
* src/misc.c: Added is_database_name() function.
* src/install.c: Added (and commented out) first draft of
install_file(). Changed InstallNewFiles() to use
is_database_name().
2000-11-09 Andrew Arensburger <[email protected]>
* src/install.c, libpconn/PConnection.c, doc/coldsync.8: Added a
"to do" comment.
* src/Makefile, perl/Makefile, libpdb/Makefile, libpconn/Makefile,
include/pconn/Makefile, include/Makefile, i18n/Makefile,
doc/Makefile, conduits/Makefile: Added magic Emacs lines.
2000-11-04 Andrew Arensburger <[email protected]>
* src/coldsync.c: Massive reorganization: tore out main() and
rewrote it from scratch. Each mode has its own run_mode_*()
function, for modularity. Currently supported modes are
Standalone, Backup, and Restore. Renamed 'config' to
'sync_config'. Moved a common trace statement to ListDBs(), to
avoid excessive duplication. Replaced stat() calls with exists()
and friends. For now, took out the bits that update the user name
and ID. Init mode will handle this.
* src/config.c: Big reorganization: 'config' renamed to
'sync_config'; new_config() renamed to new_sync_config();
free_config() renamed to free_sync_config(). New global variable:
'conf_fname': holds pathname to user's config file. get_config()
eliminated, and most of its functionality moved to load_config().
stat() calls replaced by exists() and friends. Several global
variables moved to 'global_opts'. Added parse_args(), to parse
command-line arguments. Added load_config(), to read a config file
(.coldsyncrc).
* src/restore.c: Restore() eliminated. Its functionality is now
split up between restore_file() and restore_dir().
* src/conduit.c: Global variable 'config' renamed to
'sync_config'.
* src/coldsync.h: Site-wide config file is now
"/etc/coldsync.conf" instead of "/etc/coldsync.rc" 'struct config'
renamed to 'struct sync_config', and its purpose clarified
somewhat. 'sync_config' allocated at run-time, so that it can be
freed properly. More anal prototypes: "type func()" -> "type
func(void)". 'parse_config()' renamed to 'parse_config_file()'.
run_mode_*() now take argc, argv arguments. Got rid of Restore()
in favor of new functions restore_file() and restore_dir().
get_config() eliminated in favor of load_config().
* src/backup.c: full_backup() now takes a directory name as an
argument, instead of looking in global options.
* src/parser.y: Renamed parse_config() to parse_config_file().
* src/GenericConduit.hh: More anal prototypes: type func() -> type
func(void)
2000-10-22 Andrew Arensburger <[email protected]>
- Version 1.5.0 released.
* src/misc.c: Added exists(), lexists(), is_file(),
is_directory().
* src/coldsync.h: Added some fields to cmd_opts (global_opts):
conf_fname, conf_fname_given, devname, devtype. Added declarations
for new functions.
2000-10-21 Andrew Arensburger <[email protected]>
* src/conduit.c: Removed references to sys_maxfds in comments,
since it doesn't exist anymore.
* src/config.c: Removed sys_maxfds, get_maxfds(), since they
aren't used.
* src/coldsync.h: Removed sys_maxfds, since it isn't used.
* config.h.in: Removed HAVE_SYSCONF, since it isn't used.
* configure.in: Removed test for sysconf(), since it isn't used.
* src/config.c: Added "-m<mode>" option. Use it to determine what
the program as a whole will do. Warn if user uses "-b <dir>" or
"-r <dir>". Moved set_debug_level(), usage(), print_version()
here. Added set_mode().
* src/coldsync.h: Redefined run mode; moved it out of 'config' and
into 'global_opts'. Added declaration of set_mode().
2000-09-30 Andrew Arensburger <[email protected]>
* src/coldsync.c: Minor string cleaning. Added trace statement for
run mode. Moved set_debug_level(), usage(), print_version() to
config.c, where they make more sense.
2000-09-28 Andrew Arensburger <[email protected]>
- Version 1.4.6 released
2000-09-27 Andrew Arensburger <[email protected]>
* src/coldsync.c: Updated by Philipp Hahn's patch.
* i18n/fr.po: Updated by Philipp Hahn's patch.
* i18n/de.po: Incorporated translations by Philipp Matthias Hahn.
* i18n/de.po: Latest version of strings, before applying patch.
* README: Added a blurb about Windows NT.
* conduits/todo-text: Cleaned up documentation a bit.
* AUTHORS: Added author. Removed CVS conflict marker.
* perl/ColdSync/ColdSync.pm (bug fix): Declared some variables so
that Perl wouldn't complain about unknown variables.
(bug fix): Test to see whether there are any references before blindly
assigning them. Rearranged some of the prefrence-related code.
* conduits/send-mail: Applied Philipp Hahn's patch: Added an
argument to allow the user to use a category name other than
"Outbox", for non-English Palms.
(bug fix) Fixed a bogus error message.
2000-09-23 Andrew Arensburger <[email protected]>
- Version 1.4.5 released (stable).
* i18n/fr.po: Added \n to some strings.
* src/config.c (bug fix): If the user specified an invalid option
on the command line, ColdSync would print the wrong option in its
error message.
2000-09-22 Andrew Arensburger <[email protected]>
* doc/sample.coldsync.rc: Repeat that "listen usb" only makes
sense under FreeBSD right now. Mention that Visors don't have
useful serial numbers. Added mention of sync conduits,
"[generic]", and preferences.
* conduits/Makefile: Moved 'std-categories' to where it won't be
installed. Added 'memo-text' to distribution.
* conduits/std-categories: Lots of playing around. Mainly,
commented out previous generation of experiments.
2000-09-21 Andrew Arensburger <[email protected]>
* i18n/fr.po: Incorporated Nicolas Bouthors's translations.
* libpconn/slp.c: Added some trace statements.
* doc/coldsync.8: Added bug.
* conduits/todo-text (bug fix): Updated to use new category
structure.