Lines Matching refs:lp_error
79 static zx_status_t lp_error(launchpad_t* lp, zx_status_t error, const char* msg) { in lp_error() function
92 lp_error(lp, (error < 0) ? error : ZX_ERR_INTERNAL, msg); in launchpad_abort()
136 lp_error(lp, status, in launchpad_create_with_process()
159 lp_error(lp, status, "create: zx_process_create() failed"); in launchpad_create_with_jobs()
192 return lp_error(lp, ZX_ERR_INVALID_ARGS, "negative string array count"); in build_stringtable()
202 return lp_error(lp, ZX_ERR_NO_MEMORY, "out of memory for string array"); in build_stringtable()
211 return lp_error(lp, ZX_ERR_INVALID_ARGS, "string array modified during use"); in build_stringtable()
276 return lp_error(lp, ZX_ERR_NO_MEMORY, "too many handles for handle table"); in more_handles()
285 return lp_error(lp, ZX_ERR_NO_MEMORY, "out of memory for handle table"); in more_handles()
289 return lp_error(lp, ZX_ERR_NO_MEMORY, "out of memory for handle table"); in more_handles()
298 return lp_error(lp, ZX_ERR_BAD_HANDLE, "added invalid handle"); in launchpad_add_handle()
320 return lp_error(lp, ZX_ERR_BAD_HANDLE, "added invalid handle"); in launchpad_add_handles()
340 return lp_error(lp, ZX_ERR_INVALID_ARGS, "add_pipe: invalid target fd"); in launchpad_add_pipe()
344 return lp_error(lp, status, "add_pipe: failed to create pipe"); in launchpad_add_pipe()
364 return lp_error(lp, ZX_ERR_INVALID_ARGS, "elf_load: invalid vmo"); in launchpad_elf_load_basic()
371 lp_error(lp, status, "elf_load: elf_load_start() failed"); in launchpad_elf_load_basic()
375 lp_error(lp, status, "elf_load: elf_load_finish() failed"); in launchpad_elf_load_basic()
395 return lp_error(lp, ZX_ERR_INVALID_ARGS, "elf_load_extra: invalid vmo"); in launchpad_elf_load_extra()
400 lp_error(lp, status, "elf_load_extra: elf_load_start() failed"); in launchpad_elf_load_extra()
402 lp_error(lp, status, "elf_load_extra: elf_load_finish() failed"); in launchpad_elf_load_extra()
492 return lp_error(lp, status, in reserve_low_address_space()
503 return lp_error( in reserve_low_address_space()
509 return lp_error(lp, ZX_ERR_BAD_STATE, in reserve_low_address_space()
570 lp_error(lp, status, "elf_load: elf_load_start() failed"); in launchpad_elf_load_body()
576 lp_error(lp, status, "elf_load: get_interp() failed"); in launchpad_elf_load_body()
583 lp_error(lp, status, "elf_load: elf_load_finish() failed"); in launchpad_elf_load_body()
596 lp_error(lp, status, "elf_load: handle_interp failed"); in launchpad_elf_load_body()
653 return lp_error(lp, ZX_ERR_INVALID_ARGS, "file_load: invalid vmo"); in launchpad_file_load()
669 return lp_error(lp, status, "file_load: zx_vmo_get_size() failed"); in launchpad_file_load()
687 return lp_error(lp, status, "file_load: zx_vmo_read() failed"); in launchpad_file_load()
693 return lp_error(lp, ZX_ERR_NOT_SUPPORTED, in launchpad_file_load()
701 return lp_error(lp, ZX_ERR_OUT_OF_RANGE, in launchpad_file_load()
712 return lp_error(lp, status, in launchpad_file_load()
723 return lp_error(lp, ZX_ERR_NO_MEMORY, "file_load: out of memory"); in launchpad_file_load()
745 return lp_error(lp, status, "file_load: setup_loader_svc() failed"); in launchpad_file_load()
751 return lp_error(lp, status, "file_load: loader_svc_rpc() failed"); in launchpad_file_load()
758 lp_error(lp, status, "file_load: failed to load ELF file"); in launchpad_file_load()
765 return lp_error(lp, ZX_ERR_INVALID_ARGS, "elf_load: invalid vmo"); in launchpad_elf_load()
806 return lp_error(lp, status, "add_vdso_vmo: get_vdso_vmo failed"); in launchpad_add_vdso_vmo()
1017 return lp_error(lp, ZX_ERR_BAD_STATE, "prepare start bad state"); in prepare_start()
1029 return lp_error(lp, status, "start: cannot create channel"); in prepare_start()
1034 lp_error(lp, status, "cannot create initial thread"); in prepare_start()
1044 lp_error(lp, status, "cannot duplicate thread handle"); in prepare_start()
1050 lp_error(lp, status, "cannot add thread self handle"); in prepare_start()
1058 lp_error(lp, status, "failed to send loader message"); in prepare_start()
1068 lp_error(lp, ZX_ERR_NO_MEMORY, in prepare_start()
1111 lp_error(lp, ZX_ERR_BUFFER_TOO_SMALL, in prepare_start()
1123 lp_error(lp, status, "cannot create stack vmo"); in prepare_start()
1150 lp_error(lp, status, "cannot map stack vmo"); in prepare_start()
1159 lp_error(lp, status, "\ in prepare_start()
1165 lp_error(lp, status, "\ in prepare_start()
1176 lp_error(lp, status, "cannot duplicate process handle"); in prepare_start()
1184 lp_error(lp, status, "cannot duplicate root vmar handle"); in prepare_start()
1196 lp_error(lp, status, "failed to write procargs message"); in prepare_start()
1258 return lp_error(lp, status, "zx_process_start() failed"); in launchpad_start()
1303 return lp_error(lp, status, "launchpad_vmo_from_file failure"); in launchpad_load_from_file()