diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ac/ac.8 | 6 | ||||
-rw-r--r-- | usr.sbin/ac/ac.c | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/ac/ac.8 b/usr.sbin/ac/ac.8 index e1514f0..341226a 100644 --- a/usr.sbin/ac/ac.8 +++ b/usr.sbin/ac/ac.8 @@ -28,7 +28,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $Id$ +.\" $Id: ac.8,v 1.9 1997/02/22 16:01:10 peter Exp $ .\" .Dd March 15, 1994 .Dt AC 8 @@ -89,7 +89,7 @@ Display totals for the given individuals only. .El .Pp If no arguments are given, -.Nm ac +.Nm displays the total connect time for all accounts with login sessions recorded in .Pa wtmp . @@ -119,7 +119,7 @@ to be charged out at a different rate than .Pa other . .Pp The -.Nm ac +.Nm utility exits 0 on success, and >0 if a fatal error occurs. .Sh FILES .Bl -tag -width /var/log/wtmp.[0-7] -compact diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index ab4da9a..f59cf37 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -14,21 +14,22 @@ */ #ifndef lint -static char rcsid[] = "$Id: ac.c,v 1.6 1997/02/22 16:01:11 peter Exp $"; -#endif +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ #include <sys/types.h> #include <sys/file.h> #include <sys/time.h> #include <err.h> #include <errno.h> +#include <locale.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <utmp.h> #include <unistd.h> -#include <locale.h> +#include <utmp.h> /* * this is for our list of currently logged in sessions |