Mercurial > dovecot > core-2.2
annotate src/lib/ostream-unix.h @ 23007:36e01285b5b8
lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Mon, 18 Mar 2019 00:52:37 +0100 |
parents | dbb9b7c9ca9f |
children |
rev | line source |
---|---|
22101
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
1 #ifndef OSTREAM_UNIX_H |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
2 #define OSTREAM_UNIX_H |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
3 |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
4 struct ostream *o_stream_create_unix(int fd, size_t max_buffer_size); |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
5 /* Write fd to UNIX socket along with the next outgoing data block. |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
6 Returns TRUE if fd is accepted, and FALSE if a previous fd still |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
7 needs to be sent. */ |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
8 bool o_stream_unix_write_fd(struct ostream *output, int fd); |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
9 |
dbb9b7c9ca9f
lib: Added ostream-unix for writing fd sockets via ostream.
Stephan Bosch <stephan@rename-it.nl>
parents:
diff
changeset
|
10 #endif |