Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 104) sorted by relevance

12345

/busybox-1.35.0/libbb/
Dbb_askpass.c19 char *ret; in bb_ask_noecho() local
57 ret = NULL; in bb_ask_noecho()
65 ret = xrealloc(ret, i + 2); in bb_ask_noecho()
66 r = read(fd, &ret[i], 1); in bb_ask_noecho()
71 ret[i] = '\0'; /* paranoia */ in bb_ask_noecho()
72 nuke_str(ret); /* paranoia */ in bb_ask_noecho()
73 free(ret); in bb_ask_noecho()
74 ret = NULL; in bb_ask_noecho()
79 || ret[i] == '\r' || ret[i] == '\n' /* EOL */ in bb_ask_noecho()
82 ret[i] = '\0'; in bb_ask_noecho()
[all …]
Dxfuncs_printf.c148 int ret; in xopen3() local
150 ret = open(pathname, flags, mode); in xopen3()
151 if (ret < 0) { in xopen3()
154 return ret; in xopen3()
166 int ret; in open3_or_warn() local
168 ret = open(pathname, flags, mode); in open3_or_warn()
169 if (ret < 0) { in open3_or_warn()
172 return ret; in open3_or_warn()
505 ssize_t ret = sendto(s, buf, len, 0, to, tolen); in xsendto() local
506 if (ret < 0) { in xsendto()
[all …]
Dxregcomp.c15 int ret = regcomp(preg, regex, cflags); in regcomp_or_errmsg() local
16 if (ret) { in regcomp_or_errmsg()
17 int errmsgsz = regerror(ret, preg, NULL, 0); in regcomp_or_errmsg()
19 regerror(ret, preg, errmsg, errmsgsz); in regcomp_or_errmsg()
Dxgetcwd.c23 char *ret; in xrealloc_getcwd_or_warn() local
31 ret = getcwd(cwd, path_max); in xrealloc_getcwd_or_warn()
32 if (ret == NULL) { in xrealloc_getcwd_or_warn()
Dexecutable.c72 char *ret = find_executable(filename, &path); in executable_exists() local
73 free(ret); in executable_exists()
74 return ret != NULL; in executable_exists()
/busybox-1.35.0/procps/
Dpmap.c66 int ret; in procps_get_maps() local
77 ret = procps_read_smaps(pid, &total, print_smaprec, (void*)(uintptr_t)opt); in procps_get_maps()
78 if (ret) in procps_get_maps()
79 return ret; in procps_get_maps()
97 int ret; in pmap_main() local
102 ret = 0; in pmap_main()
107 ret = 42; in pmap_main()
110 return ret; in pmap_main()
/busybox-1.35.0/archival/libarchive/unxz/
Dxz_dec_stream.c220 enum xz_ret ret; in dec_block() local
227 ret = xz_dec_bcj_run(s->bcj, s->lzma2, b); in dec_block()
230 ret = xz_dec_lzma2_run(s->lzma2, b); in dec_block()
248 if (ret == XZ_STREAM_END) { in dec_block()
277 return ret; in dec_block()
298 enum xz_ret ret; in dec_index() local
301 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index()
302 if (ret != XZ_STREAM_END) { in dec_index()
304 return ret; in dec_index()
450 enum xz_ret ret; in dec_block_header() local
[all …]
/busybox-1.35.0/util-linux/
Dswitch_root.c117 int ret; in drop_bounding_set() local
119 ret = prctl(PR_CAPBSET_READ, cap_idx, 0, 0, 0); in drop_bounding_set()
120 if (ret < 0) in drop_bounding_set()
123 if (ret == 1) { in drop_bounding_set()
124 ret = prctl(PR_CAPBSET_DROP, cap_idx, 0, 0, 0); in drop_bounding_set()
125 if (ret != 0) in drop_bounding_set()
135 int ret; in drop_usermodehelper() local
137 ret = open_read_close(filename, buf, sizeof(buf) - 1); in drop_usermodehelper()
138 if (ret < 0) in drop_usermodehelper()
141 buf[ret] = '\0'; in drop_usermodehelper()
[all …]
Dchrt.c99 int ret; in chrt_main() local
173 ret = syscall(SYS_sched_getparam, pid, &sp); in chrt_main()
175 ret = sched_getparam(pid, &sp); in chrt_main()
177 if (ret) in chrt_main()
197 ret = syscall(SYS_sched_setscheduler, pid, policy, &sp); in chrt_main()
199 ret = sched_setscheduler(pid, policy, &sp); in chrt_main()
201 if (ret) in chrt_main()
Dipcrm.c68 int ret = 0; in remove_ids() local
70 ret = semctl(id, 0, IPC_RMID, arg); in remove_ids()
72 ret = msgctl(id, IPC_RMID, NULL); in remove_ids()
74 ret = shmctl(id, IPC_RMID, NULL); in remove_ids()
76 if (ret) { in remove_ids()
/busybox-1.35.0/coreutils/
Dsync.c49 int ret; in sync_common() local
55 ret = EXIT_SUCCESS; in sync_common()
62 ret = EXIT_FAILURE; in sync_common()
76 ret = EXIT_FAILURE; in sync_common()
83 return ret; in sync_common()
Dtruncate.c44 int ret = EXIT_SUCCESS; in truncate_main() local
70 ret = EXIT_FAILURE; in truncate_main()
78 ret = EXIT_FAILURE; in truncate_main()
85 return ret; in truncate_main()
Dinstall.c119 int ret = EXIT_SUCCESS; in install_main() local
210 ret = EXIT_FAILURE; in install_main()
231 ret = EXIT_FAILURE; in install_main()
242 ret = EXIT_FAILURE; in install_main()
251 ret = EXIT_FAILURE; in install_main()
262 ret = EXIT_FAILURE; in install_main()
269 return ret; in install_main()
Dhead.c83 goto ret; in print_except_N_last_bytes()
95 goto ret; in print_except_N_last_bytes()
99 ret: in print_except_N_last_bytes()
112 goto ret; in print_except_N_last_lines()
124 goto ret; in print_except_N_last_lines()
128 ret: in print_except_N_last_lines()
/busybox-1.35.0/archival/
Dbzip2.c128 int n, n2, ret; in IF_DESKTOP() local
136 ret = BZ2_bzCompress(strm, rlen ? BZ_RUN : BZ_FINISH); in IF_DESKTOP()
137 if (ret != BZ_RUN_OK /* BZ_RUNning */ in IF_DESKTOP()
138 && ret != BZ_FINISH_OK /* BZ_FINISHing, but not done yet */ in IF_DESKTOP()
139 && ret != BZ_STREAM_END /* BZ_FINISHed */ in IF_DESKTOP()
141 bb_error_msg_and_die("internal error %d", ret); in IF_DESKTOP()
155 if (ret == BZ_STREAM_END) in IF_DESKTOP()
/busybox-1.35.0/util-linux/volume_id/
Dvolume_id.c189 goto ret; in volume_id_probe_all()
191 goto ret; in volume_id_probe_all()
197 goto ret; in volume_id_probe_all()
199 goto ret; in volume_id_probe_all()
205 goto ret; in volume_id_probe_all()
207 goto ret; in volume_id_probe_all()
215 goto ret; in volume_id_probe_all()
217 goto ret; in volume_id_probe_all()
220 ret: in volume_id_probe_all()
/busybox-1.35.0/miscutils/
Dmakedevs.c184 int ret = EXIT_SUCCESS; in makedevs_main() local
225 ret = EXIT_FAILURE; in makedevs_main()
243 ret = EXIT_FAILURE; in makedevs_main()
249 ret = EXIT_FAILURE; in makedevs_main()
256 ret = EXIT_FAILURE; in makedevs_main()
274 ret = EXIT_FAILURE; in makedevs_main()
290 ret = EXIT_FAILURE; in makedevs_main()
293 ret = EXIT_FAILURE; in makedevs_main()
296 ret = EXIT_FAILURE; in makedevs_main()
306 return ret; in makedevs_main()
Dadjtimex.c92 int ret; in adjtimex_main() local
124 ret = adjtimex(&txc); in adjtimex_main()
125 if (ret < 0) in adjtimex_main()
158 if (ret <= 5) in adjtimex_main()
159 descript = nth_string(ret_code_descript, ret); in adjtimex_main()
171 ret, descript in adjtimex_main()
/busybox-1.35.0/shell/hush_test/
Drun-all93 ret=0
100 do_test $module || ret=1
105 do_test $1 || ret=1
111 exit ${ret}
/busybox-1.35.0/findutils/
Dxargs.c228 goto ret; in xargs_exec()
237 ret: in xargs_exec()
288 goto ret; in process_stdin()
331 goto ret; in process_stdin()
339 goto ret; in process_stdin()
343 goto ret; in process_stdin()
346 ret: in process_stdin()
367 goto ret; in process_stdin()
382 goto ret; in process_stdin()
390 goto ret; in process_stdin()
[all …]
/busybox-1.35.0/shell/ash_test/
Drun-all85 ret=0
95 do_test $module || ret=1
100 do_test $1 || ret=1
106 exit ${ret}
/busybox-1.35.0/networking/udhcp/
Ddomain_codec.c38 char *ret, *end; in dname_dec() local
43 end = ret = xstrdup(pre); in dname_dec()
63 ret = xrealloc(ret, len + *c + 1); in dname_dec()
65 end = (char *)mempcpy(ret + len, c + 1, *c); in dname_dec()
86 ret[len - 1] = ' '; in dname_dec()
97 if (ret == end) { /* expanded string is empty? abort */ in dname_dec()
99 free(ret); in dname_dec()
104 return ret; in dname_dec()
/busybox-1.35.0/debianutils/
Drun_parts.c191 int ret; in run_parts_main() local
232 ret = spawn_and_wait(cmd); in run_parts_main()
233 if (ret == 0) in run_parts_main()
236 if (ret < 0) in run_parts_main()
239 bb_error_msg("%s: exit status %u", name, ret & 0xff); in run_parts_main()
/busybox-1.35.0/console-tools/
Dresize.c56 int ret; in resize_main() local
106 ret = ioctl(STDERR_FILENO, TIOCSWINSZ, &w); in resize_main()
114 return ret; in resize_main()
/busybox-1.35.0/networking/libiproute/
Dll_map.c137 int ret = 0; in xll_name_to_index() local
150 ret = icache; in xll_name_to_index()
159 ret = im->index; in xll_name_to_index()
166 ret = if_nametoindex(name); in xll_name_to_index()
168 if (ret <= 0) in xll_name_to_index()
170 return ret; in xll_name_to_index()

12345