blob: 1640836f882857d95ddf25a9b48ae920fcb84713 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* ISC license. */
#include <skalibs/sysdeps.h>
#ifdef SKALIBS_HASSPLICE
#include <skalibs/djbunix.h>
#include <skalibs/iobuffer.h>
static void iobufferk_nop (iobufferk *k)
{
(void)k ;
}
static void iobufferk_finish_0 (iobufferk *k)
{
fd_close(k->p[1]) ;
}
static void iobufferk_finish_3 (iobufferk *k)
{
fd_close(k->p[1]) ;
fd_close(k->p[0]) ;
}
iobufferk_finish_func_ref const iobufferk_finish_f[4] =
{
&iobufferk_finish_0, &iobufferk_nop, &iobufferk_nop, &iobufferk_finish_3
} ;
#else
#include <skalibs/iobuffer.h>
static void iobufferk_nop (iobufferk *k)
{
(void)k ;
}
iobufferk_finish_func_ref const iobufferk_finish_f[4] =
{
&iobufferk_nop, &iobufferk_nop, &iobufferk_nop, &iobufferk_nop
} ;
#endif
|