Deleted Added
full compact
print.c (9987) print.c (10553)
1/*-
2 * Copyright (c) 1990, 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) 1990, 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 * $Id: print.c,v 1.7 1995/05/30 00:07:04 rgrimes Exp $
33 * $Id: print.c,v 1.8 1995/08/07 19:17:39 wollman Exp $
34 */
35
36#ifndef lint
37static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
38#endif /* not lint */
39
40#include <sys/param.h>
41#include <sys/time.h>

--- 280 unchanged lines hidden (view full) ---

322 v = ve->var;
323 dev = KI_EPROC(k)->e_tdev;
324 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
325 (void)printf("%-*s", v->width, "??");
326 else {
327 if (strncmp(ttname, "tty", 3) == 0 ||
328 strncmp(ttname, "cua", 3) == 0)
329 ttname += 3;
34 */
35
36#ifndef lint
37static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
38#endif /* not lint */
39
40#include <sys/param.h>
41#include <sys/time.h>

--- 280 unchanged lines hidden (view full) ---

322 v = ve->var;
323 dev = KI_EPROC(k)->e_tdev;
324 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
325 (void)printf("%-*s", v->width, "??");
326 else {
327 if (strncmp(ttname, "tty", 3) == 0 ||
328 strncmp(ttname, "cua", 3) == 0)
329 ttname += 3;
330 (void)printf("%*.*s%c", v->width-1, v->width-1, ttname,
330 (void)printf("%-*.*s%c", v->width-1, v->width-1, ttname,
331 KI_EPROC(k)->e_flag & EPROC_CTTY ? ' ' : '-');
332 }
333}
334
335void
336longtname(k, ve)
337 KINFO *k;
338 VARENT *ve;

--- 405 unchanged lines hidden ---
331 KI_EPROC(k)->e_flag & EPROC_CTTY ? ' ' : '-');
332 }
333}
334
335void
336longtname(k, ve)
337 KINFO *k;
338 VARENT *ve;

--- 405 unchanged lines hidden ---