mirror of https://github.com/mkerrisk/man-pages
chown.2, mmap.2, frexp.3, pthread_setschedparam.3, strtok.3: Remove comments on closing braces in example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9de5210bfb
commit
c54ed37e0a
|
@ -314,10 +314,10 @@ main(int argc, char *argv[])
|
|||
if (chown(argv[2], uid, \-1) == \-1) {
|
||||
perror("chown");
|
||||
exit(EXIT_FAILURE);
|
||||
} /* if */
|
||||
}
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
} /* main */
|
||||
}
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
.BR chmod (2),
|
||||
|
|
|
@ -644,7 +644,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
} /* main */
|
||||
}
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
.BR getpagesize (2),
|
||||
|
|
|
@ -130,7 +130,7 @@ main(int argc, char *argv[])
|
|||
printf("frexp(%g, &e) = %g: %g * %d^%d = %g\\n",
|
||||
x, r, r, FLT_RADIX, exp, x);
|
||||
exit(EXIT_SUCCESS);
|
||||
} /* main */
|
||||
}
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
.BR ldexp (3),
|
||||
|
|
|
@ -253,7 +253,7 @@ usage(char *prog_name, char *msg)
|
|||
fpe("\-m<policy><prio> Set scheduling policy and priority on\\n");
|
||||
fpe(" main thread before pthread_create() call\\n");
|
||||
exit(EXIT_FAILURE);
|
||||
} /* usage */
|
||||
}
|
||||
|
||||
static int
|
||||
get_policy(char p, int *policy)
|
||||
|
@ -264,7 +264,7 @@ get_policy(char p, int *policy)
|
|||
case \(aqo\(aq: *policy = SCHED_OTHER; return 1;
|
||||
default: return 0;
|
||||
}
|
||||
} /* get_policy */
|
||||
}
|
||||
|
||||
static void
|
||||
display_sched_attr(int policy, struct sched_param *param)
|
||||
|
@ -275,7 +275,7 @@ display_sched_attr(int policy, struct sched_param *param)
|
|||
(policy == SCHED_OTHER) ? "SCHED_OTHER" :
|
||||
"???",
|
||||
param\->sched_priority);
|
||||
} /* display_sched_attr */
|
||||
}
|
||||
|
||||
static void
|
||||
display_thread_sched_attr(char *msg)
|
||||
|
@ -289,7 +289,7 @@ display_thread_sched_attr(char *msg)
|
|||
|
||||
printf("%s\\n", msg);
|
||||
display_sched_attr(policy, ¶m);
|
||||
} /* display_thread_sched_attr */
|
||||
}
|
||||
|
||||
static void *
|
||||
thread_start(void *arg)
|
||||
|
@ -297,7 +297,7 @@ thread_start(void *arg)
|
|||
display_thread_sched_attr("Scheduler attributes of new thread");
|
||||
|
||||
return NULL;
|
||||
} /* thread_start */
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
@ -423,7 +423,7 @@ main(int argc, char *argv[])
|
|||
handle_error_en(s, "pthread_join");
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
} /* main */
|
||||
}
|
||||
.fi
|
||||
.SH SEE ALSO
|
||||
.BR getrlimit (2),
|
||||
|
|
|
@ -191,7 +191,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
} /* main */
|
||||
}
|
||||
.fi
|
||||
.SH "SEE ALSO"
|
||||
.BR index (3),
|
||||
|
|
Loading…
Reference in New Issue