summaryrefslogtreecommitdiffstats
path: root/lib/stream.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-04 03:00:46 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-04 03:30:17 +0100
commitf4b356490dc03d3758b50da11b1548254fb56138 (patch)
treeead2e56720973f2f1c7eebe0ae032f2c826bc328 /lib/stream.c
parent7d5fe54553c735a12e3fc40c3d9f0e59c79a33c6 (diff)
parent2442cdc3064f87860972ce6397fbaab52e200a00 (diff)
downloadquagga-f4b356490dc03d3758b50da11b1548254fb56138.tar.bz2
quagga-f4b356490dc03d3758b50da11b1548254fb56138.tar.xz
Merge branch 'patches/sh_bgp-write-cork' into dn42
Conflicts: lib/sockunion.c
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/stream.c b/lib/stream.c
index 983330ff..bff74d7b 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -711,32 +711,6 @@ stream_read (struct stream *s, int fd, size_t size)
return nbytes;
}
-/* Read size from fd. */
-int
-stream_read_unblock (struct stream *s, int fd, size_t size)
-{
- int nbytes;
- int val;
-
- STREAM_VERIFY_SANE(s);
-
- if (STREAM_WRITEABLE (s) < size)
- {
- STREAM_BOUND_WARN (s, "put");
- return 0;
- }
-
- val = fcntl (fd, F_GETFL, 0);
- fcntl (fd, F_SETFL, val|O_NONBLOCK);
- nbytes = read (fd, s->data + s->endp, size);
- fcntl (fd, F_SETFL, val);
-
- if (nbytes > 0)
- s->endp += nbytes;
-
- return nbytes;
-}
-
ssize_t
stream_read_try(struct stream *s, int fd, size_t size)
{