int samba_runcmd_recv(struct tevent_req *req, int *perrno) { if (tevent_req_is_unix_error(req, perrno)) { tevent_req_received(req); return -1; } tevent_req_received(req); return 0; }
static int aio_posix_int_recv(struct tevent_req *req, int *err) { struct aio_posix_state *state = tevent_req_data( req, struct aio_posix_state); if (tevent_req_is_unix_error(req, err)) { return -1; } *err = state->err; return state->ret; }
int tevent_req_simple_recv_unix(struct tevent_req *req) { int err = 0; /* * Ignore result of tevent_req_is_unix_error, we're only interested in * the status */ tevent_req_is_unix_error(req, &err); tevent_req_received(req); return err; }
int ctdb_conn_init_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, struct ctdb_conn **pconn) { struct ctdb_conn_init_state *state = tevent_req_data( req, struct ctdb_conn_init_state); int err; if (tevent_req_is_unix_error(req, &err)) { return err; } *pconn = talloc_move(mem_ctx, &state->conn); return 0; }