Postfix3.3.1
データ構造 | マクロ定義 | 関数
log_adhoc.c ファイル
#include <sys_defs.h>
#include <string.h>
#include <msg.h>
#include <vstring.h>
#include <format_tv.h>
#include <stringops.h>
#include <log_adhoc.h>
#include <mail_params.h>

[ソースコード]

データ構造

struct  DELTA_TIME
 

マクロ定義

#define DELTA(x, y, z)
 
#define DELTA_ZERO(x)   ((x).dt_sec = (x).dt_usec = 0)
 
#define TIME_STAMPED(x)   ((x).tv_sec > 0)
 
#define SIG_DIGS   2
 
#define PRETTY_FORMAT(b, text, x)
 

関数

void log_adhoc (const char *id, MSG_STATS *stats, RECIPIENT *recipient, const char *relay, DSN *dsn, const char *status)
 

マクロ定義詳解

#define DELTA (   x,
  y,
 
)
値:
do { \
(x).dt_sec = (y).tv_sec - (z).tv_sec; \
(x).dt_usec = (y).tv_usec - (z).tv_usec; \
while ((x).dt_usec < 0) { \
(x).dt_usec += 1000000; \
(x).dt_sec -= 1; \
} \
while ((x).dt_usec >= 1000000) { \
(x).dt_usec -= 1000000; \
(x).dt_sec += 1; \
} \
if ((x).dt_sec < 0) \
(x).dt_sec = (x).dt_usec = 0; \
} while (0)
#define DELTA_ZERO (   x)    ((x).dt_sec = (x).dt_usec = 0)
#define PRETTY_FORMAT (   b,
  text,
 
)
値:
do { \
vstring_strcat((b), text); \
format_tv((b), (x).dt_sec, (x).dt_usec, SIG_DIGS, var_delay_max_res); \
} while (0)
VSTRING * format_tv(VSTRING *buf, long sec, long usec, int sig_dig, int max_dig)
Definition: format_tv.c:65
#define SIG_DIGS
int var_delay_max_res
Definition: mail_params.c:330
VSTRING * vstring_strcat(VSTRING *vp, const char *src)
Definition: vstring.c:459
#define SIG_DIGS   2
#define TIME_STAMPED (   x)    ((x).tv_sec > 0)

関数詳解

void log_adhoc ( const char *  id,
MSG_STATS stats,
RECIPIENT recipient,
const char *  relay,
DSN dsn,
const char *  status 
)

log_adhoc.c82 行目に定義があります。