print.c (88583) | print.c (88584) |
---|---|
1/* 2 * Copyright (c) 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Michael Fischbein. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * SUCH DAMAGE. 35 */ 36 37#ifndef lint 38#if 0 39static char sccsid[] = "@(#)print.c 8.4 (Berkeley) 4/17/94"; 40#else 41static const char rcsid[] = | 1/* 2 * Copyright (c) 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Michael Fischbein. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34 * SUCH DAMAGE. 35 */ 36 37#ifndef lint 38#if 0 39static char sccsid[] = "@(#)print.c 8.4 (Berkeley) 4/17/94"; 40#else 41static const char rcsid[] = |
42 "$FreeBSD: head/bin/ls/print.c 88583 2001-12-28 18:14:50Z joe $"; | 42 "$FreeBSD: head/bin/ls/print.c 88584 2001-12-28 18:20:23Z joe $"; |
43#endif 44#endif /* not lint */ 45 46#include <sys/param.h> 47#include <sys/stat.h> 48 49#include <err.h> 50#include <errno.h> --- 444 unchanged lines hidden (view full) --- 495 colors[i].num[j] = c[j] - 'A'; 496 colors[i].bold = 1; 497 } else if (tolower((unsigned char)c[j] == 'x')) 498 colors[i].num[j] = -1; 499 else { 500 fprintf(stderr, 501 "error: invalid character '%c' in LSCOLORS" 502 " env var\n", c[j]); | 43#endif 44#endif /* not lint */ 45 46#include <sys/param.h> 47#include <sys/stat.h> 48 49#include <err.h> 50#include <errno.h> --- 444 unchanged lines hidden (view full) --- 495 colors[i].num[j] = c[j] - 'A'; 496 colors[i].bold = 1; 497 } else if (tolower((unsigned char)c[j] == 'x')) 498 colors[i].num[j] = -1; 499 else { 500 fprintf(stderr, 501 "error: invalid character '%c' in LSCOLORS" 502 " env var\n", c[j]); |
503 colors[i].num[j] = defcolors[2*i+j]-'0'; | 503 colors[i].num[j] = -1; |
504 } 505 } 506 } 507} 508 509void 510colorquit(sig) 511 int sig; --- 28 unchanged lines hidden --- | 504 } 505 } 506 } 507} 508 509void 510colorquit(sig) 511 int sig; --- 28 unchanged lines hidden --- |