From 739846b45263c16a817e9288ec87f371dacc443e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 15 Feb 2012 19:40:08 +0100 Subject: [PATCH] alarm(1) manpage --- sys/man/1/alarm | 16 ++++++++-------- sys/src/cmd/alarm.c | 3 ++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/sys/man/1/alarm b/sys/man/1/alarm index 1a1276fb3..2e081bbe9 100644 --- a/sys/man/1/alarm +++ b/sys/man/1/alarm @@ -3,10 +3,10 @@ alarm \- ask for delayed note .SH SYNOPSIS .B alarm -[ .I time -.I path -.I arg +.I command +[ +.I arg ... ] .SH DESCRIPTION .I Alarm @@ -14,11 +14,11 @@ causes an .B alarm note (see .IR notify (2)) -to be sent to the process indicated by the argument -.I path -after the number of seconds -given by the argument -.I time. +to be sent to the process indicated by +.I command +after +.I time +seconds. .SH SOURCE .B /sys/src/cmd/alarm.c .SH SEE ALSO diff --git a/sys/src/cmd/alarm.c b/sys/src/cmd/alarm.c index 04bae6415..ce65a1f2c 100644 --- a/sys/src/cmd/alarm.c +++ b/sys/src/cmd/alarm.c @@ -29,7 +29,7 @@ int cpid; void usage(void) { - fprint(2,"usage: alarm time path arg ...\n"); + fprint(2,"usage: %s time command [ arg ... ]\n", argv0); exits("usage"); } @@ -47,6 +47,7 @@ main(int argc, char *argv[]) Waitmsg *w; long n, t; + argv0 = argv[0]; if(argc < 3) usage(); n = strtol(argv[1], &p, 10);