Lines Matching refs:status

179 struct status {
188 struct status *(*sy_syscall) ();
344 struct status *sy_listio(struct io_req *req, struct syscall_info *sysc,
353 struct status *sy_pread(struct io_req *req, struct syscall_info *sysc,
355 struct status *sy_pwrite(struct io_req *req, struct syscall_info *sysc,
362 struct status *sy_readv(struct io_req *req, struct syscall_info *sysc,
364 struct status *sy_writev(struct io_req *req, struct syscall_info *sysc,
366 struct status *sy_rwv(struct io_req *req, struct syscall_info *sysc,
373 struct status *sy_aread(struct io_req *req, struct syscall_info *sysc,
375 struct status *sy_awrite(struct io_req *req, struct syscall_info *sysc,
377 struct status *sy_arw(struct io_req *req, struct syscall_info *sysc,
384 struct status *sy_mmread(struct io_req *req, struct syscall_info *sysc,
386 struct status *sy_mmwrite(struct io_req *req, struct syscall_info *sysc,
388 struct status *sy_mmrw(struct io_req *req, struct syscall_info *sysc,
728 "(parent) pid %d exited with unknown status %d\n",
2530 struct status *sy_listio(struct io_req *req, struct syscall_info *sysc, int fd,
2538 struct status *status;
2553 status = malloc(sizeof(struct status));
2554 if (status == NULL) {
2559 status->aioid = malloc((nents + 1) * sizeof(int));
2560 if (status->aioid == NULL) {
2579 status->aioid[i] = aio_id;
2595 status->aioid[nents] = -1; /* end sentinel */
2597 if ((status->rval = listio(lc, lio_req, nents)) == -1) {
2598 status->err = errno;
2602 return (status);
2650 struct status *sy_pread(struct io_req *req, struct syscall_info *sysc, int fd,
2654 struct status *status;
2658 status = malloc(sizeof(struct status));
2659 if (status == NULL) {
2664 status->aioid = NULL;
2665 status->rval = rc;
2666 status->err = errno;
2668 return (status);
2671 struct status *sy_pwrite(struct io_req *req, struct syscall_info *sysc, int fd,
2675 struct status *status;
2679 status = malloc(sizeof(struct status));
2680 if (status == NULL) {
2685 status->aioid = NULL;
2686 status->rval = rc;
2687 status->err = errno;
2689 return (status);
2714 struct status *sy_readv(struct io_req *req, struct syscall_info *sysc, int fd,
2717 struct status *sy_rwv();
2721 struct status *sy_writev(struct io_req *req, struct syscall_info *sysc, int fd,
2724 struct status *sy_rwv();
2728 struct status *sy_rwv(struct io_req *req, struct syscall_info *sysc, int fd,
2732 struct status *status;
2735 status = malloc(sizeof(struct status));
2736 if (status == NULL) {
2741 status->aioid = NULL;
2745 status->rval = rc;
2746 status->err = errno;
2747 return (status);
2757 status->aioid = NULL;
2758 status->rval = rc;
2759 status->err = errno;
2760 return (status);
2776 struct status *sy_aread(struct io_req *req, struct syscall_info *sysc, int fd,
2779 struct status *sy_arw();
2783 struct status *sy_awrite(struct io_req *req, struct syscall_info *sysc, int fd,
2786 struct status *sy_arw();
2795 struct status *sy_arw(struct io_req *req, struct syscall_info *sysc, int fd,
2799 struct status *status;
2804 status = malloc(sizeof(struct status));
2805 if (status == NULL) {
2843 status->aioid = malloc(2 * sizeof(int));
2844 if (status->aioid == NULL) {
2849 status->aioid[0] = aio_id;
2850 status->aioid[1] = -1;
2851 status->rval = rc;
2852 status->err = errno;
2853 return (status);
2869 struct status *sy_mmread(struct io_req *req, struct syscall_info *sysc, int fd,
2872 struct status *sy_mmrw();
2876 struct status *sy_mmwrite(struct io_req *req, struct syscall_info *sysc, int fd,
2879 struct status *sy_mmrw();
2883 struct status *sy_mmrw(struct io_req *req, struct syscall_info *sysc, int fd,
2891 struct status *status;
2897 status = malloc(sizeof(struct status));
2898 if (status == NULL) {
2903 status->aioid = NULL;
2904 status->rval = -1;
2911 status->err = errno;
2912 return (status);
2923 status->err = errno;
2924 return (status);
2941 status->rval = req->r_data.io.r_nbytes;
2942 status->err = 0;
2948 return (status);
3064 struct status *s;
4940 * If the cmdline is valid, return 0 to caller. Otherwise exit with a status