citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

citadel_dirs.h
Go to the documentation of this file.
1// Copyright (c) 1987-2022 by the citadel.org team
2//
3// This program is open source software. Use, duplication, or disclosure
4// is subject to the terms of the GNU General Public License, version 3.
5// The program is distributed without any warranty, expressed or implied.
6
7#ifndef __CITADEL_DIRS_H
8#define __CITADEL_DIRS_H
9
10#include <limits.h>
11
12// Fixed directory names (some of these are obsolete and used only for migration)
13#define ctdl_home_directory "."
14#define ctdl_db_dir "data"
15#define ctdl_file_dir "files"
16#define ctdl_shared_dir "."
17#define ctdl_image_dir "images"
18#define ctdl_info_dir "info"
19#define ctdl_key_dir "keys"
20#define ctdl_message_dir "messages"
21#define ctdl_usrpic_dir "userpics"
22#define ctdl_autoetc_dir "."
23#define ctdl_run_dir "."
24#define ctdl_netcfg_dir "netconfigs"
25#define ctdl_bbsbase_dir "."
26#define ctdl_sbin_dir "."
27#define ctdl_bin_dir "."
28#define ctdl_utilbin_dir "."
29
30// Fixed file names (some of these are obsolete and used only for migration)
31#define file_citadel_config "citadel.config"
32#define file_lmtp_socket "lmtp.socket"
33#define file_lmtp_unfiltered_socket "lmtp-unfiltered.socket"
34#define file_arcq "refcount_adjustments.dat"
35#define file_citadel_socket "citadel.socket"
36#define file_citadel_admin_socket "citadel-admin.socket"
37#define file_pid_file "/var/run/citserver.pid"
38#define file_pid_paniclog "panic.log"
39#define file_crpt_file_key "keys/citadel.key"
40#define file_crpt_file_cer "keys/citadel.cer"
41#define file_chkpwd CTDLDIR "chkpwd"
42#define file_guesstimezone CTDLDIR "guesstimezone.sh"
43
44
45// externs
46extern int create_run_directories(long UID, long GUID);
47extern size_t assoc_file_name(char *buf, size_t n, struct ctdlroom *qrbuf, const char *prefix);
48extern FILE *create_digest_file(struct ctdlroom *room, int forceCreate);
49extern void remove_digest_file(struct ctdlroom *room);
50
51#endif // __CITADEL_DIRS_H
size_t assoc_file_name(char *buf, size_t n, struct ctdlroom *qrbuf, const char *prefix)
Definition: citadel_dirs.c:23
void remove_digest_file(struct ctdlroom *room)
FILE * create_digest_file(struct ctdlroom *room, int forceCreate)
int create_run_directories(long UID, long GUID)
Definition: citadel_dirs.c:52
struct ctdlroom qrbuf
Definition: serv_migrate.c:497