HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/root/proc/thread-self/root/usr/local/apps/dovecot/include/dovecot/hostpid.h
#ifndef HOSTPID_H
#define HOSTPID_H

/* These environments override the hostname/hostdomain if they're set.
   Master process normally sets these to child processes. */
#define MY_HOSTNAME_ENV "DOVECOT_HOSTNAME"
#define MY_HOSTDOMAIN_ENV "DOVECOT_HOSTDOMAIN"

extern const char *my_hostname;
extern const char *my_pid;

/* Initializes my_hostname and my_pid. */
void hostpid_init(void);
void hostpid_deinit(void);

/* Returns the current host+domain, or if it fails fallback to returning
   hostname. */
const char *my_hostdomain(void);

#endif