Home
last modified time | relevance | path

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

12

/coreutils/tests/test/
Dtest.pl31 my $ret = 0;
41 and $ret = $e->{EXIT}, next;
48 return ($flags, $ret, \@list_of_hashref);
68 my ($flags, $ret, $LoH) = digest_test $t;
79 $ret = 1 - $ret;
80 push (@new, [$test_name, $flags, {EXIT=>$ret}, @$LoH]);
103 my ($flags, $ret, $LoH) = digest_test $t;
104 next if $ret == 2;
106 push (@new, ["N-$test_name", "! $flags", {EXIT=>1-$ret}, @$LoH])
108 push (@new, ["P-$test_name", "'(' $flags ')'", {EXIT=>$ret}, @$LoH])
[all …]
/coreutils/src/
Diopoll.c71 int ret = 0; in iopoll_internal() local
79 while (0 <= ret || errno == EINTR) in iopoll_internal()
81 ret = poll (pfds, 2, block ? -1 : 0); in iopoll_internal()
83 if (ret < 0) in iopoll_internal()
85 if (ret == 0 && ! block) in iopoll_internal()
87 affirm (0 < ret); in iopoll_internal()
97 int ret = 0; in iopoll_internal() local
102 ret = -1; in iopoll_internal()
107 while (0 <= ret || errno == EINTR) in iopoll_internal()
117 ret = select (nfds, in iopoll_internal()
[all …]
Dstdbuf.c171 int ret = -1; in optc_to_fileno() local
176 ret = STDERR_FILENO; in optc_to_fileno()
179 ret = STDIN_FILENO; in optc_to_fileno()
182 ret = STDOUT_FILENO; in optc_to_fileno()
186 return ret; in optc_to_fileno()
192 int ret; in set_LD_PRELOAD() local
235 ret = asprintf (&libstdbuf, "%s/%s", *path, LIB_NAME); in set_LD_PRELOAD()
236 if (ret < 0) in set_LD_PRELOAD()
250 ret = asprintf (&LD_PRELOAD, "%s=%s:%s", preload_env, old_libs, libstdbuf); in set_LD_PRELOAD()
252 ret = asprintf (&LD_PRELOAD, "%s=%s", preload_env, libstdbuf); in set_LD_PRELOAD()
[all …]
Dlibstdbuf.c70 char const *ret = nullptr; in fileno_to_name() local
75 ret = "stdin"; in fileno_to_name()
78 ret = "stdout"; in fileno_to_name()
81 ret = "stderr"; in fileno_to_name()
84 ret = "unknown"; in fileno_to_name()
88 return ret; in fileno_to_name()
Dsync.c90 bool ret = true; in sync_arg() local
125 ret = false; in sync_arg()
128 if (ret == true) in sync_arg()
155 ret = false; in sync_arg()
162 ret = false; in sync_arg()
165 return ret; in sync_arg()
Drelpath.c33 int ret = 0; in path_common_prefix() local
46 ret = i + 1; in path_common_prefix()
55 ret = i; in path_common_prefix()
57 return ret; in path_common_prefix()
Dseq.c149 operand ret; in scan_arg() local
151 if (! xstrtold (arg, nullptr, &ret.value, cl_strtold)) in scan_arg()
157 if (isnan (ret.value)) in scan_arg()
169 ret.width = 0; in scan_arg()
170 ret.precision = INT_MAX; in scan_arg()
175 ret.precision = 0; in scan_arg()
178 if (! arg[strcspn (arg, "xX")] && isfinite (ret.value)) in scan_arg()
181 ret.width = strlen (arg); in scan_arg()
187 ret.precision = fraction_len; in scan_arg()
188 ret.width += (fraction_len == 0 /* #. -> # */ in scan_arg()
[all …]
Dsum.c42 int ret = -1; in bsd_sum_stream() local
108 ret = 0; in bsd_sum_stream()
111 return ret; in bsd_sum_stream()
120 int ret = -1; in sysv_sum_stream() local
183 ret = 0; in sysv_sum_stream()
186 return ret; in sysv_sum_stream()
Dmkdir.c167 int ret = (make_dir_parents (dir, wd, o->make_ancestor_function, options, in process_dir() local
178 if (ret == EXIT_SUCCESS && o->set_security_context in process_dir()
187 return ret; in process_dir()
268 int ret = 0; in main() local
270 ret = smack_set_label_for_self (scontext); in main()
272 ret = setfscreatecon (scontext); in main()
274 if (ret < 0) in main()
Drmdir.c264 int ret = stat (dir, &st); in main() local
266 if ((ret != 0 && errno != ENOTDIR) in main()
267 || (ret == 0 && S_ISDIR (st.st_mode))) in main()
272 ret = lstat (dir, &st); in main()
273 if (ret == 0 && S_ISLNK (st.st_mode)) in main()
Dmkfifo.c139 int ret = 0; in main() local
141 ret = smack_set_label_for_self (scontext); in main()
143 ret = setfscreatecon (scontext); in main()
145 if (ret < 0) in main()
Dchroot.c102 int ret = 0; in parse_additional_groups() local
133 ret = -1; in parse_additional_groups()
149 if (ret == 0 && n_gids == 0) in parse_additional_groups()
153 ret = -1; in parse_additional_groups()
158 if (ret == 0) in parse_additional_groups()
162 return ret; in parse_additional_groups()
Dmknod.c195 int ret = 0; in main() local
197 ret = smack_set_label_for_self (scontext); in main()
199 ret = setfscreatecon (scontext); in main()
201 if (ret < 0) in main()
Dinstall.c389 int ret = (make_dir_parents (dir, wd, make_ancestor, options, in process_dir() local
400 if (ret == EXIT_SUCCESS && x->set_security_context) in process_dir()
408 return ret; in process_dir()
743 bool ret = true; in install_file_in_dir() local
746 && (ret = mkdir_and_install) in install_file_in_dir()
747 && (ret = mkancesdirs_safe_wd (from, to, (struct cp_options *) x, true))) in install_file_in_dir()
753 ret = false; in install_file_in_dir()
759 if (ret) in install_file_in_dir()
767 ret = install_file_in_file (from, to, to_dirfd, to_relname, x); in install_file_in_dir()
771 return ret; in install_file_in_dir()
Ddd.c1275 int ret; in ifdatasync() local
1280 ret = fdatasync (fd); in ifdatasync()
1282 while (ret < 0 && errno == EINTR); in ifdatasync()
1284 return ret; in ifdatasync()
1292 int ret; in ifd_reopen() local
1297 ret = fd_reopen (desired_fd, file, flag, mode); in ifd_reopen()
1299 while (ret < 0 && errno == EINTR); in ifd_reopen()
1301 return ret; in ifd_reopen()
1309 int ret; in ifstat() local
1314 ret = fstat (fd, st); in ifstat()
[all …]
Dtac.c260 regoff_t ret; in tac_seekable() local
266 || ((ret = re_search (&compiled_separator, G_buffer, in tac_seekable()
270 else if (ret == -2) in tac_seekable()
/coreutils/tests/runcon/
Druncon-compute.sh26 runcon -c true; ret=$?
27 test "$ret" = 125 && skip_ 'runcon setup failed'
28 test "$ret" = 1 || fail=1
/coreutils/src/blake2/
Db2sum.c35 int ret = -1;
77 ret = 0;
80 return ret;
86 int ret = -1; in blake2b_stream() local
128 ret = 0; in blake2b_stream()
131 return ret; in blake2b_stream()
138 int ret = -1;
180 ret = 0;
183 return ret;
189 int ret = -1;
[all …]
/coreutils/tests/dd/
Dno-allocate.sh48 local ret=$?
51 test $ret = 124 && framework_failure_
60 inout|outin) test $ret = 0;;
61 *) test $ret != 0;;
/coreutils/tests/tail/
Dpid.sh45 ret=$?
46 test $ret = 124 && skip_ "pid $PID_T_MAX present or tail too slow"
47 test $ret = 0 || fail=1
Dtail.pl114 my ($test_name, $flags, $in, $exp, $ret, $err_msg, $err_sub) = @$t;
116 $ret
117 and push @$e, {EXIT=>$ret}, {ERR=>$err_msg}, {ERR_SUBST=>$err_sub};
/coreutils/tests/misc/
Djoin.pl313 my ($test_name, $flags, $in, $exp, $ret, $err_msg) = @$t;
331 $ret
332 and push @$new_ent, {EXIT=>$ret}, {ERR=>$err_msg};
/coreutils/tests/timeout/
Dtimeout-group.sh93 ret=$?
94 test $ret -eq 124 ||
95 skip_ "timeout returned $ret. SIGALRM not handled?"
/coreutils/tests/pr/
Dpr-tests.pl434 my ($test_name, $flags, $in, $exp, $ret, $err_msg, $err_sub) = @$t;
460 $ret
461 and push @$new_ent, {EXIT=>$ret}, {ERR=>$err_msg}, {ERR_SUBST=>$err_sub};
/coreutils/tests/rm/
Dr-root.sh160 ret=$?
162 clean_rm_err_ < err.t > err || ret=$?
164 return $ret

12