blob: ac5ee7ce4c8eaaff73de2b11fd9fd3682d3b0556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <errno.h>
#include <skalibs/genalloc.h>
#include <s6/ftrigr.h>
#include "ftrigr-internal.h"
int ftrigr_ack (ftrigr *a, uint32_t id)
{
ftrigr_data *p = genalloc_s(ftrigr_data, &a->data) + id ;
if (p->status && p->status != EAGAIN) return (errno = p->status, 0) ;
p->sa.len = 0 ;
return 1 ;
}
|