706 lines
24 KiB
Plaintext
706 lines
24 KiB
Plaintext
From: Digestifier <Linux-Activists-Request@news-digests.mit.edu>
|
|
To: Linux-Activists@news-digests.mit.edu
|
|
Reply-To: Linux-Activists@news-digests.mit.edu
|
|
Date: Sat, 21 Mar 92 10:15:21 EST
|
|
Subject: Linux-Activists Digest #132
|
|
|
|
Linux-Activists Digest #132, Volume #1 Sat, 21 Mar 92 10:15:21 EST
|
|
|
|
Contents:
|
|
X for linux? (Edward J.M. Colbert)
|
|
Re: Some questions (setterm, make, gcc, kermit, etc.) (Johan W}hlin)
|
|
386 BSD and linux (Jiansheng Zhao)
|
|
lp support for Linux 0.95a (R. Ramesh)
|
|
50 line mode problems, limits.h help. (Karl R. Buck)
|
|
Re: 50 line mode problems, limits.h help. (Jim Winstead Jr.)
|
|
Help with installing Linux (Paul R. Taylor)
|
|
Re: Help with installing Linux (RLL) (Paul R. Taylor)
|
|
Syntax of as of Minix, as86 of Linux (Heien-Kun Chiang)
|
|
Re: Help! Can't create file system.. (tony@vax.oxford.ac.uk)
|
|
Re: 33MHz vs 8Mhz (Budi Rahardjo)
|
|
misc questions (trying to compile mail stuff) (Budi Rahardjo)
|
|
Re: Something writes kernel memory where it shouldn't (Mika Pekka Liljeberg)
|
|
Re: .95a HD prob. (Mika Pekka Liljeberg)
|
|
Reading Floppy (Court Demas)
|
|
noisy hd resolved (Rodney Armstrong)
|
|
color ls & misc. (Greg Lee)
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
From: colbert@astro.umd.edu (Edward J.M. Colbert)
|
|
Subject: X for linux?
|
|
Date: 20 Mar 92 22:50:45 GMT
|
|
|
|
Does anyone know of a port of X windows to linux of 386BSD or some
|
|
other 386 unix-like operating system?
|
|
|
|
Of course I am interested in a "free" version (especially a linux port),
|
|
but I am also curious about the commercial products.
|
|
|
|
Ed.
|
|
|
|
------------------------------
|
|
|
|
From: d88-jwn@dront.nada.kth.se (Johan W}hlin)
|
|
Subject: Re: Some questions (setterm, make, gcc, kermit, etc.)
|
|
Date: Fri, 20 Mar 1992 16:52:42 GMT
|
|
|
|
In article <1992Mar20.044610.19110@muddcs.claremont.edu> jwinstea@jarthur.claremont.edu (Jim Winstead Jr.) writes:
|
|
>In article <1992Mar20.035922.25163@ccu.umanitoba.ca> rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:
|
|
>>0.95a runs perfect. Some info :
|
|
>
|
|
>That's good to hear!
|
|
>
|
|
>>- the install scripts didn't change my /etc/rc
|
|
>
|
|
>They aren't designed to change your /etc/rc. What they should do,
|
|
>however, is warn you that you may need to change some things. I did
|
|
>this because with the utilities on the root disk, there's no neat way
|
|
>to modify the /etc/rc, and if you're like me, your /etc/rc has been
|
|
>customized to a fair degree (to mount partitions, set up the hostname,
|
|
>etc.)
|
|
>
|
|
I use a rc.local which is called at the end of rc. That way it's safe
|
|
to install another rc. You just need to add the extra line that calls
|
|
rc.local
|
|
/Johan
|
|
|
|
------------------------------
|
|
|
|
From: zhao@unixg.ubc.ca (Jiansheng Zhao)
|
|
Subject: 386 BSD and linux
|
|
Date: 21 Mar 92 02:26:27 GMT
|
|
|
|
|
|
I certainly will stay with linux and I am happy with linux 0.95a, thanks
|
|
to Linus and those involved.
|
|
I tried 386BSD boot-floppy on three different 386 machines, for two of
|
|
them, drive A: was being read forever, the third one boot and panic
|
|
and automatically re-boot, ...... .
|
|
I don't have a math co-processor, and DOS HAS to be on the same dirve.
|
|
Also, I like bash under linux (alias, history etc.) and virtual console.
|
|
|
|
|
|
------------------------------
|
|
|
|
From: ramesh@utdallas.edu (R. Ramesh)
|
|
Subject: lp support for Linux 0.95a
|
|
Date: 21 Mar 92 03:00:16 GMT
|
|
|
|
|
|
Hi:
|
|
|
|
I remember reading that you could use the lp.12 patches to get lp support
|
|
on 0.95a. So I tried it today. But alas, something happened somewhere and the
|
|
kernel I got complaint a lot about General Protection errors (the thing
|
|
that used to be very common in 0.95) and said NO lp! :-(
|
|
|
|
So I rebooted (not a cold boot) with the old kernel but still I got the GPE's.
|
|
Only after switch-off-on sequence with the old kernel solved the problem.
|
|
|
|
Has any one succeeded in getting lp patch to work? If so, did you hand patch
|
|
all the files? Again, if so, can you post/e-mail the diff with fresh 0.95a.
|
|
|
|
Any help would be appreciated.
|
|
|
|
Ramesh
|
|
|
|
------------------------------
|
|
|
|
From: kxb@matt.ksu.ksu.edu (Karl R. Buck)
|
|
Subject: 50 line mode problems, limits.h help.
|
|
Date: 21 Mar 92 03:35:18 GMT
|
|
|
|
I've installed 0.95a and I'm very pleased. The install scripts are a
|
|
major improvement! Great work!
|
|
|
|
Now a question: I am running a mono-vga in 50 line mode and really
|
|
like it. I do have a problem with kermit not using all the lines and
|
|
not resetting the terminal to its original state. I've played with
|
|
setterm, but with no results. Is there any easy way to get kermit to
|
|
use all 50 lines?
|
|
|
|
Second, I know it is in the newgcc.faq, but I still can't seem to find
|
|
limits.h. Where is it? Thanks.
|
|
--
|
|
Karl Buck, kxb@matt.ksu.edu :)
|
|
|
|
------------------------------
|
|
|
|
From: jwinstea@jarthur.claremont.edu (Jim Winstead Jr.)
|
|
Subject: Re: 50 line mode problems, limits.h help.
|
|
Date: 21 Mar 92 04:03:29 GMT
|
|
|
|
In article <kslbnmINNf72@matt.ksu.ksu.edu> kxb@matt.ksu.ksu.edu (Karl R. Buck) writes:
|
|
>I've installed 0.95a and I'm very pleased. The install scripts are a
|
|
>major improvement! Great work!
|
|
|
|
Thanks! (Really, though, I wish someone would complain - the only bad
|
|
thing I've heard is that the install script doesn't handle the case
|
|
where /usr is a mounted partition.)
|
|
|
|
>Now a question: I am running a mono-vga in 50 line mode and really
|
|
>like it. I do have a problem with kermit not using all the lines and
|
|
>not resetting the terminal to its original state. I've played with
|
|
>setterm, but with no results. Is there any easy way to get kermit to
|
|
>use all 50 lines?
|
|
|
|
I assume you're having problems once connected someplace (such as your
|
|
school's computer), in which case the other end has to know you have
|
|
50 lines available. If the other machine is a Unix box, that's easy:
|
|
use stty on that machine. (stty rows 50). I'll agree that 50-line
|
|
mode is simply wonderful. Whenever I have to use 25-line mode (less
|
|
and less :), the gargantuan letters bug the heck out of me.
|
|
|
|
Also, for those keeping score: I rebuilt the kernel with the Finnish
|
|
keyboard, *again*. This makes every kernel since 0.11. I swear, I
|
|
thought I changed it this time, but it changed itself back. Gremlins,
|
|
that's what it is....
|
|
--
|
|
Jim Winstead Jr. (CSci '95) | "Catch a fish!"
|
|
Harvey Mudd College | -Geddy Lee,
|
|
jwinstea@jarthur.Claremont.EDU | San Diego Sports Arena
|
|
Disclaimer: Mine, not theirs! | January 20, 1992
|
|
|
|
------------------------------
|
|
|
|
From: taylor@oswego.Oswego.edu (Paul R. Taylor)
|
|
Subject: Help with installing Linux
|
|
Date: 21 Mar 92 04:38:19 GMT
|
|
Reply-To: taylor@oswego.Oswego.edu (Paul R. Taylor)
|
|
|
|
|
|
All:
|
|
|
|
I am having problems getting linux installed on my personal machine
|
|
and was wondering if anyone can help me out. I have been working
|
|
with Linux on the machine at work for about a month now. but I can't
|
|
seem to be able to get anyplace with installing it on my machine
|
|
at home.
|
|
|
|
Here's the setup.
|
|
Machine: BSR 386SX/16
|
|
Memory: 4 MB
|
|
Floppies: Drive A: 1.2MB 5.25"
|
|
Drive B: 1.44MB 3.5"
|
|
Hard Drives: Drive C: Plus HardCard IIXL
|
|
Drive D: Seagate ST1106 (RLL)
|
|
Controller: Floppy: On Motherboard
|
|
Drive D: Seagate ST-21/22
|
|
|
|
Here's the problem:
|
|
I can boot linux fine and run off of floppies (either one)
|
|
when I run fdisk it just returns (NO ERROR, Nothing printed
|
|
at all). What I think is happening is that it is not even
|
|
seeing either of the hard disks, I do NOT know why? I can
|
|
understand it not knowing about the HardCard, but Does anyone
|
|
know of any reason why it is not finding the RLL drive?
|
|
I have heard of other people running off of RLL drives,
|
|
is it just the particular card that I have? can someone
|
|
offer some assistance and a possible soloution to this
|
|
problem?
|
|
|
|
Thanks for any assistance that anyone can give me.
|
|
|
|
Paul
|
|
|
|
P.S. Before someone else suggests it, I have tried using the
|
|
RLL drive as C: and the HardCard as D: and I end up with
|
|
the same results.
|
|
Paul R. Taylor Systems Programmer
|
|
PHONE: (315) 341-3055 12A Snygg Hall
|
|
BITNET: TAYLOR@SNYOSWVA Instructional Computing Center
|
|
INTERNET: taylor@oswego.oswego.edu SUNY Oswego, Oswego,NY 13126
|
|
|
|
------------------------------
|
|
|
|
From: taylor@Oswego.EDU (Paul R. Taylor)
|
|
Subject: Re: Help with installing Linux (RLL)
|
|
Date: 21 Mar 92 04:47:02 GMT
|
|
Reply-To: taylor@oswego.Oswego.EDU (Paul R. Taylor)
|
|
|
|
|
|
I forgot to mention in my previous posting, that I have tried
|
|
to get the install to work with versions 0.12, 0.95, and 0.95a
|
|
|
|
Paul
|
|
|
|
------------------------------
|
|
|
|
From: hcg6805@uxa.cso.uiuc.edu (Heien-Kun Chiang)
|
|
Subject: Syntax of as of Minix, as86 of Linux
|
|
Date: 21 Mar 92 05:05:45 GMT
|
|
|
|
Hi there,
|
|
|
|
Can anyone please tell me where can I get a documentation of the syntax
|
|
of the assembler of PC Minix (asld), and the syntax of as86 of Linux.
|
|
|
|
I posted the request for obtaining the syntax of assembler of Minix in comp.os.minix twice and got no responses for two weeks.
|
|
|
|
Please help!
|
|
|
|
|
|
------------------------------
|
|
|
|
From: tony@vax.oxford.ac.uk
|
|
Subject: Re: Help! Can't create file system..
|
|
Date: 20 Mar 92 23:30:55 GMT
|
|
|
|
In article <IdllSrm00VoqAPgVMt@andrew.cmu.edu>, cd2a+@andrew.cmu.edu (Court Demas) writes:
|
|
>
|
|
> I (finally) got Linux 0.95 to actually boot, but I'm having problems
|
|
> creating the file system with mkfs on my hard drive.
|
|
>
|
|
|
|
...
|
|
|
|
> ... fdisk seems to run fine, as does mkfs. Once I run mount
|
|
> though, no matter which options or device I use, I get:
|
|
>
|
|
> mount: unable to open lock-file
|
|
>
|
|
|
|
rm /etc/mtab~
|
|
|
|
if /dev/mtab doesn't exist :- (this should be in /etc/rc anyhow ..)
|
|
|
|
/bin/rootdev > /etc/mtab
|
|
|
|
then try mount again, all should be sweetness & light ...
|
|
|
|
|
|
|
|
People having trouble with kermit should try (/dev/tty64 = com1
|
|
/dev/tty65 = com2 ...)
|
|
|
|
/bin/stty 9600 < /dev/tty64 > /dev/tty64
|
|
|
|
in /etc/rc to set the com port's line speed. set baud 9600 at the kermit
|
|
prompt changes the speed kermit tries to talk to the device but (it seems)
|
|
doesn't change the device's speed ...
|
|
|
|
BTW I cannot successfully get kermit to transmit on com1 at 19200 - Any clues
|
|
would be greatfully received. I've got ka9q running at 9600, with the following
|
|
in /etc/rc :-
|
|
|
|
/bin/stty 9600 -IXOFF -IXON < /dev/tty64 > /dev/tty64
|
|
|
|
... but 19200 would be so much better, if poss ....
|
|
|
|
Also, when using ka9q I keep getting an "extra" return/linefeed every time I hit
|
|
return. I found the following clears up this problem, and doesn't seem to
|
|
mess up anything else :-
|
|
|
|
stty -ECHONL
|
|
|
|
perhapse this could become the default ???
|
|
|
|
Tony
|
|
|
|
PS. I'm not a guru, so please don't be too cruel if I've got some/all of this
|
|
wrong ! - I've been up till 3.00am every day this week working on Linux & my
|
|
head is fuzzy enough ...
|
|
|
|
_
|
|
Tony Kew, Oxford University Computing Services, (_)xford, England, U.K.
|
|
====================================================|=========================
|
|
Janet:- tony@uk.ac.oxford.vax --+-- Disclaimer :-
|
|
Internet:- tony%vax.oxford.ac.uk@nsfnet-relay.ac.uk | Who is the more foolish?
|
|
Earn/Bitnet:- tony%vax.oxford.ac.uk@ukacrl | The fool, or the
|
|
Phone:- +44 (0)865 273268 Fax:- +44 (0)865 273275 | man who follows him?
|
|
==================================================\=|=/=======================
|
|
\|/
|
|
|
|
------------------------------
|
|
|
|
From: rahardj@ccu.umanitoba.ca (Budi Rahardjo)
|
|
Subject: Re: 33MHz vs 8Mhz
|
|
Date: 21 Mar 92 06:11:48 GMT
|
|
|
|
In <dave.701137159@stat.tamu.edu> dave@stat.tamu.edu (Dave Perry) writes:
|
|
...
|
|
>Does anyone have any suggestions? The other thing
|
|
>is the lack of other niceties, such as job control, and the
|
|
>inability of kermit to escape back to linux, which obviously
|
|
=============================================
|
|
>prevents me from using kermit (Not a bad idea, but when its
|
|
>all you have :)
|
|
|
|
In kermit you can use C-\ (that's ctrl \ ) and after that hit c
|
|
you get the "C-Kermit>" prompt. From there you can use '?' to get help.
|
|
You can even quit from kermit and then fire it up again with no problem.
|
|
The only problem that I have with kermit is that it won't hangup the phone.
|
|
I had to power the modem off or give +++ ATH0 command.
|
|
|
|
> Keep up the excellent work, Linus!
|
|
|
|
-- budi
|
|
--
|
|
Budi Rahardjo <rahardj@ccu.umanitoba.ca>
|
|
Unix Support - Computer Services - University of Manitoba
|
|
|
|
------------------------------
|
|
|
|
From: rahard@ee.umanitoba.ca (Budi Rahardjo)
|
|
Subject: misc questions (trying to compile mail stuff)
|
|
Date: Sat, 21 Mar 1992 05:56:50 GMT
|
|
|
|
|
|
-Problem with login thru /dev/ttys1 and /dev/ttys2:
|
|
I am having problem with <CR>. Hitting return key does not move the cursor
|
|
down. For example if I do 'ls -l', the first output will overwrite the
|
|
current cursor line and at the end of the command the cursor stays at the
|
|
line where the command ended. Is this a known bug ?
|
|
BTW, "who" works fine. I can see a list of people login in :-)
|
|
"write" works too...
|
|
|
|
-I am looking at 'procmail' and thinking that it could be the mail transport
|
|
agent (MTA) for local mail. With procmail I can create a dummy "sendmail"
|
|
and indeed it delivers the mail to the right userid with the right ownership.
|
|
I'll post a msg if I can get this up and running. I understand somebody
|
|
else is working on 'deliver'. How is it going ?
|
|
Is anybody working on 'sendmail' and 'smail' ? I'd like to know how it goes.
|
|
|
|
-I am also looking at 'elm' and 'mush' as mail user agent (MUA).
|
|
Unfortunately the 'Configure' script for 'elm' breaks since I don't have
|
|
'expr', 'awk', 'sed', 'echo'. I found 'gawk' and 'sed' in tsx-11.mit.edu
|
|
but no 'expr'. Anybody ?
|
|
Compiling 'mush' is not as smooth as I expected. It breaks trying to find
|
|
getlogin(), re_comp(), and re_exec().
|
|
Where can I find these libraries ? I can see re_comp() and re_exec()
|
|
in <regex.h> though. Is there a switch I should use when compiling.
|
|
|
|
|
|
Setup: Linux 0.95a, newgcc (is this 1.40 ?)
|
|
|
|
Thanks,
|
|
-- budi
|
|
--
|
|
Budi Rahardjo
|
|
<rahardj@ccu.umanitoba.ca> <rahard@ee.umanitoba.ca>
|
|
Electrical Engineering - University of Manitoba - Canada
|
|
|
|
------------------------------
|
|
|
|
From: liljeber@kruuna.Helsinki.FI (Mika Pekka Liljeberg)
|
|
Subject: Re: Something writes kernel memory where it shouldn't
|
|
Date: 21 Mar 92 08:19:04 GMT
|
|
|
|
In article <1992Mar20.201246.19963@colorado.edu> drew@cs.colorado.edu (Drew Eckhardt) wrote:
|
|
|
|
> At least until Linus is 100% stable, it should check for valid data
|
|
|
|
Oh, he's quite stable, I would think... ;-)
|
|
|
|
Mika
|
|
--
|
|
Mika Liljeberg Email: liljeber@kruuna.Helsinki.FI
|
|
Helsinki University Mika.Liljeberg@Helsinki.FI
|
|
Dept. of Computer Science
|
|
|
|
------------------------------
|
|
|
|
From: liljeber@kruuna.Helsinki.FI (Mika Pekka Liljeberg)
|
|
Subject: Re: .95a HD prob.
|
|
Date: 21 Mar 92 08:42:33 GMT
|
|
|
|
In article <LILJEBER.92Mar20192447@kruuna.Helsinki.FI> I wrote:
|
|
|
|
> Surprise! My second drive is a 65 Meg Seagate RLL and my controller
|
|
> is Western Digital something or other. ;-)
|
|
|
|
I must have a faulty memory chip, or something, but every time I don't
|
|
have the documentation at hand I'll swear I have a WD controller, but
|
|
as it happens, my controller is a Data Technology 7287 Revision B.
|
|
|
|
Oh well. I did a little testing this morning and I managed to pinpoint
|
|
the bug (or perhaps the drive just got tired of whining). It appears
|
|
that the bug is in reset_controller(). The 0.95a hd driver forces a
|
|
controller reset at startup and this messes up the Seagate drive.
|
|
|
|
One way to get around this is to change the line:
|
|
static int reset = 1;
|
|
back to:
|
|
static int reset = 0;
|
|
|
|
However, if you ever run into serious enough a hd failure to cause a
|
|
controller reset, the drive will probably start screaming again.
|
|
|
|
You could also comment out the code in reset_controller(), but this
|
|
way you could still get stuck with a hd failure. Sigh.
|
|
|
|
Could one of you guys who really know this stuff take a wee look?
|
|
Linus? Drew? Please.
|
|
|
|
Mika
|
|
|
|
--
|
|
Mika Liljeberg Email: liljeber@kruuna.Helsinki.FI
|
|
Helsinki University Mika.Liljeberg@Helsinki.FI
|
|
Dept. of Computer Science
|
|
|
|
------------------------------
|
|
|
|
Date: Sat, 21 Mar 1992 04:52:18 -0500
|
|
From: Court Demas <cd2a+@andrew.cmu.edu>
|
|
Subject: Reading Floppy
|
|
|
|
|
|
Just a question about the rawriting-tar-files-to-disk thing. I
|
|
understand that tar knows how long the file is going to be, but doesn't
|
|
compress also? Why can't you rawrite a compressed file to a floppy and
|
|
just read it in? (I couldn't get uncompress to read from a device :-[ )
|
|
|
|
Just asking to be annoying.. :-)
|
|
|
|
|
|
|
|
-court
|
|
|
|
------------------------------
|
|
|
|
From: raa30@ccc.amdahl.com (Rodney Armstrong)
|
|
Subject: noisy hd resolved
|
|
Date: 21 Mar 92 10:55:09 GMT
|
|
Reply-To: raa30@juts.ccc.amdahl.com ()
|
|
|
|
All right. Earlier I had posted about a noisy second hard drive.
|
|
Well, I did what was suggested and rebuilt the kernel using the
|
|
old hd.c from .95 but I also found how to modify the hd.c from v.95a.
|
|
It is simple and it seems to work but do not ask me why.
|
|
Just change the line in hd.c that reads:
|
|
|
|
static int reset = 1;
|
|
to
|
|
static int reset = 0;
|
|
|
|
It is near the top of the file. Again, I am not sure exactly what I did
|
|
here but it works.
|
|
|
|
Thanks to all who responded with the same problem. Now I can sleep
|
|
knowing I have a complete .95a version. ;)
|
|
|
|
Rod Armstrong
|
|
|
|
------------------------------
|
|
|
|
From: lee@uhunix.uhcc.Hawaii.Edu (Greg Lee)
|
|
Subject: color ls & misc.
|
|
Date: 21 Mar 92 14:58:08 GMT
|
|
|
|
1. Below find a patch to ls.c of the 3.1 fsf file utilities
|
|
for a simple change to show file types in color: executables
|
|
in green, directories in cyan, links with blue background.
|
|
Flag '-f' disables the colors (but you might want to reverse
|
|
the sense of this).
|
|
|
|
2. Maybe it's time to consider gcc 2.0 with the shared library
|
|
to be a beta. I've compiled the 95a kernel, 1.6 shell utilities,
|
|
3.1 file utilities, kermit 5A, ps, and it seems to work fine.
|
|
|
|
3. ... except kermit 5A doesn't echo CR correctly in command
|
|
mode. Does anyone know what to do about that?
|
|
|
|
4. I can't access a 720kb 3.5" floppy in my 1.44mb drive. Do
|
|
I need to change an entry in the floppy_type table in floppy.c?
|
|
If so, what specs should I use?
|
|
|
|
5. It would be nice to be able to format floppies. There's a
|
|
note in the 95a source from Keith White that he has a patch
|
|
for that. Is that available anywhere for ftping? Or perhaps
|
|
he could post it.
|
|
|
|
======patch for colors in ls=================
|
|
*** ls.c.orig Fri Mar 20 10:02:36 1992
|
|
--- ls.c Fri Mar 20 11:33:10 1992
|
|
***************
|
|
*** 109,114 ****
|
|
--- 109,115 ----
|
|
void print_many_per_line ();
|
|
void print_name_with_quoting ();
|
|
void print_type_indicator ();
|
|
+ int print_color_indicator ();
|
|
void print_with_commas ();
|
|
void queue_directory ();
|
|
void sort_files ();
|
|
***************
|
|
*** 246,251 ****
|
|
--- 247,256 ----
|
|
|
|
int print_block_size;
|
|
|
|
+ /* Nonzero means use colors for types. -f */
|
|
+
|
|
+ int print_with_color;
|
|
+
|
|
/* Nonzero means show file sizes in kilobytes instead of blocks
|
|
(the size of which is system-dependant). -k */
|
|
|
|
***************
|
|
*** 365,371 ****
|
|
format_needs_stat = sort_type == sort_time || sort_type == sort_size
|
|
|| format == long_format
|
|
|| trace_links || trace_dirs || indicator_style != none
|
|
! || print_block_size || print_inode;
|
|
|
|
nfiles = 100;
|
|
files = (struct tufile *) xmalloc (sizeof (struct tufile) * nfiles);
|
|
--- 370,376 ----
|
|
format_needs_stat = sort_type == sort_time || sort_type == sort_size
|
|
|| format == long_format
|
|
|| trace_links || trace_dirs || indicator_style != none
|
|
! || print_block_size || print_inode || print_with_color;
|
|
|
|
nfiles = 100;
|
|
files = (struct tufile *) xmalloc (sizeof (struct tufile) * nfiles);
|
|
***************
|
|
*** 523,528 ****
|
|
--- 528,534 ----
|
|
sort_reverse = 0;
|
|
numeric_users = 0;
|
|
print_block_size = 0;
|
|
+ print_with_color = 1;
|
|
kilobyte_blocks = getenv ("POSIX_ME_HARDER") == 0;
|
|
indicator_style = none;
|
|
print_inode = 0;
|
|
***************
|
|
*** 549,555 ****
|
|
p = getenv ("TABSIZE");
|
|
tabsize = p ? atoi (p) : 8;
|
|
|
|
! while ((c = getopt_long (argc, argv, "abcdgiklmnpqrstuw:xABCFI:LNQRST:UX1",
|
|
long_options, (int *) 0)) != EOF)
|
|
{
|
|
switch (c)
|
|
--- 555,561 ----
|
|
p = getenv ("TABSIZE");
|
|
tabsize = p ? atoi (p) : 8;
|
|
|
|
! while ((c = getopt_long (argc, argv, "abcdfgiklmnpqrstuw:xABCFI:LNQRST:UX1",
|
|
long_options, (int *) 0)) != EOF)
|
|
{
|
|
switch (c)
|
|
***************
|
|
*** 572,577 ****
|
|
--- 578,587 ----
|
|
immediate_dirs = 1;
|
|
break;
|
|
|
|
+ case 'f':
|
|
+ print_with_color = 0;
|
|
+ break;
|
|
+
|
|
case 'g':
|
|
/* No effect. For BSD compatibility. */
|
|
break;
|
|
***************
|
|
*** 1487,1492 ****
|
|
--- 1497,1504 ----
|
|
print_file_name_and_frills (f)
|
|
struct tufile *f;
|
|
{
|
|
+ int color_off = 0;
|
|
+
|
|
if (print_inode)
|
|
printf ("%6u ", f->stat.st_ino);
|
|
|
|
***************
|
|
*** 1494,1501 ****
|
|
--- 1506,1523 ----
|
|
printf ("%*u ", block_size_size,
|
|
convert_blocks (ST_NBLOCKS (f->stat), kilobyte_blocks));
|
|
|
|
+ if (print_with_color)
|
|
+ color_off = print_color_indicator (f->stat.st_mode);
|
|
+
|
|
print_name_with_quoting (f->name);
|
|
|
|
+ if (color_off)
|
|
+ {
|
|
+ putchar (27);
|
|
+ putchar ('[');
|
|
+ putchar ('m');
|
|
+ }
|
|
+
|
|
if (indicator_style != none)
|
|
print_type_indicator (f->stat.st_mode);
|
|
}
|
|
***************
|
|
*** 1525,1530 ****
|
|
--- 1547,1594 ----
|
|
if (S_ISREG (mode) && indicator_style == all
|
|
&& (mode & (S_IEXEC | S_IEXEC >> 3 | S_IEXEC >> 6)))
|
|
putchar ('*');
|
|
+ }
|
|
+
|
|
+ int
|
|
+ print_color_indicator (mode)
|
|
+ unsigned int mode;
|
|
+ {
|
|
+ register char c;
|
|
+
|
|
+ c = 0;
|
|
+
|
|
+ if (S_ISDIR (mode))
|
|
+ c = '6';
|
|
+
|
|
+ #ifdef S_ISLNK
|
|
+ if (S_ISLNK (mode))
|
|
+ c = '4';
|
|
+ #endif
|
|
+
|
|
+ #ifdef S_ISFIFO
|
|
+ if (S_ISFIFO (mode))
|
|
+ c = '5';
|
|
+ #endif
|
|
+
|
|
+ #ifdef S_ISSOCK
|
|
+ if (S_ISSOCK (mode))
|
|
+ c = '3';
|
|
+ #endif
|
|
+
|
|
+ if (S_ISREG (mode)
|
|
+ && (mode & (S_IEXEC | S_IEXEC >> 3 | S_IEXEC >> 6)))
|
|
+ c = '2';
|
|
+
|
|
+ if (c)
|
|
+ {
|
|
+ putchar (27);
|
|
+ putchar ('[');
|
|
+ putchar (c == '4' ? '4' : '3');
|
|
+ putchar (c);
|
|
+ putchar ('m');
|
|
+ }
|
|
+
|
|
+ return c;
|
|
}
|
|
|
|
int
|
|
--
|
|
Greg Lee <lee@uhunix.uhcc.hawaii.edu>
|
|
|
|
------------------------------
|
|
|
|
|
|
** FOR YOUR REFERENCE **
|
|
|
|
The service address, to which questions about the list itself and requests
|
|
to be added to or deleted from it should be directed, is:
|
|
|
|
Internet: Linux-Activists-Request@NEWS-DIGESTS.MIT.EDU
|
|
|
|
You can send mail to the entire list (and alt.os.linux) via:
|
|
|
|
Internet: Linux-Activists@NEWS-DIGESTS.MIT.EDU
|
|
|
|
Linux may be obtained via one of these FTP sites:
|
|
nic.funet.fi pub/OS/Linux
|
|
tsx-11.mit.edu pub/linux
|
|
tupac-amaru.informatik.rwth-aachen.de pub/msdos/replace
|
|
|
|
The current version of Linux is 0.12, released on Jan 14, 1992
|
|
|
|
End of Linux-Activists Digest
|
|
******************************
|