~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/util/vstream.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    int     fd;                         /* file handle, no 256 limit */
45
45
    VSTREAM_FN read_fn;                 /* buffer fill action */
46
46
    VSTREAM_FN write_fn;                /* buffer fill action */
 
47
    ssize_t req_bufsize;                /* requested read/write buffer size */
47
48
    void   *context;                    /* application context */
48
49
    off_t   offset;                     /* cached seek info */
49
50
    char   *path;                       /* give it at least try */
56
57
    int     timeout;                    /* read/write timout */
57
58
    VSTREAM_JMP_BUF *jbuf;              /* exception handling */
58
59
    struct timeval iotime;              /* time of last fill/flush */
59
 
    /* At bottom for Postfix 2.4 binary compatibility. */
60
 
    ssize_t req_bufsize;                /* write buffer size */
61
60
} VSTREAM;
62
61
 
63
62
extern VSTREAM vstream_fstd[];          /* pre-defined streams */
106
105
#define VSTREAM_GETCHAR()       VSTREAM_GETC(VSTREAM_IN)
107
106
 
108
107
#define vstream_fileno(vp)      ((vp)->fd)
 
108
#define vstream_req_bufsize(vp) ((const ssize_t) ((vp)->req_bufsize))
109
109
#define vstream_context(vp)     ((vp)->context)
110
110
#define vstream_ferror(vp)      vbuf_error(&(vp)->buf)
111
111
#define vstream_feof(vp)        vbuf_eof(&(vp)->buf)
132
132
#define VSTREAM_CTL_DUPFD       11
133
133
#endif
134
134
#define VSTREAM_CTL_BUFSIZE     12
 
135
#define VSTREAM_CTL_SWAP_FD     13
135
136
 
136
137
extern VSTREAM *PRINTFLIKE(1, 2) vstream_printf(const char *,...);
137
138
extern VSTREAM *PRINTFLIKE(2, 3) vstream_fprintf(VSTREAM *, const char *,...);