Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 66) sorted by relevance

123

/coreutils/src/
Dprintf.c498 char ok[UCHAR_MAX + 1]; /* ok['x'] is true if %x is allowed. */ in print_formatted() local
538 memset (ok, 0, sizeof ok); in print_formatted()
539 ok['a'] = ok['A'] = ok['c'] = ok['d'] = ok['e'] = ok['E'] = in print_formatted()
540 ok['f'] = ok['F'] = ok['g'] = ok['G'] = ok['i'] = ok['o'] = in print_formatted()
541 ok['s'] = ok['u'] = ok['x'] = ok['X'] = 1; in print_formatted()
550 ok['a'] = ok['A'] = ok['c'] = ok['e'] = ok['E'] = in print_formatted()
551 ok['o'] = ok['s'] = ok['x'] = ok['X'] = 0; in print_formatted()
556 ok['c'] = ok['d'] = ok['i'] = ok['s'] = ok['u'] = 0; in print_formatted()
559 ok['c'] = ok['s'] = 0; in print_formatted()
595 ok['c'] = 0; in print_formatted()
[all …]
Dexpand-common.c94 bool ok = true; in set_extend_size() local
101 ok = false; in set_extend_size()
105 return ok; in set_extend_size()
111 bool ok = true; in set_increment_size() local
118 ok = false; in set_increment_size()
122 return ok; in set_increment_size()
135 bool ok = true; in parse_tab_stops() local
147 ok = false; in parse_tab_stops()
155 ok = false; in parse_tab_stops()
170 ok = false; in parse_tab_stops()
[all …]
Dgroup-list.c39 bool ok = true; in print_group_list() local
46 ok = false; in print_group_list()
50 ok = false; in print_group_list()
56 ok = false; in print_group_list()
82 ok = false; in print_group_list()
86 return ok; in print_group_list()
105 bool ok = true; in print_group() local
122 ok = false; in print_group()
128 return ok; in print_group()
Dchcon.c95 bool ok = true; in compute_context_from_mask() local
113 ok = false; \ in compute_context_from_mask()
123 if (!ok) in compute_context_from_mask()
213 bool ok = true; in process_file() local
256 ok = false; in process_file()
261 ok = false; in process_file()
267 ok = false; in process_file()
283 && ok && ROOT_DEV_INO_CHECK (root_dev_ino, file_stats)) in process_file()
286 ok = false; in process_file()
289 if (ok) in process_file()
[all …]
Dchown-core.c292 bool ok = true; in change_file_owner() local
338 ok = false; in change_file_owner()
344 ok = false; in change_file_owner()
351 ok = false; in change_file_owner()
366 if (!ok) in change_file_owner()
392 ok = false; in change_file_owner()
398 do_chown = (ok in change_file_owner()
406 if (ok in change_file_owner()
418 ok = (lchownat (fts->fts_cwd_fd, file, uid, gid) == 0); in change_file_owner()
423 if (!ok && errno == EOPNOTSUPP) in change_file_owner()
[all …]
Drmdir.c115 bool ok = true; in remove_parents() local
133 ok = (rmdir (dir) == 0); in remove_parents()
136 if (! ok) in remove_parents()
141 ok = true; in remove_parents()
162 return ok; in remove_parents()
199 bool ok = true; in main() local
289 ok = false; in main()
293 ok &= remove_parents (dir); in main()
297 return ok ? EXIT_SUCCESS : EXIT_FAILURE; in main()
Dod.c894 bool ok = true; in open_next_file() local
900 return ok; in open_next_file()
916 ok = false; in open_next_file()
925 return ok; in open_next_file()
938 bool ok = true; in check_and_close() local
951 ok = false; in check_and_close()
960 ok = false; in check_and_close()
963 return ok; in check_and_close()
1003 bool ok = true; in skip() local
1043 ok = false; in skip()
[all …]
Ddircolors.c274 bool ok = true; in dc_parse_stream() local
303 ok = false; in dc_parse_stream()
327 ok = false; in dc_parse_stream()
383 ok = false; in dc_parse_stream()
390 return ok; in dc_parse_stream()
396 bool ok; in dc_parse_file() local
404 ok = dc_parse_stream (stdin, filename); in dc_parse_file()
412 return ok; in dc_parse_file()
418 bool ok = true; in main() local
513 ok = dc_parse_stream (nullptr, nullptr); in main()
[all …]
Dtee.c177 bool ok = tee_files (argc - optind, &argv[optind], pipe_check); in main() local
181 return ok ? EXIT_SUCCESS : EXIT_FAILURE; in main()
234 bool ok = true; in tee_files() local
269 ok = false; in tee_files()
293 ok = false; in tee_files()
301 ok = false; in tee_files()
318 ok = false; in tee_files()
328 ok = false; in tee_files()
336 ok = false; in tee_files()
343 return ok; in tee_files()
Dgroups.c70 bool ok = true; in main() local
118 ok = false; in main()
130 ok = false; in main()
138 ok = false; in main()
143 return ok ? EXIT_SUCCESS : EXIT_FAILURE; in main()
Dprintenv.c86 bool ok; in main() local
117 ok = true; in main()
150 ok = (matches == argc - optind); in main()
153 return ok ? EXIT_SUCCESS : EXIT_FAILURE; in main()
Dpaste.c171 bool ok = true; in paste_parallel() local
267 ok = false; in paste_parallel()
328 return ok; in paste_parallel()
338 bool ok = true; /* false if open or read errors occur. */ in paste_serial() local
358 ok = false; in paste_serial()
410 ok = false; in paste_serial()
413 return ok; in paste_serial()
509 bool ok = ((serial_merge ? paste_serial : paste_parallel) in main() local
516 return ok ? EXIT_SUCCESS : EXIT_FAILURE; in main()
Ddu.c489 bool ok = true; in process_file() local
512 ok = false; in process_file()
572 ok = false; in process_file()
668 return ok; in process_file()
679 bool ok = true; in du_files() local
696 ok = false; in du_files()
707 ok &= process_file (fts, ent); in du_files()
713 ok = false; in du_files()
717 return ok; in du_files()
725 bool ok = true; in main() local
[all …]
Dshred.c823 bool ok = true; in do_wipefd() local
929 ok = false; in do_wipefd()
945 ok = false; in do_wipefd()
951 return ok; in do_wipefd()
1043 bool ok = true; in wipename() local
1066 ok = false; in wipename()
1085 ok = false; in wipename()
1092 ok = false; in wipename()
1096 ok = false; in wipename()
1102 return ok; in wipename()
[all …]
Dtac.c432 bool ok = tac_seekable (fileno (tmp_stream), tmp_file, bytes_copied); in tac_nonseekable() local
433 return ok; in tac_nonseekable()
443 bool ok; in tac_file() local
468 ok = (file_size < 0 || isatty (fd) in tac_file()
475 ok = false; in tac_file()
477 return ok; in tac_file()
485 bool ok; in main() local
571 ok = true; in main()
573 ok &= tac_file (file[i]); in main()
582 ok = false; in main()
[all …]
Ddate.c341 bool ok; in batch_convert() local
361 ok = true; in batch_convert()
379 ok = false; in batch_convert()
383 ok &= show_date (format, when, tz); in batch_convert()
392 return ok; in batch_convert()
408 bool ok; in main() local
580 ok = batch_convert (batch_file, format_res, tz, tzstring); in main()
584 ok = true; in main()
641 ok = false; in main()
645 ok &= show_date (format_res, when, tz); in main()
[all …]
Dnl.c480 bool ok = true; in main() local
503 ok = false; in main()
511 ok = false; in main()
519 ok = false; in main()
556 ok = false; in main()
573 ok = false; in main()
578 if (!ok) in main()
610 ok = nl_file ("-"); in main()
613 ok &= nl_file (argv[optind]); in main()
618 return ok ? EXIT_SUCCESS : EXIT_FAILURE; in main()
Dmv.c172 bool ok = copy (source, dest, dest_dirfd, dest_relname, 0, x, in do_move() local
175 if (ok) in do_move()
192 ok = false; in do_move()
241 ok = false; in do_move()
245 return ok; in do_move()
314 bool ok; in main() local
535 ok = true; in main()
545 ok &= do_move (source, dest, target_dirfd, dest_relname, &x); in main()
552 ok = do_move (file[0], file[1], AT_FDCWD, file[1], &x); in main()
555 main_exit (ok ? EXIT_SUCCESS : EXIT_FAILURE); in main()
/coreutils/tests/sort/
Dsort-compress.sh34 touch ok
51 test -f ok || fail=1
52 rm -f ok
57 test -f ok && fail=1
63 test -f ok || fail=1
64 rm -f ok
69 test -f ok || fail=1
70 rm -f dzip ok
Dsort-compress-hang.sh26 touch ok
45 test -f ok || fail=1
46 rm -f compress ok
/coreutils/tests/rm/
Dfail-eacces.sh26 ok=0
31 ok=1
32 test $ok = 1 || framework_failure_
37 ok=1
38 test $ok = 1 || framework_failure_
/coreutils/tests/nice/
Dnice.sh50 : ok
67 && ok=ok || ok=FAIL fail=1
68 test "$VERBOSE" = yes && echo $ok
/coreutils/tests/stty/
Dstty-row-col.sh83 && ok=ok || ok=FAIL fail=1
84 test "$VERBOSE" = yes && echo $ok
/coreutils/tests/tail/
Dassert-2.sh49 ok='ok ok ok'
50 echo "$ok" > foo || framework_failure_
51 tail_re="^$ok$" retry_delay_ check_tail_output .1 7 ||
Dassert.sh60 ok='ok ok ok'
61 echo "$ok" > foo || framework_failure_
62 tail_re="^$ok$" retry_delay_ check_tail_output .1 7 ||

123