Lines Matching +defs:doc +defs:c
2 * Copyright (c) Ian F. Darwin 1986-1995.
35 FILE_RCSID("@(#)$File: file.c,v 1.217 2024/09/29 16:49:25 christos Exp $")
114 #define OPT(shortname, longname, opt, def, doc) \
116 #define OPT_LONGONLY(longname, opt, def, doc, id) \
198 int c;
230 while ((c = getopt_long(argc, argv, OPTSTRING, long_options,
232 switch (c) {
254 case 'c':
273 if (c != OPT_EXCLUDE_QUIET)
396 c = magic_check(magic, magicfile);
399 c = magic_compile(magic, magicfile);
402 c = magic_list(magic, magicfile);
407 if (c == -1) {
573 file_octal(unsigned char c)
576 (void)putc(((c >> 6) & 7) + '0', stdout);
577 (void)putc(((c >> 3) & 7) + '0', stdout);
578 (void)putc(((c >> 0) & 7) + '0', stdout);
614 unsigned char c = CAST(unsigned char, inname[i]);
615 if (isprint(c)) {
616 (void)putc(c, stdout);
619 file_octal(c);
630 const char *type, c = nulsep > 1 ? '\0' : '\n';
652 haderror |= printf("ERROR: %s%c", magic_error(ms), c);
654 haderror |= printf("%s%c", type, c) < 0;
756 file_errx(EXIT_FAILURE, "Unknown escape `%c' in long options",
771 #define OPT(shortname, longname, opt, def, doc) \
772 (void)printf(" -%c, --" longname, shortname), \
773 docprint(doc, def);
774 #define OPT_LONGONLY(longname, opt, def, doc, id) \
776 docprint(doc, def);