Postfix3.3.1
マクロ定義 | 関数 | 変数
postcat.c ファイル
#include <sys_defs.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <msg.h>
#include <vstream.h>
#include <vstring.h>
#include <msg_vstream.h>
#include <vstring_vstream.h>
#include <stringops.h>
#include <warn_stat.h>
#include <clean_env.h>
#include <record.h>
#include <rec_type.h>
#include <mail_queue.h>
#include <mail_conf.h>
#include <mail_params.h>
#include <mail_version.h>
#include <mail_proto.h>
#include <is_header.h>
#include <lex_822.h>
#include <mail_parm_split.h>

[ソースコード]

マクロ定義

#define PC_FLAG_SEARCH_QUEUE   (1<<0) /* search queue */
 
#define PC_FLAG_PRINT_OFFSET   (1<<1) /* print record offsets */
 
#define PC_FLAG_PRINT_ENV   (1<<2) /* print envelope records */
 
#define PC_FLAG_PRINT_HEADER   (1<<3) /* print header records */
 
#define PC_FLAG_PRINT_BODY   (1<<4) /* print body records */
 
#define PC_FLAG_PRINT_RTYPE_DEC   (1<<5) /* print decimal record type */
 
#define PC_FLAG_PRINT_RTYPE_SYM   (1<<6) /* print symbolic record type */
 
#define PC_MASK_PRINT_TEXT   (PC_FLAG_PRINT_HEADER | PC_FLAG_PRINT_BODY)
 
#define PC_MASK_PRINT_ALL   (PC_FLAG_PRINT_ENV | PC_MASK_PRINT_TEXT)
 
#define PC_STATE_ENV   0 /* initial or extracted envelope */
 
#define PC_STATE_HEADER   1 /* primary header */
 
#define PC_STATE_BODY   2 /* other */
 
#define STR   vstring_str
 
#define LEN   VSTRING_LEN
 
#define TEXT_RECORD(rec_type)   (rec_type == REC_TYPE_CONT || rec_type == REC_TYPE_NORM)
 
#define PRINT_MARKER(flags, fp, offset, type, text)
 
#define PRINT_RECORD(flags, offset, type, value)
 

関数

int main (int argc, char **argv)
 

変数

 MAIL_VERSION_STAMP_DECLARE
 

マクロ定義詳解

#define LEN   VSTRING_LEN

postcat.c153 行目に定義があります。

#define PC_FLAG_PRINT_BODY   (1<<4) /* print body records */

postcat.c138 行目に定義があります。

#define PC_FLAG_PRINT_ENV   (1<<2) /* print envelope records */

postcat.c136 行目に定義があります。

#define PC_FLAG_PRINT_HEADER   (1<<3) /* print header records */

postcat.c137 行目に定義があります。

#define PC_FLAG_PRINT_OFFSET   (1<<1) /* print record offsets */

postcat.c135 行目に定義があります。

#define PC_FLAG_PRINT_RTYPE_DEC   (1<<5) /* print decimal record type */

postcat.c139 行目に定義があります。

#define PC_FLAG_PRINT_RTYPE_SYM   (1<<6) /* print symbolic record type */

postcat.c140 行目に定義があります。

#define PC_FLAG_SEARCH_QUEUE   (1<<0) /* search queue */

postcat.c134 行目に定義があります。

#define PC_MASK_PRINT_ALL   (PC_FLAG_PRINT_ENV | PC_MASK_PRINT_TEXT)

postcat.c143 行目に定義があります。

#define PC_MASK_PRINT_TEXT   (PC_FLAG_PRINT_HEADER | PC_FLAG_PRINT_BODY)

postcat.c142 行目に定義があります。

#define PC_STATE_BODY   2 /* other */

postcat.c150 行目に定義があります。

#define PC_STATE_ENV   0 /* initial or extracted envelope */

postcat.c148 行目に定義があります。

#define PC_STATE_HEADER   1 /* primary header */

postcat.c149 行目に定義があります。

#define PRINT_MARKER (   flags,
  fp,
  offset,
  type,
  text 
)
値:
do { \
if ((flags) & PC_FLAG_PRINT_OFFSET) \
vstream_printf("%9lu ", (unsigned long) (offset)); \
vstream_printf("%3d ", (type)); \
vstream_printf("*** %s %s ***\n", (text), VSTREAM_PATH(fp)); \
} while (0)
#define VSTREAM_OUT
Definition: vstream.h:67
#define VSTREAM_PATH(vp)
Definition: vstream.h:126
#define PC_FLAG_PRINT_RTYPE_DEC
Definition: postcat.c:139
#define PC_FLAG_PRINT_OFFSET
Definition: postcat.c:135
VSTREAM * vstream_printf(const char *fmt,...)
Definition: vstream.c:1335
int vstream_fflush(VSTREAM *stream)
Definition: vstream.c:1257
#define PRINT_RECORD (   flags,
  offset,
  type,
  value 
)
値:
do { \
if ((flags) & PC_FLAG_PRINT_OFFSET) \
vstream_printf("%9lu ", (unsigned long) (offset)); \
vstream_printf("%3d ", (type)); \
vstream_printf("%s: %s\n", rec_type_name(rec_type), (value)); \
} while (0)
#define VSTREAM_OUT
Definition: vstream.h:67
const char * rec_type_name(int type)
Definition: rec_type.c:79
#define PC_FLAG_PRINT_RTYPE_DEC
Definition: postcat.c:139
#define PC_FLAG_PRINT_OFFSET
Definition: postcat.c:135
VSTREAM * vstream_printf(const char *fmt,...)
Definition: vstream.c:1335
int vstream_fflush(VSTREAM *stream)
Definition: vstream.c:1257
#define STR   vstring_str

postcat.c152 行目に定義があります。

#define TEXT_RECORD (   rec_type)    (rec_type == REC_TYPE_CONT || rec_type == REC_TYPE_NORM)

関数詳解

int main ( int  argc,
char **  argv 
)

postcat.c414 行目に定義があります。

変数詳解

MAIL_VERSION_STAMP_DECLARE

postcat.c412 行目に定義があります。