last.c (60833) | last.c (60938) |
---|---|
1/* 2 * Copyright (c) 1987, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 1987, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/usr.bin/last/last.c 60833 2000-05-23 20:41:01Z jake $ | 33 * $FreeBSD: head/usr.bin/last/last.c 60938 2000-05-26 02:09:24Z jake $ |
34 */ 35 36#ifndef lint 37static char copyright[] = 38"@(#) Copyright (c) 1987, 1993, 1994\n\ 39 The Regents of the University of California. All rights reserved.\n"; 40#endif /* not lint */ 41 --- 27 unchanged lines hidden (view full) --- 69#define HOST_TYPE -2 70#define TTY_TYPE -3 71#define USER_TYPE -4 72 int type; /* type of arg */ 73 struct arg *next; /* linked list pointer */ 74} ARG; 75ARG *arglist; /* head of linked list */ 76 | 34 */ 35 36#ifndef lint 37static char copyright[] = 38"@(#) Copyright (c) 1987, 1993, 1994\n\ 39 The Regents of the University of California. All rights reserved.\n"; 40#endif /* not lint */ 41 --- 27 unchanged lines hidden (view full) --- 69#define HOST_TYPE -2 70#define TTY_TYPE -3 71#define USER_TYPE -4 72 int type; /* type of arg */ 73 struct arg *next; /* linked list pointer */ 74} ARG; 75ARG *arglist; /* head of linked list */ 76 |
77LIST_HEAD(ttylisthead, struct ttytab) ttylist; | 77LIST_HEAD(ttylisthead, ttytab) ttylist; |
78 79struct ttytab { 80 time_t logout; /* log out time */ 81 char tty[UT_LINESIZE + 1]; /* terminal name */ | 78 79struct ttytab { 80 time_t logout; /* log out time */ 81 char tty[UT_LINESIZE + 1]; /* terminal name */ |
82 LIST_ENTRY(struct ttytab) list; | 82 LIST_ENTRY(ttytab) list; |
83}; 84 85static long currentout, /* current logout value */ 86 maxrec; /* records to display */ 87static char *file = _PATH_WTMP; /* wtmp file */ 88static int sflag = 0; /* show delta in seconds */ 89static int width = 5; /* show seconds in delta */ 90 --- 363 unchanged lines hidden --- | 83}; 84 85static long currentout, /* current logout value */ 86 maxrec; /* records to display */ 87static char *file = _PATH_WTMP; /* wtmp file */ 88static int sflag = 0; /* show delta in seconds */ 89static int width = 5; /* show seconds in delta */ 90 --- 363 unchanged lines hidden --- |