~ubuntu-branches/ubuntu/dapper/postfix/dapper-security

« back to all changes in this revision

Viewing changes to src/global/record.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-02-27 09:33:07 UTC
  • Revision ID: james.westby@ubuntu.com-20050227093307-cn789t27ibnlh6tf
Tags: upstream-2.1.5
ImportĀ upstreamĀ versionĀ 2.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _RECORD_H_INCLUDED_
 
2
#define _RECORD_H_INCLUDED_
 
3
 
 
4
/*++
 
5
/* NAME
 
6
/*      record 3h
 
7
/* SUMMARY
 
8
/*      simple typed record I/O
 
9
/* SYNOPSIS
 
10
/*      #include <record.h>
 
11
/* DESCRIPTION
 
12
/* .nf
 
13
 
 
14
 /*
 
15
  * System library.
 
16
  */
 
17
#include <stdarg.h>
 
18
 
 
19
 /*
 
20
  * Utility library.
 
21
  */
 
22
#include <vstring.h>
 
23
#include <vstream.h>
 
24
 
 
25
 /*
 
26
  * Record type values are positive numbers 0..255. Negative record type
 
27
  * values are reserved for diagnostics.
 
28
  */
 
29
#define REC_TYPE_EOF    -1              /* no record */
 
30
#define REC_TYPE_ERROR  -2              /* bad record */
 
31
 
 
32
 /*
 
33
  * Functional interface.
 
34
  */
 
35
extern int rec_get(VSTREAM *, VSTRING *, int);
 
36
extern int rec_put(VSTREAM *, int, const char *, int);
 
37
extern int rec_put_type(VSTREAM *, int, long);
 
38
extern int PRINTFLIKE(3, 4) rec_fprintf(VSTREAM *, int, const char *,...);
 
39
extern int rec_fputs(VSTREAM *, int, const char *);
 
40
 
 
41
#define REC_PUT_BUF(v, t, b) rec_put((v), (t), vstring_str(b), VSTRING_LEN(b))
 
42
 
 
43
 /*
 
44
  * Stuff that needs <stdarg.h>
 
45
  */
 
46
extern int rec_vfprintf(VSTREAM *, int, const char *, va_list);
 
47
 
 
48
/* LICENSE
 
49
/* .ad
 
50
/* .fi
 
51
/*      The Secure Mailer license must be distributed with this software.
 
52
/* AUTHOR(S)
 
53
/*      Wietse Venema
 
54
/*      IBM T.J. Watson Research
 
55
/*      P.O. Box 704
 
56
/*      Yorktown Heights, NY 10598, USA
 
57
/*--*/
 
58
 
 
59
#endif