~ubuntu-branches/ubuntu/saucy/syslog-ng/saucy

« back to all changes in this revision

Viewing changes to lib/logtransport.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2011-11-15 08:48:02 UTC
  • mfrom: (26.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111115084802-n0jegdnjlxk0m26s
Tags: 3.3.1.dfsg-1ubuntu1
* debian/control: remove libsystemd-daemon-dev build-depends
* debian/rules: remove --with-systemdsystemunitdir from
  override_dh_auto_configure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "syslog-ng.h"
29
29
#include "gsockaddr.h"
30
30
 
 
31
/* don't close the underlying fd when LogTransport is destructed */
31
32
#define LTF_DONTCLOSE 0x0001
 
33
 
 
34
/* issue an fsync after every write */
32
35
#define LTF_FSYNC     0x0002
 
36
 
 
37
/* reseek to the end-of-file before writing */
33
38
#define LTF_APPEND    0x0004
 
39
 
 
40
/* use recv() instead of read() */
34
41
#define LTF_RECV      0x0008
 
42
 
 
43
/* issue a shutdown() when LogTransport is destructed, only works if LTF_DONTCLOSE is unset */
35
44
#define LTF_SHUTDOWN  0x0010
36
45
 
 
46
/* the underlying fd is a pipe, try to resize the output chunk to make
 
47
 * sure it fits into PIPE_BUF, see then comment
 
48
 * log_transport_plain_write() for more details. */
 
49
#define LTF_PIPE      0x0020
 
50
 
37
51
 
38
52
typedef struct _LogTransport LogTransport;
39
53