static void __attribute__((__noreturn__)) usage(void)
{
fputs(USAGE_HEADER, stdout);
- printf(_(" %s [options] file...\n"), program_invocation_short_name);
+ fprintf(stdout, _(" %s [options] file...\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
- puts(_("Short program description."));
+ fputs(_("Short program description."), stdout);
fputs(USAGE_OPTIONS, stdout);
- puts(_(" -n, --no-argument option does not use argument"));
- puts(_(" --optional[=<arg>] option argument is optional"));
- puts(_(" -r, --required <arg> option requires an argument"));
- puts(_(" -z no long option"));
- puts(_(" --xyzzy a long option only"));
- puts(_(" -e, --extremely-long-long-option\n"
- " use next line for description when needed"));
- puts(_(" -l, --long-explanation an example of very verbose, and chatty option\n"
- " description on two, or multiple lines, where the\n"
- " consecutive lines are intended by two spaces"));
- puts(_(" -f, --foobar next option description resets indent"));
+ fputs(_(" -n, --no-argument option does not use argument"), stdout);
+ fputs(_(" --optional[=<arg>] option argument is optional"), stdout);
+ fputs(_(" -r, --required <arg> option requires an argument"), stdout);
+ fputs(_(" -z no long option"), stdout);
+ fputs(_(" --xyzzy a long option only"), stdout);
+ fputs(_(" -e, --extremely-long-long-option\n"
+ " use next line for description when needed"), stdout);
+ fputs(_(" -l, --long-explanation an example of very verbose, and chatty option\n"
+ " description on two, or multiple lines, where the\n"
+ " consecutive lines are intended by two spaces"), stdout);
+ fputs(_(" -f, --foobar next option description resets indent"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(25)); /* char offset to align option descriptions */
- printf(USAGE_MAN_TAIL("fixme-command-name(1)"));
+ fprintf(stdout, USAGE_HELP_OPTIONS(25)); /* char offset to align option descriptions */
+ fprintf(stdout, USAGE_MAN_TAIL("fixme-command-name(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Tell the kernel about the existence of a specified partition.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("addpart(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("addpart(8)"));
exit(EXIT_SUCCESS);
}
size_t i;
fputs(USAGE_HEADER, stdout);
- printf(_(
+ fprintf(stdout, _(
" %1$s [-v|-q] commands devices\n"
" %1$s --report [devices]\n"
" %1$s -h|-V\n"
), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
- puts( _("Call block device ioctls from the command line."));
+ fputs( _("Call block device ioctls from the command line."), stdout);
fputs(USAGE_OPTIONS, stdout);
- puts( _(" -q quiet mode"));
- puts( _(" -v verbose mode"));
- puts( _(" --report print report for specified (or all) devices"));
+ fputs( _(" -q quiet mode"), stdout);
+ fputs( _(" -v verbose mode"), stdout);
+ fputs( _(" --report print report for specified (or all) devices"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(16));
+ fprintf(stdout, USAGE_HELP_OPTIONS(16));
fputs(USAGE_SEPARATOR, stdout);
- puts( _("Available commands:"));
- printf(_(" %-25s get size in 512-byte sectors\n"), "--getsz");
+ fputs(_("Available commands:"), stdout);
+ fprintf(stdout, _(" %-25s get size in 512-byte sectors\n"), "--getsz");
for (i = 0; i < ARRAY_SIZE(bdcms); i++) {
if (bdcms[i].argname)
- printf(" %s %-*s %s\n", bdcms[i].name,
+ fprintf(stdout, " %s %-*s %s\n", bdcms[i].name,
(int)(24 - strlen(bdcms[i].name)),
bdcms[i].argname, _(bdcms[i].help));
else
- printf(" %-25s %s\n", bdcms[i].name,
+ fprintf(stdout, " %-25s %s\n", bdcms[i].name,
_(bdcms[i].help));
}
- printf(USAGE_MAN_TAIL("blockdev(8)"));
+ fprintf(stdout, USAGE_MAN_TAIL("blockdev(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -r, --read-only forced open cfdisk in read-only mode\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("cfdisk(8)"));
+ fprintf(out, USAGE_MAN_TAIL("cfdisk(8)"));
exit(EXIT_SUCCESS);
}
fputs(_("Tell the kernel to forget about a specified partition.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("delpart(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("delpart(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -n, --no-verify disable the verification after the format\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(19));
- printf(USAGE_MAN_TAIL("fdformat(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(19));
+ fprintf(out, USAGE_MAN_TAIL("fdformat(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -S, --sectors <number> specify the number of sectors per track\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(31));
+ fprintf(out, USAGE_HELP_OPTIONS(31));
list_available_columns(out);
- printf(USAGE_MAN_TAIL("fdisk(8)"));
+ fprintf(out, USAGE_MAN_TAIL("fdisk(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -V explain what is being done\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf( " -?, --help %s\n", USAGE_OPTSTR_HELP);
- printf( " --version %s\n", USAGE_OPTSTR_VERSION);
+ fprintf(out, " -?, --help %s\n", USAGE_OPTSTR_HELP);
+ fprintf(out, " --version %s\n", USAGE_OPTSTR_VERSION);
fputs(USAGE_SEPARATOR, out);
fputs(_("See the specific fsck.* commands for available fs-options."), out);
- printf(USAGE_MAN_TAIL("fsck(8)"));
+ fprintf(out, USAGE_MAN_TAIL("fsck(8)"));
exit(FSCK_EX_OK);
}
fputs(_(" -b, --blocksize <size> use this blocksize, defaults to page size\n"), out);
fputs(_(" --extract[=<dir>] test uncompression, optionally extract into <dir>\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("fsck.cramfs(8)"));
+ fprintf(out, USAGE_MAN_TAIL("fsck.cramfs(8)"));
exit(FSCK_EX_OK);
}
fputs(_(" -m, --uncleared activate mode not cleared warnings\n"), out);
fputs(_(" -f, --force force check\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(18));
- printf(USAGE_MAN_TAIL("fsck.minix(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(18));
+ fprintf(out, USAGE_MAN_TAIL("fsck.minix(8)"));
exit(FSCK_EX_OK);
}
fputs(_(" -d, --divisor=<number> divide the amount of bytes by <number>\n"), stdout);
fputs(_(" -x, --sectors show sector count and size\n"), stdout);
- printf(USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("isosize(8)"));
+ fprintf(stdout, USAGE_HELP_OPTIONS(25));
+ fprintf(stdout, USAGE_MAN_TAIL("isosize(8)"));
exit(EXIT_SUCCESS);
}
" -l this option is silently ignored\n"
" --lock[=<mode>] use exclusive device lock (yes, no or nonblock)\n"
));
- printf(USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
- printf(USAGE_MAN_TAIL("mkfs.bfs(8)"));
+ fprintf(out, USAGE_MAN_TAIL("mkfs.bfs(8)"));
exit(EXIT_SUCCESS);
}
fprintf(out, _(" <size> number of blocks to be used on the device\n"));
fprintf(out, _(" -V, --verbose explain what is being done;\n"
" specifying -V more than once will cause a dry-run\n"));
- printf(USAGE_HELP_OPTIONS(20));
+ fprintf(out, USAGE_HELP_OPTIONS(20));
- printf(USAGE_MAN_TAIL("mkfs(8)"));
+ fprintf(out, USAGE_MAN_TAIL("mkfs(8)"));
exit(EXIT_SUCCESS);
}
static void __attribute__((__noreturn__)) usage(void)
{
fputs(USAGE_HEADER, stdout);
- printf(_(" %s [-h] [-v] [-b blksize] [-e edition] [-N endian] [-i file] [-n name] dirname outfile\n"),
+ fprintf(stdout, _(" %s [-h] [-v] [-b blksize] [-e edition] [-N endian] [-i file] [-n name] dirname outfile\n"),
program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
- puts(_("Make compressed ROM file system."));
+ fputs(_("Make compressed ROM file system."), stdout);
fputs(USAGE_OPTIONS, stdout);
- puts(_( " -v be verbose"));
- puts(_( " -E make all warnings errors (non-zero exit status)"));
- puts(_( " -b blksize use this blocksize, must equal page size"));
- puts(_( " -e edition set edition number (part of fsid)"));
- printf(_(" -N endian set cramfs endianness (%s|%s|%s), default %s\n"), "big", "little", "host", "host");
- puts(_( " -i file insert a file image into the filesystem"));
- puts(_( " -n name set name of cramfs filesystem"));
- printf(_(" -p pad by %d bytes for boot code\n"), PAD_SIZE);
- puts(_( " -s sort directory entries (old option, ignored)"));
- puts(_( " -z make explicit holes"));
- puts(_( " -l[=<mode>] use exclusive device lock (yes, no or nonblock)"));
- puts(_( " dirname root of the filesystem to be compressed"));
- puts(_( " outfile output file"));
+ fputs(_( " -v be verbose"), stdout);
+ fputs(_( " -E make all warnings errors (non-zero exit status)"), stdout);
+ fputs(_( " -b blksize use this blocksize, must equal page size"), stdout);
+ fputs(_( " -e edition set edition number (part of fsid)"), stdout);
+ fprintf(stdout, _(" -N endian set cramfs endianness (%s|%s|%s), default %s\n"), "big", "little", "host", "host");
+ fputs(_( " -i file insert a file image into the filesystem"), stdout);
+ fputs(_( " -n name set name of cramfs filesystem"), stdout);
+ fprintf(stdout, _(" -p pad by %d bytes for boot code\n"), PAD_SIZE);
+ fputs(_( " -s sort directory entries (old option, ignored)"), stdout);
+ fputs(_( " -z make explicit holes"), stdout);
+ fputs(_( " -l[=<mode>] use exclusive device lock (yes, no or nonblock)"), stdout);
+ fputs(_( " dirname root of the filesystem to be compressed"), stdout);
+ fputs(_( " outfile output file"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("mkfs.cramfs(8)"));
+ fprintf(stdout, USAGE_HELP_OPTIONS(16));
+ fprintf(stdout, USAGE_MAN_TAIL("mkfs.cramfs(8)"));
exit(MKFS_EX_OK);
}
fprintf(out, _(
" --lock[=<mode>] use exclusive device lock (%s, %s or %s)\n"), "yes", "no", "nonblock");
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("mkfs.minix(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_MAN_TAIL("mkfs.minix(8)"));
exit(MKFS_EX_OK);
}
fprintf(out,
_(" --lock[=<mode>] use exclusive device lock (%s, %s or %s)\n"), "yes", "no", "nonblock");
- printf(USAGE_HELP_OPTIONS(27));
+ fprintf(out, USAGE_HELP_OPTIONS(27));
- printf(USAGE_MAN_TAIL("mkswap(8)"));
+ fprintf(out, USAGE_MAN_TAIL("mkswap(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -v, --verbose verbose mode\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < NCOLS; i++)
fprintf(out, " %10s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("partx(8)"));
+ fprintf(out, USAGE_MAN_TAIL("partx(8)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_OPTIONS, out);
fputs(_(" -q, --query set query mode\n"), out);
fputs(_(" -a, --all query all raw devices\n"), out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("raw(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("raw(8)"));
exit(EXIT_SUCCESS);
}
fputs(_("Tell the kernel about the new size of a partition.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("resizepart(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("resizepart(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -u, --unit S deprecated, only sector unit is supported\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf( " -h, --help %s\n", USAGE_OPTSTR_HELP);
- printf( " -v, --version %s\n", USAGE_OPTSTR_VERSION);
+ fprintf(out, " -h, --help %s\n", USAGE_OPTSTR_HELP);
+ fprintf(out, " -v, --version %s\n", USAGE_OPTSTR_VERSION);
list_available_columns(out);
- printf(USAGE_MAN_TAIL("sfdisk(8)"));
+ fprintf(out, USAGE_MAN_TAIL("sfdisk(8)"));
exit(EXIT_SUCCESS);
}
DBG(MISC, ul_debug("bye! [rc=%d]", rc));
return rc == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
-
fputs(_(" -L, --label <label> specify a new label\n"
" -U, --uuid <uuid> specify a new uuid\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(21));
- printf(USAGE_MAN_TAIL("swaplabel(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_MAN_TAIL("swaplabel(8)"));
exit(EXIT_SUCCESS);
}
}
return rc ? EXIT_FAILURE : EXIT_SUCCESS;
}
-
fputs(_(" -l, --list-shells print list of shells and exit\n"), fp);
fputs(USAGE_SEPARATOR, fp);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(fp, USAGE_HELP_OPTIONS(22));
- printf(USAGE_MAN_TAIL("chsh(1)"));
+ fprintf(fp, USAGE_MAN_TAIL("chsh(1)"));
exit(EXIT_SUCCESS);
}
" notime|short|full|iso\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
- printf(USAGE_MAN_TAIL("last(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_MAN_TAIL("last(1)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
fputs(_(" --btmp-file <path> set an alternate path for btmp\n"), out);
fputs(_(" --lastlog <path> set an alternate path for lastlog\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(coldescs); i++)
fprintf(out, " %14s %s\n", coldescs[i].name, _(coldescs[i].help));
- printf(USAGE_MAN_TAIL("lslogins(1)"));
+ fprintf(out, USAGE_MAN_TAIL("lslogins(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Log in to a new group.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("newgrp(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("newgrp(1)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_OPTIONS, out);
fputs(_(" -c, --command <command> does nothing (for compatibility with su -c)\n"), out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("nologin(8)"));
+ fprintf(out, USAGE_MAN_TAIL("nologin(8)"));
exit(EXIT_FAILURE);
}
out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("sulogin(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_MAN_TAIL("sulogin(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -f, --follow output appended data as the file grows\n"), out);
fputs(_(" -r, --reverse write back dumped data into utmp file\n"), out);
fputs(_(" -o, --output <file> write to file instead of standard output\n"), out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
- printf(USAGE_MAN_TAIL("utmpdump(1)"));
+ fprintf(out, USAGE_MAN_TAIL("utmpdump(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Edit the password or group file.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("vipw(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("vipw(8)"));
exit(EXIT_SUCCESS);
}
fputs(_( " -D, --no-part-details don't print info from partition table\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(28));
+ fprintf(out, USAGE_HELP_OPTIONS(28));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<size> and <offset>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<size> and <offset>")));
fputs(USAGE_ARG_SEPARATOR, out);
fputs(_(" <dev> specify device(s) to probe (default: all devices)\n"), out);
- printf(USAGE_MAN_TAIL("blkid(8)"));
+ fprintf(out, USAGE_MAN_TAIL("blkid(8)"));
exit(EXIT_SUCCESS);
}
" %s\n", USAGE_COLORS_DEFAULT);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(23));
- printf(USAGE_MAN_TAIL("cal(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(23));
+ fprintf(out, USAGE_MAN_TAIL("cal(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -o, --offset <num> offset for range operations, in bytes\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(23));
+ fprintf(out, USAGE_HELP_OPTIONS(23));
fputs(_("\nAvailable values for advice:\n"), out);
for (i = 0; i < ARRAY_SIZE(advices); i++) {
advices[i].name);
}
- printf(USAGE_MAN_TAIL("fadvise(1)"));
+ fprintf(out, USAGE_MAN_TAIL("fadvise(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -r, --raw use raw output format\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(23));
+ fprintf(out, USAGE_HELP_OPTIONS(23));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %22s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("fincore(1)"));
+ fprintf(out, USAGE_MAN_TAIL("fincore(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Find a filesystem by label or UUID.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("findfs(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("findfs(8)"));
exit(FINDFS_SUCCESS);
}
puts(dev);
return FINDFS_SUCCESS;
}
-
fputs(_(" --vfs-all print all VFS options\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("findmnt(8)"));
+ fprintf(out, USAGE_MAN_TAIL("findmnt(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -T, --test test for getopt(1) version\n"), stdout);
fputs(_(" -u, --unquoted do not quote the output\n"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(31));
- printf(USAGE_MAN_TAIL("getopt(1)"));
+ fprintf(stdout, USAGE_HELP_OPTIONS(31));
+ fprintf(stdout, USAGE_MAN_TAIL("getopt(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --skip-reflinks skip already cloned files (enabled on --reflink)\n"), out);
#endif
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(28));
- printf(USAGE_MAN_TAIL("hardlink(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(28));
+ fprintf(out, USAGE_MAN_TAIL("hardlink(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --verbose print pids that will be signaled\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("kill(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_MAN_TAIL("kill(1)"));
exit(EXIT_SUCCESS);
}
return KILL_EXIT_SOMEOK; /* partial success */
}
-
#endif
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("logger(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_MAN_TAIL("logger(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -t, --terminate <char> define the string-termination character\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("look(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_MAN_TAIL("look(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -z, --zoned print zone related information\n"), out);
fputs(_(" --sysroot <dir> use specified directory as system root\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %12s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("lsblk(8)"));
+ fprintf(out, USAGE_MAN_TAIL("lsblk(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -c, --cpu-clock <pid> also display CPU clock of specified process\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(29));
+ fprintf(out, USAGE_HELP_OPTIONS(29));
fputs(USAGE_COLUMNS, out);
"<boolean>",
_(infos[i].help));
- printf(USAGE_MAN_TAIL("lslocks(1)"));
+ fprintf(out, USAGE_MAN_TAIL("lslocks(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -u, --notruncate don't truncate text in columns\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("lslocks(8)"));
+ fprintf(out, USAGE_MAN_TAIL("lslocks(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -v, --verbose explain what is being done\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(23));
+ fprintf(out, USAGE_HELP_OPTIONS(23));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<num>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<num>")));
- printf(USAGE_MAN_TAIL("mcookie(1)"));
+ fprintf(out, USAGE_MAN_TAIL("mcookie(1)"));
exit(EXIT_SUCCESS);
}
fputs(_( " -Z, --context print any security context of each file \n"), out);
#endif
- printf(USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
- printf(USAGE_MAN_TAIL("namei(1)"));
+ fprintf(out, USAGE_MAN_TAIL("namei(1)"));
exit(EXIT_SUCCESS);
}
return rc;
}
-
static void __attribute__((__noreturn__)) usage(void)
{
fputs(USAGE_HEADER, stdout);
- printf(_(" %s [options] [--set <size>] [--] [command]\n"), program_invocation_short_name);
- printf(_(" %s [options] --get\n"), program_invocation_short_name);
+ fprintf(stdout, _(" %s [options] [--set <size>] [--] [command]\n"), program_invocation_short_name);
+ fprintf(stdout, _(" %s [options] --get\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
/* TRANSLATORS: 'command' refers to a program argument */
- puts(_("Set or examine pipe buffer sizes and optionally execute command."));
+ fputs(_("Set or examine pipe buffer sizes and optionally execute command."), stdout);
fputs(USAGE_OPTIONS, stdout);
- puts(_(" -g, --get examine pipe buffers"));
+ fputs(_(" -g, --get examine pipe buffers"), stdout);
/* TRANSLATORS: '%s' refers to a system file */
- printf(
+ fprintf(stdout,
_(" -s, --set <size> set pipe buffer sizes\n"
" size defaults to %s\n"),
PIPESZ_DEFAULT_SIZE_FILE);
fputs(USAGE_SEPARATOR, stdout);
- puts(_(" -f, --file <path> act on a file"));
- puts(_(" -n, --fd <num> act on a file descriptor"));
- puts(_(" -i, --stdin act on standard input"));
- puts(_(" -o, --stdout act on standard output"));
- puts(_(" -e, --stderr act on standard error"));
+ fputs(_(" -f, --file <path> act on a file"), stdout);
+ fputs(_(" -n, --fd <num> act on a file descriptor"), stdout);
+ fputs(_(" -i, --stdin act on standard input"), stdout);
+ fputs(_(" -o, --stdout act on standard output"), stdout);
+ fputs(_(" -e, --stderr act on standard error"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- puts(_(" -c, --check do not continue after an error"));
- puts(_(" -q, --quiet do not warn of non-fatal errors"));
- puts(_(" -v, --verbose provide detailed output"));
+ fputs(_(" -c, --check do not continue after an error"), stdout);
+ fputs(_(" -q, --quiet do not warn of non-fatal errors"), stdout);
+ fputs(_(" -v, --verbose provide detailed output"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(20));
+ fprintf(stdout, USAGE_HELP_OPTIONS(20));
- printf(USAGE_MAN_TAIL("pipesz(1)"));
+ fprintf(stdout, USAGE_MAN_TAIL("pipesz(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -o, --no-overwrite don't overwrite existing files\n"), out);
fputs(_(" -i, --interactive prompt before overwrite\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(21));
- printf(USAGE_MAN_TAIL("rename(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_MAN_TAIL("rename(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -d, --debug run in debugging mode\n"), out);
fputs(_(" -q, --quiet turn on quiet mode\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("uuidd(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_MAN_TAIL("uuidd(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -r, --random generate random-based uuid\n"), out);
fputs(_(" -t, --time generate time-based uuid\n"), out);
fputs(_(" -n, --namespace <ns> generate hash-based uuid in this namespace\n"), out);
- printf(_(" available namespaces: %s\n"), "@dns @url @oid @x500");
+ fprintf(out, _(" available namespaces: %s\n"), "@dns @url @oid @x500");
fputs(_(" -N, --name <name> generate hash-based uuid from this name\n"), out);
fputs(_(" -m, --md5 generate md5 hash\n"), out);
fputs(_(" -C, --count <num> generate more uuids in loop\n"), out);
fputs(_(" -s, --sha1 generate sha1 hash\n"), out);
fputs(_(" -x, --hex interpret name as hex string\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(21));
- printf(USAGE_MAN_TAIL("uuidgen(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_MAN_TAIL("uuidgen(1)"));
exit(EXIT_SUCCESS);
}
fprintf(stdout, _(" %s [options] <uuid ...>\n"), program_invocation_short_name);
fputs(USAGE_OPTIONS, stdout);
- puts(_(" -J, --json use JSON output format"));
- puts(_(" -n, --noheadings don't print headings"));
- puts(_(" -o, --output <list> COLUMNS to display (see below)"));
- puts(_(" -r, --raw use the raw output format"));
- printf(USAGE_HELP_OPTIONS(24));
+ fputs(_(" -J, --json use JSON output format"), stdout);
+ fputs(_(" -n, --noheadings don't print headings"), stdout);
+ fputs(_(" -o, --output <list> COLUMNS to display (see below)"), stdout);
+ fputs(_(" -r, --raw use the raw output format"), stdout);
+ fprintf(stdout, USAGE_HELP_OPTIONS(24));
fputs(USAGE_COLUMNS, stdout);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(stdout, " %8s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("uuidparse(1)"));
+ fprintf(stdout, USAGE_MAN_TAIL("uuidparse(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -l output effective lookup paths\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("whereis(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("whereis(1)"));
exit(EXIT_SUCCESS);
}
size_t i;
fputs(USAGE_HEADER, stdout);
- printf(_(" %s [options] <device>\n"), program_invocation_short_name);
+ fprintf(stdout, _(" %s [options] <device>\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
- puts(_("Wipe signatures from a device."));
+ fputs(_("Wipe signatures from a device."), stdout);
fputs(USAGE_OPTIONS, stdout);
- puts(_(" -a, --all wipe all magic strings (BE CAREFUL!)"));
- puts(_(" -b, --backup create a signature backup in $HOME"));
- puts(_(" -f, --force force erasure"));
- puts(_(" -i, --noheadings don't print headings"));
- puts(_(" -J, --json use JSON output format"));
- puts(_(" -n, --no-act do everything except the actual write() call"));
- puts(_(" -o, --offset <num> offset to erase, in bytes"));
- puts(_(" -O, --output <list> COLUMNS to display (see below)"));
- puts(_(" -p, --parsable print out in parsable instead of printable format"));
- puts(_(" -q, --quiet suppress output messages"));
- puts(_(" -t, --types <list> limit the set of filesystem, RAIDs or partition tables"));
- printf(
+ fputs(_(" -a, --all wipe all magic strings (BE CAREFUL!)"), stdout);
+ fputs(_(" -b, --backup create a signature backup in $HOME"), stdout);
+ fputs(_(" -f, --force force erasure"), stdout);
+ fputs(_(" -i, --noheadings don't print headings"), stdout);
+ fputs(_(" -J, --json use JSON output format"), stdout);
+ fputs(_(" -n, --no-act do everything except the actual write() call"), stdout);
+ fputs(_(" -o, --offset <num> offset to erase, in bytes"), stdout);
+ fputs(_(" -O, --output <list> COLUMNS to display (see below)"), stdout);
+ fputs(_(" -p, --parsable print out in parsable instead of printable format"), stdout);
+ fputs(_(" -q, --quiet suppress output messages"), stdout);
+ fputs(_(" -t, --types <list> limit the set of filesystem, RAIDs or partition tables"), stdout);
+ fprintf(stdout,
_(" --lock[=<mode>] use exclusive device lock (%s, %s or %s)\n"), "yes", "no", "nonblock");
- printf(USAGE_HELP_OPTIONS(21));
+ fprintf(stdout, USAGE_HELP_OPTIONS(21));
fputs(USAGE_ARGUMENTS, stdout);
- printf(USAGE_ARG_SIZE(_("<num>")));
+ fprintf(stdout, USAGE_ARG_SIZE(_("<num>")));
fputs(USAGE_COLUMNS, stdout);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(stdout, " %8s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("wipefs(8)"));
+ fprintf(stdout, USAGE_MAN_TAIL("wipefs(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -v, --verbose display status information\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
- printf(USAGE_MAN_TAIL("chrt(1)"));
+ fprintf(out, USAGE_MAN_TAIL("chrt(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -u, --uid <uid>... act on already running processes owned by these users\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("ionice(1)"));
+ fprintf(out, USAGE_MAN_TAIL("ionice(1)"));
exit(EXIT_SUCCESS);
}
" -p, --pid operate on existing given pid\n"
" -c, --cpu-list display and specify cpus in list format\n"
));
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
fputs(USAGE_SEPARATOR, out);
fprintf(out, _(
" e.g. 0-31:2 is equivalent to mask 0x55555555\n"),
program_invocation_short_name);
- printf(USAGE_MAN_TAIL("taskset(1)"));
+ fprintf(out, USAGE_MAN_TAIL("taskset(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -R, --reset-on-fork set reset-on-fork flag\n"), out);
fputs(_(" -v, --verbose display status information\n"), out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
fputs(USAGE_SEPARATOR, out);
fputs(_("Utilization value range is [0:1024]. Use special -1 value to "
"reset to system's default.\n"), out);
- printf(USAGE_MAN_TAIL("uclampset(1)"));
+ fprintf(out, USAGE_MAN_TAIL("uclampset(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -z, --zeroout zero-fill rather than discard\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<num>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<num>")));
- printf(USAGE_MAN_TAIL("blkdiscard(8)"));
+ fprintf(out, USAGE_MAN_TAIL("blkdiscard(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -t, --type <type> command type\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
fputs(USAGE_ARGUMENTS, out);
fputs(_(" <type> is a command type, available types:\n"), out);
print_pr_type(out);
- printf(USAGE_MAN_TAIL("blkpr(8)"));
+ fprintf(out, USAGE_MAN_TAIL("blkpr(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -f, --force enforce on block devices used by the system\n"), out);
fputs(_(" -v, --verbose display more details\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<sector> and <sectors>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<sector> and <sectors>")));
- printf(USAGE_MAN_TAIL("blkzone(8)"));
+ fprintf(out, USAGE_MAN_TAIL("blkzone(8)"));
exit(EXIT_SUCCESS);
}
" -p, --dispatch <mode> set dispatching mode\n"
" -r, --rescan trigger rescan of cpus\n"
), stdout);
- printf(USAGE_HELP_OPTIONS(31));
+ fprintf(stdout, USAGE_HELP_OPTIONS(31));
- printf(USAGE_MAN_TAIL("chcpu(8)"));
+ fprintf(stdout, USAGE_MAN_TAIL("chcpu(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -b, --blocks use memory blocks\n"), out);
fputs(_(" -z, --zone <name> select memory zone (see below)\n"), out);
fputs(_(" -v, --verbose verbose output\n"), out);
- printf(USAGE_HELP_OPTIONS(20));
+ fprintf(out, USAGE_HELP_OPTIONS(20));
fputs(_("\nSupported zones:\n"), out);
for (i = 0; i < ARRAY_SIZE(zone_names); i++)
fprintf(out, " %s\n", zone_names[i]);
- printf(USAGE_MAN_TAIL("chmem(8)"));
+ fprintf(out, USAGE_MAN_TAIL("chmem(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -n, --adjust <num> specify the adjust score value\n"), out);
fputs(_(" -p, --pid <num> process ID\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("choom(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_MAN_TAIL("choom(1)"));
exit(EXIT_SUCCESS);
}
fprintf(out, _("Set the function of the Ctrl-Alt-Del combination.\n"));
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("ctrlaltdel(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("ctrlaltdel(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --until <time> display the lines until the specified time\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(29));
+ fprintf(out, USAGE_HELP_OPTIONS(29));
fputs(_("\nSupported log facilities:\n"), out);
for (i = 0; i < ARRAY_SIZE(level_names); i++)
fprintf(out, " %7s - %s\n",
level_names[i].name,
_(level_names[i].help));
- printf(USAGE_MAN_TAIL("dmesg(1)"));
+ fprintf(out, USAGE_MAN_TAIL("dmesg(1)"));
exit(EXIT_SUCCESS);
}
out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(29));
+ fprintf(out, USAGE_HELP_OPTIONS(29));
fputs(_("\nBy default tries -r, -s, -f, and -q in order until success.\n"), out);
- printf(USAGE_MAN_TAIL("eject(1)"));
+ fprintf(out, USAGE_MAN_TAIL("eject(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -v, --verbose verbose mode\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<num>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<num>")));
- printf(USAGE_MAN_TAIL("fallocate(1)"));
+ fprintf(out, USAGE_MAN_TAIL("fallocate(1)"));
exit(EXIT_SUCCESS);
}
static void __attribute__((__noreturn__)) usage(void)
{
fputs(USAGE_HEADER, stdout);
- printf(
+ fprintf(stdout,
_(" %1$s [options] <file>|<directory> <command> [<argument>...]\n"
" %1$s [options] <file>|<directory> -c <command>\n"
" %1$s [options] <file descriptor number>\n"),
fputs(_( " -F, --no-fork execute command without forking\n"), stdout);
fputs(_( " --verbose increase verbosity\n"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("flock(1)"));
+ fprintf(stdout, USAGE_HELP_OPTIONS(26));
+ fprintf(stdout, USAGE_MAN_TAIL("flock(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -f, --freeze freeze the filesystem\n"), out);
fputs(_(" -u, --unfreeze unfreeze the filesystem\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(19));
- printf(USAGE_MAN_TAIL("fsfreeze(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(19));
+ fprintf(out, USAGE_MAN_TAIL("fsfreeze(8)"));
exit(EXIT_SUCCESS);
}
close(fd);
return rc;
}
-
fputs(_(" -n, --dry-run does everything, but trim\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(21));
+ fprintf(out, USAGE_HELP_OPTIONS(21));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<num>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<num>")));
- printf(USAGE_MAN_TAIL("fstrim(8)"));
+ fprintf(out, USAGE_MAN_TAIL("fstrim(8)"));
exit(EXIT_SUCCESS);
}
puts(_(" -v, --verbose display more details"));
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(33));
+ fprintf(stdout, USAGE_HELP_OPTIONS(33));
#ifdef __linux__
fputs(USAGE_ARGUMENTS, stdout);
- puts(_(" <param> is either a numeric RTC parameter value or one of these aliases:"));
+ fputs(_(" <param> is either a numeric RTC parameter value or one of these aliases:"), stdout);
while (param->name) {
- printf(_(" - %1$s: %2$s (0x%3$x)\n"), param->name, param->help, param->id);
+ fprintf(stdout, _(" - %1$s: %2$s (0x%3$x)\n"), param->name, param->help, param->id);
param++;
}
- puts(_(" See Kernel's include/uapi/linux/rtc.h for parameters and values."));
+ fputs(_(" See Kernel's include/uapi/linux/rtc.h for parameters and values."), stdout);
fputs(USAGE_ARG_SEPARATOR, stdout);
- puts(_(" <param> and <value> accept hexadecimal values if prefixed with 0x, otherwise decimal."));
+ fputs(_(" <param> and <value> accept hexadecimal values if prefixed with 0x, otherwise decimal."), stdout);
#endif
- printf(USAGE_MAN_TAIL("hwclock(8)"));
+ fprintf(stdout, USAGE_MAN_TAIL("hwclock(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -p, --mode <mode> permission for the resource (default is 0644)\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<size>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<size>")));
- printf(USAGE_MAN_TAIL("ipcmk(1)"));
+ fprintf(out, USAGE_MAN_TAIL("ipcmk(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -v, --verbose explain what is being done\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(28));
- printf(USAGE_MAN_TAIL("ipcrm(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(28));
+ fprintf(out, USAGE_MAN_TAIL("ipcrm(1)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_OPTIONS, out);
fputs(_(" -i, --id <id> print details on resource identified by <id>\n"), out);
- printf(USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
fputs(USAGE_SEPARATOR, out);
fputs(_("Resource options:\n"), out);
fputs(_(" -u, --summary show status summary\n"), out);
fputs(_(" --human show sizes in human-readable format\n"), out);
fputs(_(" -b, --bytes show sizes in bytes\n"), out);
- printf(USAGE_MAN_TAIL("ipcs(1)"));
+ fprintf(out, USAGE_MAN_TAIL("ipcs(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -s, --sort <column> specify sort column\n"), stdout);
fputs(_(" -S, --softirq show softirqs instead of interrupts\n"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(stdout, USAGE_HELP_OPTIONS(22));
fputs(_("\nThe following interactive key commands are valid:\n"), stdout);
fputs(_(" i sort by IRQ\n"), stdout);
fputs(USAGE_COLUMNS, stdout);
irq_print_columns(stdout, 0);
- printf(USAGE_MAN_TAIL("irqtop(1)"));
+ fprintf(stdout, USAGE_MAN_TAIL("irqtop(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -i, --iflag [-]<iflag> set input mode flag\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
fputs(_("\nKnown <ldisc> names:\n"), out);
print_table(out, ld_discs);
fputs(_("\nKnown <iflag> names:\n"), out);
print_table(out, ld_iflags);
- printf(USAGE_MAN_TAIL("ldattach(8)"));
+ fprintf(out, USAGE_MAN_TAIL("ldattach(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --raw use raw --list output format\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(31));
+ fprintf(out, USAGE_HELP_OPTIONS(31));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %12s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("losetup(8)"));
+ fprintf(out, USAGE_MAN_TAIL("losetup(8)"));
exit(EXIT_SUCCESS);
}
loopcxt_deinit(&lc);
return res ? EXIT_FAILURE : EXIT_SUCCESS;
}
-
fputs(_(" --hierarchic[=when] use subsections in summary (auto, never, always)\n"), out);
fputs(_(" --output-all print all available columns for -e, -p or -C\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
fputs(_("\nAvailable output columns for -e or -p:\n"), out);
for (i = 0; i < ARRAY_SIZE(coldescs_cpu); i++)
for (i = 0; i < ARRAY_SIZE(coldescs_cache); i++)
fprintf(out, " %13s %s\n", coldescs_cache[i].name, _(coldescs_cache[i].help));
- printf(USAGE_MAN_TAIL("lscpu(1)"));
+ fprintf(out, USAGE_MAN_TAIL("lscpu(1)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
fprintf(out, _("\nGeneric columns:\n"));
for (i = COLDESC_IDX_GEN_FIRST; i <= COLDESC_IDX_GEN_LAST; i++)
for (i = COLDESC_IDX_SUM_FIRST; i <= COLDESC_IDX_SUM_LAST; i++)
fprintf(out, " %14s %s\n", coldescs[i].name, _(coldescs[i].help));
- printf(USAGE_MAN_TAIL("lsipc(1)"));
+ fprintf(out, USAGE_MAN_TAIL("lsipc(1)"));
exit(EXIT_SUCCESS);
}
return EXIT_SUCCESS;
}
-
printf(_(" %s [options]\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
- puts(_("Utility to display kernel interrupt information."));
+ fputs(_("Utility to display kernel interrupt information."), stdout);
fputs(USAGE_OPTIONS, stdout);
fputs(_(" -J, --json use JSON output format\n"), stdout);
fputs(_(" -s, --sort <column> specify sort column\n"), stdout);
fputs(_(" -S, --softirq show softirqs instead of interrupts\n"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(stdout, USAGE_HELP_OPTIONS(22));
fputs(USAGE_COLUMNS, stdout);
irq_print_columns(stdout, 1);
- printf(USAGE_MAN_TAIL("lsirq(1)"));
+ fprintf(stdout, USAGE_MAN_TAIL("lsirq(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --summary[=when] print summary information (never,always or only)\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(22));
+ fprintf(out, USAGE_HELP_OPTIONS(22));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(coldescs); i++)
fprintf(out, " %10s %s\n", coldescs[i].name, _(coldescs[i].help));
- printf(USAGE_MAN_TAIL("lsmem(1)"));
+ fprintf(out, USAGE_MAN_TAIL("lsmem(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -T, --tree <rel> use tree format (parent, owner, or process)\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("lsns(8)"));
+ fprintf(out, USAGE_MAN_TAIL("lsns(8)"));
exit(EXIT_SUCCESS);
}
FILE *out = stdout;
fputs(USAGE_HEADER, out);
- printf(_(
+ fprintf(out, _(
" %1$s [-lhV]\n"
" %1$s -a [options]\n"
" %1$s [options] [--source] <source> | [--target] <directory>\n"
fputs(_(" -N, --namespace <ns> perform mount in another namespace\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
fputs(USAGE_SEPARATOR, out);
fputs(_("Source:\n"), out);
fputs(_(" --make-rprivate recursively mark a whole subtree as private\n"), out);
fputs(_(" --make-runbindable recursively mark a whole subtree as unbindable\n"), out);
- printf(USAGE_MAN_TAIL("mount(8)"));
+ fprintf(out, USAGE_MAN_TAIL("mount(8)"));
exit(MNT_EX_SUCCESS);
}
" -d, --fs-devno print maj:min device number of the filesystem\n"
" -x, --devno print maj:min device number of the block device\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(20));
- printf(USAGE_MAN_TAIL("mountpoint(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(20));
+ fprintf(out, USAGE_MAN_TAIL("mountpoint(1)"));
exit(EXIT_SUCCESS);
}
#endif
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("nsenter(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_MAN_TAIL("nsenter(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Change the root filesystem.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("pivot_root(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("pivot_root(8)"));
exit(EXIT_SUCCESS);
}
" --raw use the raw output format\n"
" --verbose verbose output\n"
), out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(_("\nResources:\n"), out);
fputs(_(" -c, --core maximum size of core files created\n"
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("prlimit(1)"));
+ fprintf(out, USAGE_MAN_TAIL("prlimit(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -r, --reset reset all the counters (root only)\n"), out);
fputs(_(" -n, --no-auto disable byte order auto-detection\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(27));
- printf(USAGE_MAN_TAIL("readprofile(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(27));
+ fprintf(out, USAGE_MAN_TAIL("readprofile(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -g, --pgrp interpret arguments as process group ID\n"), out);
fputs(_(" -u, --user interpret arguments as username or user ID\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
- printf(USAGE_MAN_TAIL("renice(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_MAN_TAIL("renice(1)"));
exit(EXIT_SUCCESS);
}
if (getprio(which, who, &oldprio) != 0)
return 1;
-
+
newprio = prio; // if not relative, set absolute priority
if (relative)
fputs(_(" -r, --raw use the raw output format\n"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(stdout, USAGE_HELP_OPTIONS(24));
fputs(USAGE_COLUMNS, stdout);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fputs(_(" -v, --verbose verbose messages\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("rtcwake(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_MAN_TAIL("rtcwake(8)"));
exit(EXIT_SUCCESS);
}
{
fputs(USAGE_HEADER, stdout);
if (!archwrapper)
- printf(_(" %s [<arch>] [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
+ fprintf(stdout, _(" %s [<arch>] [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
else
- printf(_(" %s [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
+ fprintf(stdout, _(" %s [options] [<program> [<argument>...]]\n"), program_invocation_short_name);
fputs(USAGE_SEPARATOR, stdout);
fputs(_("Change the reported architecture and set personality flags.\n"), stdout);
}
fputs(USAGE_SEPARATOR, stdout);
- printf(USAGE_HELP_OPTIONS(26));
- printf(USAGE_MAN_TAIL("setarch(8)"));
+ fprintf(stdout, USAGE_HELP_OPTIONS(26));
+ fprintf(stdout, USAGE_MAN_TAIL("setarch(8)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_OPTIONS, out);
fputs(_(" -f, --foregound Make a foreground process group\n"), out);
- printf(USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("setpgid(1)"));
+ fprintf(out, USAGE_MAN_TAIL("setpgid(1)"));
exit(EXIT_SUCCESS);
}
" HOME, SHELL, USER, LOGNAME and PATH\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(29));
+ fprintf(out, USAGE_HELP_OPTIONS(29));
fputs(USAGE_SEPARATOR, out);
fputs(_(" This tool can be dangerous. Read the manpage, and be careful.\n"), out);
- printf(USAGE_MAN_TAIL("setpriv(1)"));
+ fprintf(out, USAGE_MAN_TAIL("setpriv(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -f, --fork always fork\n"), out);
fputs(_(" -w, --wait wait program to exit, and use the same return\n"), out);
- printf(USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("setsid(1)"));
+ fprintf(out, USAGE_MAN_TAIL("setsid(1)"));
exit(EXIT_SUCCESS);
}
" -v, --verbose verbose mode\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(_("\nThe <spec> parameter:\n" \
" -L <label> LABEL of device to be used\n" \
" <device> name of device to be used\n" \
" <file> name of file to be used\n"), out);
- printf(USAGE_MAN_TAIL("swapoff(8)"));
+ fprintf(out, USAGE_MAN_TAIL("swapoff(8)"));
exit(SWAPOFF_EX_OK);
}
fputs(_(" -v, --verbose verbose mode\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(26));
+ fprintf(out, USAGE_HELP_OPTIONS(26));
fputs(_("\nThe <spec> parameter:\n" \
" -L <label> synonym for LABEL=<label>\n"
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %-5s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("swapon(8)"));
+ fprintf(out, USAGE_MAN_TAIL("swapon(8)"));
exit(EXIT_SUCCESS);
}
fputs(_("Switch to another filesystem as the root of the mount tree.\n"), output);
fputs(USAGE_OPTIONS, output);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("switch_root(8)"));
+ fprintf(output, USAGE_HELP_OPTIONS(16));
+ fprintf(output, USAGE_MAN_TAIL("switch_root(8)"));
exit(EXIT_SUCCESS);
}
execv(init, initargs);
errexec(init);
}
-
fputs(_(" -r, --reset reset the port\n"), out);
fputs(_(" -q, --print-irq <on|off> display current irq setting\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(30));
- printf(USAGE_MAN_TAIL("tunelp(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(30));
+ fprintf(out, USAGE_MAN_TAIL("tunelp(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -N, --namespace <ns> perform umount in another namespace\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("umount(8)"));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_MAN_TAIL("umount(8)"));
exit(MNT_EX_SUCCESS);
}
return (rc < 256) ? rc : 255;
}
-
fputs(_(" --boottime <offset> set clock boottime offset (seconds) in time namespaces\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(27));
- printf(USAGE_MAN_TAIL("unshare(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(27));
+ fprintf(out, USAGE_MAN_TAIL("unshare(1)"));
exit(EXIT_SUCCESS);
}
" -x, --flags-only print only flags table (same as -I -T)\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(24));
+ fprintf(out, USAGE_HELP_OPTIONS(24));
fputs(USAGE_SEPARATOR, out);
if (dflt)
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %13s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("wdctl(8)"));
+ fprintf(out, USAGE_MAN_TAIL("wdctl(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -t, --streams <number> number of compression streams\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(27));
+ fprintf(out, USAGE_HELP_OPTIONS(27));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<size>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<size>")));
fputs(_(" <alg> specify algorithm, supported are:\n"), out);
fputs(_(" lzo, lz4, lz4hc, deflate, 842 and zstd\n"), out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
- printf(USAGE_MAN_TAIL("zramctl(8)"));
+ fprintf(out, USAGE_MAN_TAIL("zramctl(8)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --nice <number> run login with this priority\n"), out);
fputs(_(" --reload reload prompts on running agetty instances\n"), out);
fputs(_(" --list-speeds display supported baud rates\n"), out);
- printf( " --help %s\n", USAGE_OPTSTR_HELP);
- printf( " --version %s\n", USAGE_OPTSTR_VERSION);
- printf(USAGE_MAN_TAIL("agetty(8)"));
+ fprintf(out, " --help %s\n", USAGE_OPTSTR_HELP);
+ fprintf(out, " --version %s\n", USAGE_OPTSTR_VERSION);
+ fprintf(out, USAGE_MAN_TAIL("agetty(8)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_OPTIONS, out);
fputs(_(" -v, --verbose explain what is being done\n"), out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("mesg(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("mesg(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -q, --quiet be quiet\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(31));
- printf(USAGE_MAN_TAIL("script(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(31));
+ fprintf(out, USAGE_MAN_TAIL("script(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -c, --command <command> run command rather than interactive shell\n"), out);
fputs(_(" -d, --divisor <num> speed up or slow down execution with time divisor\n"), out);
fputs(_(" -m, --maxdelay <num> wait at most this many seconds between updates\n"), out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("scriptlive(1)"));
+ fprintf(out, USAGE_MAN_TAIL("scriptlive(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -m, --maxdelay <num> wait at most this many seconds between updates\n"), out);
fputs(_(" -x, --stream <name> stream type (out, in, signal or info)\n"), out);
fputs(_(" -c, --cr-mode <type> CR char mode (auto, never, always)\n"), out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("scriptreplay(1)"));
+ fprintf(out, USAGE_MAN_TAIL("scriptreplay(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" --bfreq[=<number>] bell frequency in Hertz\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf( " --help %s\n", USAGE_OPTSTR_HELP);
- printf( " --version %s\n", USAGE_OPTSTR_VERSION);
+ fprintf(out, " --help %s\n", USAGE_OPTSTR_HELP);
+ fprintf(out, " --version %s\n", USAGE_OPTSTR_VERSION);
- printf(USAGE_MAN_TAIL("setterm(1)"));
+ fprintf(out, USAGE_MAN_TAIL("setterm(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -n, --nobanner do not print banner, works only for root\n"), out);
fputs(_(" -t, --timeout <timeout> write timeout in seconds\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("wall(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_MAN_TAIL("wall(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Send a message to another user.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("write(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("write(1)"));
exit(EXIT_SUCCESS);
}
" -x, --spaces convert tabs to spaces\n"
" -l, --lines NUM buffer at least NUM lines\n"
));
- printf( " -H, --help %s\n", USAGE_OPTSTR_HELP);
- printf( " -V, --version %s\n", USAGE_OPTSTR_VERSION);
+ fprintf(out, " -H, --help %s\n", USAGE_OPTSTR_HELP);
+ fprintf(out, " -V, --version %s\n", USAGE_OPTSTR_VERSION);
- printf(USAGE_MAN_TAIL("col(1)"));
+ fprintf(out, USAGE_MAN_TAIL("col(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -2, --half-lines print all half-lines\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(25));
+ fprintf(out, USAGE_HELP_OPTIONS(25));
- printf(USAGE_MAN_TAIL("colcrt(1)"));
+ fprintf(out, USAGE_MAN_TAIL("colcrt(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Filter out the specified columns.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
fprintf(out, _("%s reads from standard input and writes to standard output\n\n"),
program_invocation_short_name);
- printf(USAGE_MAN_TAIL("colrm(1)"));
+ fprintf(out, USAGE_MAN_TAIL("colrm(1)"));
exit(EXIT_SUCCESS);
}
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(34));
- printf(USAGE_MAN_TAIL("column(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(34));
+ fprintf(out, USAGE_MAN_TAIL("column(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" -v, --no-squeezing output identical lines\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(27));
+ fprintf(out, USAGE_HELP_OPTIONS(27));
fputs(USAGE_ARGUMENTS, out);
- printf(USAGE_ARG_SIZE(_("<length> and <offset>")));
+ fprintf(out, USAGE_ARG_SIZE(_("<length> and <offset>")));
- printf(USAGE_MAN_TAIL("hexdump(1)"));
+ fprintf(out, USAGE_MAN_TAIL("hexdump(1)"));
exit(EXIT_SUCCESS);
}
fputs(_("Read one line.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("line(1)"));
+ fprintf(out,USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("line(1)"));
exit(EXIT_SUCCESS);
}
fputs(_(" +/pattern/ start at the line containing pattern\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf(USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("pg(1)"));
+ fprintf(out, USAGE_MAN_TAIL("pg(1)"));
exit(0);
}
fputs(_("Reverse lines characterwise.\n"), out);
fputs(USAGE_OPTIONS, out);
- printf(USAGE_HELP_OPTIONS(16));
- printf(USAGE_MAN_TAIL("rev(1)"));
+ fprintf(out, USAGE_HELP_OPTIONS(16));
+ fprintf(out, USAGE_MAN_TAIL("rev(1)"));
exit(EXIT_SUCCESS);
}
free(buf);
return rval;
}
-
fputs(USAGE_OPTIONS, out);
fputs(_(" -t, -T, --terminal TERMINAL override the TERM environment variable\n"), out);
fputs(_(" -i, --indicated underlining is indicated via a separate line\n"), out);
- printf(USAGE_HELP_OPTIONS(30));
+ fprintf(out, USAGE_HELP_OPTIONS(30));
- printf(USAGE_MAN_TAIL("ul(1)"));
+ fprintf(out, USAGE_MAN_TAIL("ul(1)"));
exit(EXIT_SUCCESS);
}