Lines Matching refs:retval
139 int retval; in map_som_binary() local
151 retval = do_mmap(file, code_start, code_size, prot, in map_som_binary()
154 if (retval < 0 && retval > -1024) in map_som_binary()
162 retval = do_mmap(file, data_start, data_size, in map_som_binary()
166 if (retval < 0 && retval > -1024) in map_som_binary()
172 retval = do_mmap(NULL, bss_start, som_brk - bss_start, in map_som_binary()
175 if (retval > 0 || retval < -1024) in map_som_binary()
176 retval = 0; in map_som_binary()
179 return retval; in map_som_binary()
192 int retval; in load_som_binary() local
201 retval = check_som_header(som_ex); in load_som_binary()
202 if (retval != 0) in load_som_binary()
207 retval = -ENOMEM; in load_som_binary()
215 retval = kernel_read(bprm->file, som_ex->aux_header_location, in load_som_binary()
217 if (retval != size) { in load_som_binary()
218 if (retval >= 0) in load_som_binary()
219 retval = -EIO; in load_som_binary()
223 retval = get_unused_fd(); in load_som_binary()
224 if (retval < 0) in load_som_binary()
227 fd_install(som_exec_fileno = retval, bprm->file); in load_som_binary()
230 retval = flush_old_exec(bprm); in load_som_binary()
231 if (retval) in load_som_binary()
250 retval = map_som_binary(bprm->file, hpuxhdr); in load_som_binary()
251 if (retval < 0) in load_som_binary()
283 return retval; in load_som_binary()