HEX
Server: LiteSpeed
System: Linux server.searchcove.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: lurax (1083)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/include/dovecot/mdbox-file.h
#ifndef MDBOX_FILE_H
#define MDBOX_FILE_H

#include "dbox-file.h"

struct mdbox_file {
	struct dbox_file file;
	struct mdbox_storage *storage;

	uint32_t file_id;
	time_t close_time;
};

struct dbox_file *
mdbox_file_init(struct mdbox_storage *storage, uint32_t file_id);
struct dbox_file *
mdbox_file_init_new_alt(struct mdbox_storage *storage);

/* Assign file ID for a newly created file. */
int mdbox_file_assign_file_id(struct mdbox_file *file, uint32_t file_id);

void mdbox_file_unrefed(struct dbox_file *file);
int mdbox_file_create_fd(struct dbox_file *file, const char *path,
			 bool parents);

void mdbox_files_free(struct mdbox_storage *storage);
void mdbox_files_sync_input(struct mdbox_storage *storage);

#endif