Lines Matching +full:touch +full:- +full:enter
3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
51 {"from-code", required_argument, NULL, 'f'},
54 {"to-code", required_argument, NULL, 't'},
62 "Usage:\t%1$s [-cs] -f <from_code> -t <to_code> [file ...]\n" in usage()
63 "\t%1$s -f <from_code> [-cs] [-t <to_code>] [file ...]\n" in usage()
64 "\t%1$s -t <to_code> [-cs] [-f <from_code>] [file ...]\n" in usage()
65 "\t%1$s -l\n", getprogname()); in usage()
79 * Don't touch ICONV_SET_DISCARD_ILSEQ if -c wasn't specified. It may in do_conv()
80 * be that the user has specified //IGNORE in the -t specification, and in do_conv()
85 if (iconvctl(cd, ICONV_SET_DISCARD_ILSEQ, (void *)&arg) == -1) in do_conv()
101 (void)fwrite(outbuf, 1, OUTBUFSIZE - outbytes, in do_conv()
103 if (ret == (size_t)-1 && errno != E2BIG) { in do_conv()
110 INBUFSIZE - inbytes, fp); in do_conv()
130 if (ret == (size_t)-1) in do_conv()
133 (void)fwrite(outbuf, 1, OUTBUFSIZE - outbytes, stdout); in do_conv()
148 if (i < n - 1) in do_list()
171 long_options, NULL)) != -1) { in main()
183 warnx("-l is not allowed with other flags."); in main()
202 argc -= optind; in main()
220 if (cd == (iconv_t)-1) in main()
225 err(EXIT_FAILURE, "unable to enter capability mode"); in main()
230 fp = (strcmp(argv[i], "-") != 0) ? in main()
235 /* Enter Capsicum sandbox for final input file. */ in main()
238 "unable to enter capability mode"); in main()