home *** CD-ROM | disk | FTP | other *** search
- diff -c ../lc.old/README ./README
- *** ../lc.old/README Sun Feb 3 22:20:06 1991
- --- ./README Sun Feb 3 22:25:46 1991
- ***************
- *** 1,7 ****
-
- LC
-
- ! "@(#)README 1.4 1/8/91 Kent Landfield"
-
- This directory contains the source to lc. lc is much like the ls
- command except it separates the types of files into groups and then
- --- 1,7 ----
-
- LC
-
- ! "@(#)README 1.5 2/3/91 Kent Landfield"
-
- This directory contains the source to lc. lc is much like the ls
- command except it separates the types of files into groups and then
- ***************
- *** 113,118 ****
- --- 113,127 ----
- INTERNET: kent@sparky.IMD.Sterling.COM or UUCP: uunet!sparky!kent
-
- so that I can continue to improve the functionality and portability of lc.
- +
- + Just a note for historical interest: David Tanguay of Software Development
- + Group, University of Waterloo informs me that LC stands for "list catalog".
- + GCOS TSS on the Honeywell used the term "catalog", meaning (roughly) the
- + same thing as a Unix directory. The GCOS file system maintenance program
- + was called ACCE (short for access), a Swiss Army knife type program, and
- + one of its sub-functions was LC, which gave the usual baroque display.
- + A separate LC program was written to give the more commonly wanted structure
- + info, and CLIS (for catalog listing) to give a more "ls -l" type of display.
-
- -Kent+
-
- diff -c ../lc.old/lc.c ./lc.c
- *** ../lc.old/lc.c Sun Feb 3 22:20:07 1991
- --- ./lc.c Sun Feb 3 22:25:53 1991
- ***************
- *** 1,7 ****
- /*
- ** This software is
- **
- ! ** Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 by Kent Landfield.
- **
- ** Permission is hereby granted to copy, distribute or otherwise
- ** use any part of this package as long as you do not try to make
- --- 1,8 ----
- /*
- ** This software is
- **
- ! ** Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990,
- ! ** 1991 by Kent Landfield.
- **
- ** Permission is hereby granted to copy, distribute or otherwise
- ** use any part of this package as long as you do not try to make
- ***************
- *** 54,60 ****
- ** on your system ? Options -s, -L or -l won't be available..)
- **
- ** History:
- ! ** Initially designed on an IBM-XT running Coherent in 1984.
- ** Ported to XENIX on an IBM-AT in 1984.
- ** Ported to System V on AT&T 3Bs in 1985.
- ** Ported to DEC Vax 11/750 running System V in 1986.
- --- 55,62 ----
- ** on your system ? Options -s, -L or -l won't be available..)
- **
- ** History:
- ! ** This implementation initially designed on an
- ! ** IBM-XT running Coherent in 1984.
- ** Ported to XENIX on an IBM-AT in 1984.
- ** Ported to System V on AT&T 3Bs in 1985.
- ** Ported to DEC Vax 11/750 running System V in 1986.
- ***************
- *** 70,80 ****
- ** Tested with AmigaDOS 1.3 on an Amiga 1000 in 1989.
- ** Tested with SunOS 4.0.3 on a Sparkstation 1 in 1989.
- ** Tested with AIX 3.+ on a Risc System/6000 in 1990.
- ! ** Ivan Fris added the ability to combine "only" options.
- **
- */
- #ifndef lint
- ! static char *sccsid = "@(#)lc.c 1.25 1/2/91 Kent Landfield";
- #endif
-
- #include <stdio.h>
- --- 72,83 ----
- ** Tested with AmigaDOS 1.3 on an Amiga 1000 in 1989.
- ** Tested with SunOS 4.0.3 on a Sparkstation 1 in 1989.
- ** Tested with AIX 3.+ on a Risc System/6000 in 1990.
- ! ** Ivan Fris added the ability to combine "only" options in 1990.
- ! ** Mike Peterson ported it to the Apollo Domain/OS SR10.2 in 1990.
- **
- */
- #ifndef lint
- ! static char *sccsid = "@(#)lc.c 1.26 2/3/91 Kent Landfield";
- #endif
-
- #include <stdio.h>
- ***************
- *** 152,159 ****
- #ifdef S_IFBLK
- # define BLOCK_ONLY 1<<4
- #endif
- ! #ifdef S_IFIFO
- # define FIFO_ONLY 1<<5
- #endif
- #ifdef S_IFLNK
- # define LNK_ONLY 1<<6
- --- 155,164 ----
- #ifdef S_IFBLK
- # define BLOCK_ONLY 1<<4
- #endif
- ! #ifndef apollo
- ! # ifdef S_IFIFO
- # define FIFO_ONLY 1<<5
- + # endif
- #endif
- #ifdef S_IFLNK
- # define LNK_ONLY 1<<6
- ***************
- *** 194,202 ****
- --- 199,209 ----
- struct list Dirs = { 0, 0, (char **) NULL, 0 };
- struct list Fls = { 0, 0, (char **) NULL, 0 };
-
- + #ifndef apollo
- #ifdef S_IFIFO
- struct list Fifos = { 0, 0, (char **) NULL, 0 };
- #endif
- + #endif
-
- #ifdef S_IFLNK
- struct list Lnks = { 0, 0, (char **) NULL, 0 };
- ***************
- *** 225,233 ****
- --- 232,242 ----
- struct list Dirs = { 0, 0, (char **) NULL };
- struct list Fls = { 0, 0, (char **) NULL };
-
- + #ifndef apollo
- #ifdef S_IFIFO
- struct list Fifos = { 0, 0, (char **) NULL };
- #endif
- + #endif
-
- #ifdef S_IFLNK
- struct list Lnks = { 0, 0, (char **) NULL };
- ***************
- *** 602,610 ****
- flag = pr_info("Shared Data Files: ", &Sds, flag, Sort_wanted);
- #endif
-
- ! #ifdef S_IFIFO
- if (Fifos.num > 0 && (Only == 0 || Only & FIFO_ONLY))
- flag = pr_info("Fifo Files: ", &Fifos, flag, Sort_wanted);
- #endif
-
- #ifdef S_IFCHR
- --- 611,621 ----
- flag = pr_info("Shared Data Files: ", &Sds, flag, Sort_wanted);
- #endif
-
- ! #ifndef apollo
- ! # ifdef S_IFIFO
- if (Fifos.num > 0 && (Only == 0 || Only & FIFO_ONLY))
- flag = pr_info("Fifo Files: ", &Fifos, flag, Sort_wanted);
- + # endif
- #endif
-
- #ifdef S_IFCHR
- ***************
- *** 795,800 ****
- --- 806,812 ----
- break;
- #endif
-
- + #ifndef apollo
- #ifdef S_IFIFO
- case S_IFIFO:
- if (!Allfiles && sav_str[0] == '.')
- ***************
- *** 806,811 ****
- --- 818,824 ----
- #endif
- break;
- #endif
- + #endif
-
- #ifdef S_IFLNK
- case S_IFLNK:
- ***************
- *** 890,895 ****
- --- 903,909 ----
- break;
- #endif
-
- + #ifndef apollo
- #ifdef S_IFIFO
- case S_IFIFO:
- add_to_list(&Fifos, sav_str);
- ***************
- *** 899,904 ****
- --- 913,919 ----
- #endif
- break;
- #endif
- + #endif
-
- #ifdef S_IFSOCK
- case S_IFSOCK :
- ***************
- *** 1007,1016 ****
- Sort_wanted = FALSE;
- break;
-
- ! #ifdef S_IFIFO
- case 'F':
- Only |= FIFO_ONLY;
- break;
- #endif
-
- case '1':
- --- 1022,1033 ----
- Sort_wanted = FALSE;
- break;
-
- ! #ifndef apollo
- ! # ifdef S_IFIFO
- case 'F':
- Only |= FIFO_ONLY;
- break;
- + # endif
- #endif
-
- case '1':
- ***************
- *** 1407,1412 ****
- --- 1424,1430 ----
- break;
- #endif
-
- + #ifndef apollo
- #ifdef S_IFIFO
- case S_IFIFO:
- if (Display_single)
- ***************
- *** 1413,1418 ****
- --- 1431,1437 ----
- (void) printf("%s: fifo file\n", buf);
- break;
- #endif
- + #endif
-
- #ifdef S_IFSOCK
- case S_IFSOCK:
- ***************
- *** 1468,1477 ****
- --- 1487,1498 ----
- Dirs.maxlen = Fls.maxlen = 0;
- #endif
-
- + #ifndef apollo
- #ifdef S_IFIFO
- Fifos.num = 0;
- #ifdef LENS
- Fifos.maxlen = 0;
- + #endif
- #endif
- #endif
-
-