diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | README | 10 | ||||
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | slack.1 | 11 | ||||
| -rw-r--r-- | slack.c | 2 |
5 files changed, 15 insertions, 14 deletions
@@ -12,7 +12,7 @@ slack: slack.o slack.o: slack.c arg.h $(CC) -c -o $@ slack.c $(CFLAGS) $(CPPFLAGS) -check: +check: slack test $$(./slack 1ms ./slack get) = 1ms test $$(./slack 1ms ./slack GET) = 1000000 test $$(./slack 1 ./slack reset ./slack GET) = $$(./slack GET) @@ -9,10 +9,10 @@ DESCRIPTION with a new timer slack value. If the verb get or GET is used, the current timer slack - value and exit. If get is used, the program shall use - as high prefix as possible. If GET is used the value - shall be printed in nanoseconds but not unit shall be - printed. + value is printed and the process exit. If get is used, + the program shall use the highest prefix as possible. + If GET is used the value shall be printed in nanoseconds + but no unit shall be printed. If the verb reset is used, the process shall set the timer slack value for the process to the default timer @@ -41,7 +41,7 @@ NOTES Real-time threads do not slack around. RATIONALE - Could be useful increase the performance of your computer. + Could be useful to increase the performance of your computer. SEE ALSO nice(1), ionice(1), prctl(2) @@ -1,8 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CC = cc +CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -O2 +CFLAGS = LDFLAGS = -s @@ -12,10 +12,11 @@ If the verb .B get or .B GET -is used, the current timer slack value and exit. If get is used, the -program shall use as high prefix as possible. If -.V GET -is used the value shall be printed in nanoseconds but not unit shall +is used, the current timer slack value is printed and the +process exit. If get is used, the +program shall use the highest prefix as possible. If +.B GET +is used the value shall be printed in nanoseconds but no unit shall be printed. .PP If the verb reset is used, the process shall set the timer slack value @@ -58,7 +59,7 @@ Fail if the timer slack value cannot be set. .SH NOTES Real-time threads do not slack around. .SH RATIONALE -Could be useful increase the performance of your computer. +Could be useful to increase the performance of your computer. .SH "SEE ALSO" .BR nice (1), .BR ionice (1), @@ -26,7 +26,7 @@ usage(void) int main(int argc, char **argv) { - int fatal; + int fatal = 0; long int slackvalue; const char *suffix; char *end; |
