]> code.citadel.org Git - citadel.git/blob - citadel/utils/ctdl3264.c
Experimental utility ctdl3264 for database conversion (not finished)
[citadel.git] / citadel / utils / ctdl3264.c
1 // Attempt to convert your database from 32-bit to 64-bit.
2 // Don't run this.  It doesn't work and if you try to run it you will immediately die.
3 //
4 // Copyright (c) 1987-2022 by the citadel.org team
5 //
6 // This program is open source software.  Use, duplication, or disclosure
7 // is subject to the terms of the GNU General Public License, version 3.
8
9 #include <stdlib.h>
10 #include <unistd.h>
11 #include <ctype.h>
12 #include <stdio.h>
13 #include <signal.h>
14 #include <sys/types.h>
15 #include <sys/socket.h>
16 #include <sys/un.h>
17 #include <netdb.h>
18 #include <string.h>
19 #include <pwd.h>
20 #include <errno.h>
21 #include <stdarg.h>
22 #include <limits.h>
23 #include <libcitadel.h>
24 #include "../server/sysdep.h"
25 #include "../server/citadel_defs.h"
26 #include "../server/server.h"
27 #include "../server/citadel_dirs.h"
28 #include "ctdl3264_structs.h"
29
30
31 int main(int argc, char **argv) {
32
33         if (sizeof(void *) != 8) {
34                 fprintf(stderr, "%s: this is a %ld-bit system.\n", argv[0], sizeof(void *)*8);
35                 fprintf(stderr, "%s: you must run this on a 64-bit system, onto which a 32-bit database has been copied.\n", argv[0]);
36                 exit(1);
37         }
38
39
40         exit(0);
41 }