Lines Matching refs:id
396 send_status(u_int32_t id, u_int32_t status) in send_status() argument
400 debug3("request %u: sent status %u", id, status); in send_status()
406 buffer_put_int(&msg, id); in send_status()
416 send_data_or_handle(char type, u_int32_t id, const char *data, int dlen) in send_data_or_handle() argument
422 buffer_put_int(&msg, id); in send_data_or_handle()
429 send_data(u_int32_t id, const char *data, int dlen) in send_data() argument
431 debug("request %u: sent data len %d", id, dlen); in send_data()
432 send_data_or_handle(SSH2_FXP_DATA, id, data, dlen); in send_data()
436 send_handle(u_int32_t id, int handle) in send_handle() argument
442 debug("request %u: sent handle handle %d", id, handle); in send_handle()
443 send_data_or_handle(SSH2_FXP_HANDLE, id, string, hlen); in send_handle()
448 send_names(u_int32_t id, int count, const Stat *stats) in send_names() argument
455 buffer_put_int(&msg, id); in send_names()
457 debug("request %u: sent names count %d", id, count); in send_names()
468 send_attrib(u_int32_t id, const Attrib *a) in send_attrib() argument
472 debug("request %u: sent attrib have 0x%x", id, a->flags); in send_attrib()
475 buffer_put_int(&msg, id); in send_attrib()
500 u_int32_t id, pflags; in process_open() local
505 id = get_int(); in process_open()
508 debug3("request %u: open flags %d", id, pflags); in process_open()
522 send_handle(id, handle); in process_open()
527 send_status(id, status); in process_open()
534 u_int32_t id; in process_close() local
537 id = get_int(); in process_close()
539 debug3("request %u: close handle %u", id, handle); in process_close()
543 send_status(id, status); in process_close()
550 u_int32_t id, len; in process_read() local
554 id = get_int(); in process_read()
560 id, handle_to_name(handle), handle, (unsigned long long)off, len); in process_read()
577 send_data(id, buf, ret); in process_read()
584 send_status(id, status); in process_read()
590 u_int32_t id; in process_write() local
596 id = get_int(); in process_write()
602 id, handle_to_name(handle), handle, (unsigned long long)off, len); in process_write()
622 send_status(id, status); in process_write()
631 u_int32_t id; in process_do_stat() local
635 id = get_int(); in process_do_stat()
637 debug3("request %u: %sstat", id, do_lstat ? "l" : ""); in process_do_stat()
644 send_attrib(id, &a); in process_do_stat()
648 send_status(id, status); in process_do_stat()
669 u_int32_t id; in process_fstat() local
672 id = get_int(); in process_fstat()
675 id, handle_to_name(handle), handle); in process_fstat()
683 send_attrib(id, &a); in process_fstat()
688 send_status(id, status); in process_fstat()
707 u_int32_t id; in process_setstat() local
711 id = get_int(); in process_setstat()
714 debug("request %u: setstat name \"%s\"", id, name); in process_setstat()
746 send_status(id, status); in process_setstat()
754 u_int32_t id; in process_fsetstat() local
758 id = get_int(); in process_fsetstat()
761 debug("request %u: fsetstat handle %d", id, handle); in process_fsetstat()
812 send_status(id, status); in process_fsetstat()
821 u_int32_t id; in process_opendir() local
823 id = get_int(); in process_opendir()
825 debug3("request %u: opendir", id); in process_opendir()
835 send_handle(id, handle); in process_opendir()
841 send_status(id, status); in process_opendir()
852 u_int32_t id; in process_readdir() local
854 id = get_int(); in process_readdir()
856 debug("request %u: readdir \"%s\" (handle %d)", id, in process_readdir()
861 send_status(id, SSH2_FX_FAILURE); in process_readdir()
889 send_names(id, count, stats); in process_readdir()
895 send_status(id, SSH2_FX_EOF); in process_readdir()
905 u_int32_t id; in process_remove() local
909 id = get_int(); in process_remove()
911 debug3("request %u: remove", id); in process_remove()
915 send_status(id, status); in process_remove()
923 u_int32_t id; in process_mkdir() local
927 id = get_int(); in process_mkdir()
932 debug3("request %u: mkdir", id); in process_mkdir()
936 send_status(id, status); in process_mkdir()
943 u_int32_t id; in process_rmdir() local
947 id = get_int(); in process_rmdir()
949 debug3("request %u: rmdir", id); in process_rmdir()
953 send_status(id, status); in process_rmdir()
961 u_int32_t id; in process_realpath() local
964 id = get_int(); in process_realpath()
970 debug3("request %u: realpath", id); in process_realpath()
973 send_status(id, errno_to_portable(errno)); in process_realpath()
978 send_names(id, 1, &s); in process_realpath()
986 u_int32_t id; in process_rename() local
991 id = get_int(); in process_rename()
994 debug3("request %u: rename", id); in process_rename()
1035 send_status(id, status); in process_rename()
1043 u_int32_t id; in process_readlink() local
1048 id = get_int(); in process_readlink()
1050 debug3("request %u: readlink", id); in process_readlink()
1053 send_status(id, errno_to_portable(errno)); in process_readlink()
1060 send_names(id, 1, &s); in process_readlink()
1068 u_int32_t id; in process_symlink() local
1072 id = get_int(); in process_symlink()
1075 debug3("request %u: symlink", id); in process_symlink()
1080 send_status(id, status); in process_symlink()
1088 u_int32_t id; in process_extended() local
1091 id = get_int(); in process_extended()
1093 send_status(id, SSH2_FX_OP_UNSUPPORTED); /* MUST */ in process_extended()