summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d75a773)
For consistency, on Ralph's suggestion.
.B mkstemp
successfully creates the temporary file, it prints the file name on
standard output and exits with status 0. On failure, it prints a
.B mkstemp
successfully creates the temporary file, it prints the file name on
standard output and exits with status 0. On failure, it prints a
-diagnostic message on standard error and exits with status 255.
+diagnostic message on standard error and exits with status 1.
.SH "PROFILE COMPONENTS"
None
.SH "SEE ALSO"
.SH "PROFILE COMPONENTS"
None
.SH "SEE ALSO"
mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
mkstemp="${MH_LIBEXEC_DIR}/mkstemp"
-check_exit '-eq 255' $mkstemp -
+check_exit '-eq 1' $mkstemp -
$mkstemp -help | grep suffix >/dev/null && has_mkstemps=1 || has_mkstemps=0
$mkstemp -help | grep suffix >/dev/null && has_mkstemps=1 || has_mkstemps=0
process_args(argc, argv, &directory, &prefix, &suffix);
if ((template = build_template(directory, prefix, suffix)) == NULL) {
process_args(argc, argv, &directory, &prefix, &suffix);
if ((template = build_template(directory, prefix, suffix)) == NULL) {
}
if ((suffix_len = strlen(suffix)) > 0) {
}
if ((suffix_len = strlen(suffix)) > 0) {
- return fd >= 0 ? 0 : -1;
+ return fd >= 0 ? 0 : 1;
NMH_UNUSED(suffix);
# endif /* ! HAVE_MKSTEMPS */
NMH_UNUSED(suffix);
# endif /* ! HAVE_MKSTEMPS */
- if (nmh_init(argv[0], 2)) { done(NOTOK); }
+ if (nmh_init(argv[0], 2)) { done(1); }
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
switch (smatch(++cp, switches)) {
case AMBIGSW:
ambigsw(cp, switches);
switch (smatch(++cp, switches)) {
case AMBIGSW:
ambigsw(cp, switches);
case UNKWNSW:
inform("-%s unknown", cp);
(void) snprintf(buf, sizeof buf, "%s [switches]", invo_name);
print_help(buf, switches, 1);
case UNKWNSW:
inform("-%s unknown", cp);
(void) snprintf(buf, sizeof buf, "%s [switches]", invo_name);
print_help(buf, switches, 1);
case HELPSW:
(void) snprintf(buf, sizeof buf, "%s [switches]", invo_name);
print_help(buf, switches, 1);
case HELPSW:
(void) snprintf(buf, sizeof buf, "%s [switches]", invo_name);
print_help(buf, switches, 1);
exit(0);
default:
(void) fprintf(stderr, usage, argv[0]);
exit(0);
default:
(void) fprintf(stderr, usage, argv[0]);