Lines Matching refs:err
105 int err, n, reply_fd; in aio_thread() local
119 .err = event.res }); in aio_thread()
121 err = write(reply_fd, &reply, sizeof(reply)); in aio_thread()
122 if (err != sizeof(reply)) in aio_thread()
173 int err; in not_aio_thread() local
177 err = read(aio_req_fd_r, &req, sizeof(req)); in not_aio_thread()
178 if (err != sizeof(req)) { in not_aio_thread()
179 if (err < 0) in not_aio_thread()
187 aio_req_fd_r, err); in not_aio_thread()
191 err = do_not_aio(&req); in not_aio_thread()
193 .err = err }); in not_aio_thread()
194 err = write(req.aio->reply_fd, &reply, sizeof(reply)); in not_aio_thread()
195 if (err != sizeof(reply)) in not_aio_thread()
205 int fds[2], err; in init_aio_24() local
207 err = os_pipe(fds, 1, 1); in init_aio_24()
208 if (err) in init_aio_24()
214 err = os_set_fd_block(aio_req_fd_w, 0); in init_aio_24()
215 if (err) in init_aio_24()
218 err = run_helper_thread(not_aio_thread, NULL, in init_aio_24()
220 if (err < 0) in init_aio_24()
223 aio_pid = err; in init_aio_24()
245 int err; in init_aio_26() local
248 err = -errno; in init_aio_26()
251 return err; in init_aio_26()
254 err = run_helper_thread(aio_thread, NULL, in init_aio_26()
256 if (err < 0) in init_aio_26()
257 return err; in init_aio_26()
259 aio_pid = err; in init_aio_26()
269 int err; in submit_aio_26() local
271 err = do_aio(ctx, type, io_fd, buf, len, offset, aio); in submit_aio_26()
272 if (err) { in submit_aio_26()
274 .err = err }); in submit_aio_26()
275 err = write(aio->reply_fd, &reply, sizeof(reply)); in submit_aio_26()
276 if (err != sizeof(reply)) { in submit_aio_26()
277 err = -errno; in submit_aio_26()
279 "fd = %d, err = %d\n", aio->reply_fd, -err); in submit_aio_26()
281 else err = 0; in submit_aio_26()
284 return err; in submit_aio_26()
324 int err; in init_aio() local
327 err = init_aio_26(); in init_aio()
328 if (err && (errno == ENOSYS)) { in init_aio()
333 else return err; in init_aio()
371 int err; in submit_aio_24() local
373 err = write(aio_req_fd_w, &req, sizeof(req)); in submit_aio_24()
374 if (err == sizeof(req)) in submit_aio_24()
375 err = 0; in submit_aio_24()
376 else err = -errno; in submit_aio_24()
378 return err; in submit_aio_24()