Linux-Development-Sys Digest #440, Volume #6 Mon, 1 Mar 99 03:14:36 EST
Contents:
Re: SMP: slicing by -process- or -thread- ? (Bulent Murtezaoglu)
Re: ncurses port for vc? ("T.E.Dickey")
Lost interrupt with 2.2.2 on a PII system (Francois Baligant)
Real Programmers text editors (Dave)
Re: How to read/write com ports on PC? (Stefaan A Eeckels)
Panasonic Printer Driver for Linux (Ronald Simbarashe Mugamu)
lost lp with kernel 2.2.2 (George)
Re: Real Programmers text editors
Re: Real Programmers text editors (Ross Vandegrift)
Re: Panasonic Printer Driver for Linux ("David D. Gitchell")
Re: PROOF: Jesus *is* Lord of the Sabbath! (Pablo)
Re: PROOF: Jesus *is* Lord of the Sabbath! (Johan Kullstam)
Re: How to read/write com ports on PC? (Adam P. Jenkins)
Re: where got sis 6326 driver?
Looking for a local (Melbourne, Australia) developer to write small application
("Jonathan Zufi")
Printer Accounting (Leo)
Re: Don't want to loose win '98 docs etc.., & want Linux NOW! (Peter Samuelson)
Re: Some notes on glibc-2.1 and egcs-1.1.1 (Andreas Jaeger)
----------------------------------------------------------------------------
From: Bulent Murtezaoglu <[EMAIL PROTECTED]>
Subject: Re: SMP: slicing by -process- or -thread- ?
Date: 28 Feb 1999 18:42:39 -0500
>>>>> "PS" == Peter Samuelson <[EMAIL PROTECTED]> writes:
ME>> [...] AFAIK,
ME>> processes do not have processor affinity in the SMP Linux
ME>> kernel.
PS> Yes they do. And if you'd rather it was stronger or weaker,
PS> it's easy to adjust (requires a recompile): see the kernel
PS> source file linux/include/asm/smp.h (for your arch's asm/
PS> directory) and look for the PROC_CHANGE_PENALTY define.
Shows you what a good idea sticking an AFAIK in there was. I stand
corrected, thank you. That constant exists both in 2.0.* and 2.2.*
kernels, with values 15 and 20 respectively for x86. Where do I find
documentation on this other than the source itself?
BM
------------------------------
From: "T.E.Dickey" <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.c-programming,microsoft.public.vc.3rdparty
Subject: Re: ncurses port for vc?
Date: 1 Mar 1999 00:59:32 GMT
In comp.os.linux.development.system David Arcoleo <[EMAIL PROTECTED]> wrote:
> I am developing a a program on Linux and am also porting it to 95/NT.
> Does anyonw know if ncurses has been ported it 9/NT?
several people have reported building it with gcc under cygwin32.
(iirc, one or two people have reported building it with other compilers,
but they don't answer my email).
> -Dave
--
Thomas E. Dickey
[EMAIL PROTECTED]
http://www.clark.net/pub/dickey
------------------------------
From: Francois Baligant <[EMAIL PROTECTED]>
Subject: Lost interrupt with 2.2.2 on a PII system
Date: Sun, 28 Feb 1999 21:27:10 +0100
Hi.
We installed RH 5.2 on a Compaq Deskpro (PII 300) and upgraded to
kernel
2.2.2 as we needed support for serial ports with IRQ sharing. Since
the upgrade
we notice frequently in /var/log/messages problem about the root
harddisk
like this "hdb: lost interrupt" and then a reset sequence. This slow
down
the box a lot.
We disabled (U)DMA with hdparm in the hope it was something
related with bus-mastering but nothing changed.
Is it a know 2.2.2 problem or is the hardware broken ?
dmesg:
hdb: lost interrupt
hdb: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hdb: drive not ready for command
ide0: reset: success
kernel start:
ide: i82371 PIIX (Triton) on PCI bus 0 function 161
ide0: BM-DMA at 0x2040-0x2047
...
hda: Maxtor 90640D4, 6149MB w/256kB Cache, CHS=832, 240/64, UDMA
hdb: WDC AC26400B, 6149MB w/512kB Cache, CHS=832/240/63, UDMA
regards,
Francois
--
[Francois Baligant] - [[EMAIL PROTECTED]] - [aXs/pulpe]
.oO http://www.ping.be/guidu Oo.oO http://www.pc-partners.com Oo.
[Linux, for IQ higher than 95]-[Change the numbers,Change your life!]
------------------------------
From: [EMAIL PROTECTED] (Dave)
Crossposted-To:
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Real Programmers text editors
Date: 28 Feb 1999 19:46:01 -0600
In article <7bc7ma$499$[EMAIL PROTECTED]>, "Per Olsson"
<[EMAIL PROTECTED]> wrote:
> --
> Real programmers dont use WYSIWYG editors. They use YAFIYGI editors like
> edlin. (You Asked For It You Got It)
<chuckle>
I have a *very* old text file that was one of my very first BBS downloads
in 1982 or so. It has a line very similar to this.
OK, I just dig it out from an Apple // 3.5" ProDOS disk. A quote:
Some of the concepts in these Xerox editors have been
incorporated into editors running on more reasonable operating
systems- EMACS and VI being two. The problem with these editors
is that Real Programmers consider "what you see is what you get"
is just as bad a concept in Text Editing as it is in women. No,
the Real Programmer wants a "you asked for it, you got it" text
editor- complicated, cryptic, powerful, unforgiving, and danger-
ous. TECO, to be precise.
The document is called "Real Programmers don't use Pascal". It extolls
the virtues of mainframe FORTRAN. It's actually quite funny, and is also
quite a "time capsule", as it appears to have been written in 1982 or so.
I can upload it here if anyone is interested.
Dave
--
Brought to you by a Mac and a Windows proxy server.
Macs and PCs working together for a better world!
It *can* be done! :-)
Can't we all just get along?
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: How to read/write com ports on PC?
Date: 28 Feb 1999 23:39:41 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Deton8) writes:
> Hi,
> I've bought every Linux book there is and can't find out how to read and write
> characters from a PC serial port from a c program. All I need to be able to do
> is set up the baud rate & word structure, then check the input buffer flag
> and/or the transmitter ready flag, and input or output a byte as required.
> (Actually, this is a point -- will Linux let me operate the com ports on a PC
> in polling mode, or is it going to try to buffer the i/o for me?)
A serial port is a file (everything in UNIX is a file), and you
read from serial ports just as you would from any other file:
port = open("/dev/ttyS0", O_RDONLY|O_NOCTTY);
read(port, &buffer, 1); /* Read one character, blocking read */
close(port);
Add O_NDELAY to the open flags to get a non-blocking read; you'd
use this to check if a character is waiting (read returns the
number of characters read). You can also use the file descriptor
("port") in a select() statement, in conjunction with file descriptors
representing sockets, pipes (and even disk files).
Modifying tty parameters is done though the ioctl interface
(TCSETA, TCGETA). To set the baud rate and other parameters,
proceed as follows:
#include <sys/ioctl.h>
#include <termio.h>
struct termio ttypars;
int ttyspeed = B38400;
int ttybits = CS8; /* Eight data bits */
int ttystop = 0 /* One stopbit */
int ttyparity = 0; /* No parity */
ioctl(port, TCGETA, &ttypars);
ttypars.c_lflag = 0;
ttypars.c_oflag = OPOST | ONLCR | TAB0 | CR1 | VT1 | FF1 | OFILL;
ttypars.c_iflag = ICRNL | IXON | IXOFF;
ttypars.c_cflag = CREAD | ttyspeed | ttybits | ttyparity | ttystop;
ioctl(port, TCSETA, &ttypars);
Check the termio man page for details.
Take care,
--
Stefaan
--
PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exup�ry
------------------------------
From: Ronald Simbarashe Mugamu <[EMAIL PROTECTED]>
Subject: Panasonic Printer Driver for Linux
Date: Sun, 28 Feb 1999 23:38:59 +1100
Hi there,
How do I write a device driver for a Panasonic KX-P6100 6ppm laser
printer? Help me! It's the only thing stopping me from migrating
permanently to Linux.
Ronald
[EMAIL PROTECTED]
------------------------------
From: George <[EMAIL PROTECTED]>
Subject: lost lp with kernel 2.2.2
Date: Mon, 01 Mar 1999 00:33:46 GMT
Hello
I have upgraded from 2.0.35 to 2.2.2 and have lost printing
capabilities. I have read the changes documentation to no avail. I know
that lp1 becomes lp0 but my system fails to recognize this change. Any
way or command I must do so the system suse 5.3 will see the lp0. When I
try /proc/ioports it gives a permission denied response.
Any help is appreciated.
George
------------------------------
From: [EMAIL PROTECTED] ()
Crossposted-To:
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: Real Programmers text editors
Date: 1 Mar 1999 03:39:20 GMT
On 28 Feb 1999 19:46:01 -0600, Dave <[EMAIL PROTECTED]> wrote:
>In article <7bc7ma$499$[EMAIL PROTECTED]>, "Per Olsson"
><[EMAIL PROTECTED]> wrote:
>
>
>> --
>> Real programmers dont use WYSIWYG editors. They use YAFIYGI editors like
>> edlin. (You Asked For It You Got It)
>
><chuckle>
>
>I have a *very* old text file that was one of my very first BBS downloads
>in 1982 or so. It has a line very similar to this.
>
>OK, I just dig it out from an Apple // 3.5" ProDOS disk. A quote:
>
> Some of the concepts in these Xerox editors have been
> incorporated into editors running on more reasonable operating
> systems- EMACS and VI being two. The problem with these editors
> is that Real Programmers consider "what you see is what you get"
> is just as bad a concept in Text Editing as it is in women. No,
> the Real Programmer wants a "you asked for it, you got it" text
> editor- complicated, cryptic, powerful, unforgiving, and danger-
> ous. TECO, to be precise.
>
>The document is called "Real Programmers don't use Pascal". It extolls
>the virtues of mainframe FORTRAN. It's actually quite funny, and is also
>quite a "time capsule", as it appears to have been written in 1982 or so.
>
>I can upload it here if anyone is interested.
I would appreciate if you would e-mail it to me.
TIA
Michal
>
>Dave
>
>--
>Brought to you by a Mac and a Windows proxy server.
>Macs and PCs working together for a better world!
>It *can* be done! :-)
>
>Can't we all just get along?
--
Michal Sabala aka Saahbs
Linux'er since 0.97 :)
UIUC Class of 2002; ECE
Linux, hardware, C, Html,
aviation, rc-air models
http://fly.to/saahbs
------------------------------
From: Ross Vandegrift <[EMAIL PROTECTED]>
Crossposted-To: comp.sys.mac.misc,comp.sys.amiga.hardware
Subject: Re: Real Programmers text editors
Date: Sun, 28 Feb 1999 23:16:47 -0500
Reply-To: [EMAIL PROTECTED]
> >I can upload it here if anyone is interested.
>
> I would appreciate if you would e-mail it to me.
Nah, don't. I have read it before, and it is probably on
www.textfiles.com. If not, how about uploading to there to save
newsgroup space.
Damn... crazy cross-posting....
--
Ross Vandegrift | Eric J. Fenderson
ATTENTION: I have **finally** gotten my permit!!!
------------------------------
From: "David D. Gitchell" <[EMAIL PROTECTED]>
Subject: Re: Panasonic Printer Driver for Linux
Date: Sun, 28 Feb 1999 22:48:09 -0600
Ronald Simbarashe Mugamu wrote:
>
> Hi there,
>
> How do I write a device driver for a Panasonic KX-P6100 6ppm laser
> printer? Help me! It's the only thing stopping me from migrating
> permanently to Linux.
Why do you personally need to write a device driver for the KX-P6100?
GhostScript supports the HP LaserJet IIP, and the KX-P6100 emulates the
HP LJ2P in PCL mode. If you are using, for instance, RedHat 5.2, you
only need to tell the printtool that the printer is an HP LJ2P, and
you're go to go.
You can learn which devices your current version of GhostScript
supports by executing 'gs -help'
Enjoy!
-- Dave
============================================================
#include <std_disclaimer.h> /* I speak for myself, only. */|
============================================================
LCDR David D. Gitchell, USN (Retired), Hutchinson, KS, USA
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
------------------------------
Date: Sun, 28 Feb 1999 08:26:34 -0800
From: Pablo <[EMAIL PROTECTED]>
Crossposted-To:
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: PROOF: Jesus *is* Lord of the Sabbath!
"D�couvertes Tropicales" wrote:
>>
>> It's also against God's design for his sheep to eat lobster, clams,
>> crabs, abalone and Canadian bacon. I hope you aren't falling for any
>>
>> of these perverted desires. You'll never find your way out if you
>> do.
>
Clinton likes Canadian women. I think he considers woman to be bacon.
He has done a lot of good for the country so is he going to heaven or
hell?
>>
>>
>> --
>>
>> Ed
>
------------------------------
Crossposted-To:
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: PROOF: Jesus *is* Lord of the Sabbath!
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: 28 Feb 1999 11:32:44 -0500
Pablo <[EMAIL PROTECTED]> writes:
> "D�couvertes Tropicales" wrote:
>
> >>
> >> It's also against God's design for his sheep to eat lobster, clams,
> >> crabs, abalone and Canadian bacon. I hope you aren't falling for any
> >>
> >> of these perverted desires. You'll never find your way out if you
> >> do.
> >
> Clinton likes Canadian women. I think he considers woman to be bacon.
> He has done a lot of good for the country so is he going to heaven or
> hell?
this reminds me of that dog treat commercial.
IT'S BACON!!!
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
Subject: Re: How to read/write com ports on PC?
From: [EMAIL PROTECTED] (Adam P. Jenkins)
Date: 01 Mar 1999 00:15:23 -0500
[EMAIL PROTECTED] (Stefaan A Eeckels) writes:
> Modifying tty parameters is done though the ioctl interface
> (TCSETA, TCGETA). To set the baud rate and other parameters,
> proceed as follows:
>
> #include <sys/ioctl.h>
> #include <termio.h>
>
> struct termio ttypars;
termio is obsolete. Use termios instead.
> Check the termio man page for details.
There is no termio man page, but there is a termios manpage.
Here's the contents of /usr/include/termio.h on my system:
--- termio.h ---
/* Compatible <termio.h> for old `struct termio' ioctl interface.
This is obsolete; use the POSIX.1 `struct termios' interface
defined in <termios.h> instead. */
#include <termios.h>
#include <sys/ioctl.h>
--- end termio.h ---
Adam
--
Adam P. Jenkins
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: where got sis 6326 driver?
Date: 28 Feb 1999 02:10:52 GMT
> anyone who know where can download the sis 6326 driver for linux redhat 5.0?
> my displaycard is built-in the motherboard. and i couldnt load into
> xwindows...
>
You need XFree86-3.3.3.1 & XFree86-3.3.3.1-SVGA driver.
All available off the net in RPM format.
--
==============================================
Anti-Spamming Enabled in FQDN.
Email: gmkelly (at) zip (dot) com (dot) au
Sydney Linux User Group - Member
http://www.slug.org.au
==============================================
------------------------------
From: "Jonathan Zufi" <[EMAIL PROTECTED]>
Crossposted-To:
alt.linux,alt.linux.slakware,alt.linux.sux,alt.os.linux,alt.os.linux.caldera,alt.os.linux.slackware,alt.uu.comp.os.linux.questions,at.linux,aus.computers.linux,comp.os.linux,comp.os.linux.development.apps,comp.
Subject: Looking for a local (Melbourne, Australia) developer to write small
application
Date: Mon, 1 Mar 1999 17:23:16 +1100
Hello all.
We're looking for a local (Melbourne, Australia) developer to write a small
application
for the Linux platform. We have a spec and a prototype - no brainer, easy
money if you're good.
Please forward replies to [EMAIL PROTECTED]
Thanks for listening,
Regards,
Jonathan Zufi.
------------------------------
From: Leo <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux,comp.os.linux.misc,alt.unix.wizards,comp.os.linux.development.apps,comp.unix.admin,comp.unix.questions
Subject: Printer Accounting
Date: Mon, 01 Mar 1999 15:34:56 +0800
Hi wizards!
In RedHat 5.1, I tried to setup a print queue with accounting
so that all users' printing will be logged with no. of pages
printed. However, the log file won't update itself!
I added the line
:af=/var/spool/lpd/lp/acct:\
in /etc/printcap file;
then touch the file 'acct' in /var/spool/lpd/lp folder,
then set the file with lp.lp ownership while the
folder is in root.daemon ownership, with 755 mode for both
file and folder.
Then I restart lpd daemon (also lpc with stop and start
option). Root user can then type
# pac
and recognize the file /var/spool/lpd/lp/acct
as I tried to edit this file thru vi and 'pac'
does read this file which means lpd should have
chosen this file as the accounting log file.
However, when I issue 'lpr' command by normal users
or root, the printing is fine, but the 'acct' file
doesn't update at all!!!
I'd read the 4.3 BSD Line Printer Spooler Manual
but still can't see the problem. Any other accounting
binaries I need to run, like sa? Did I miss some other config
in some files, like syslogd.conf?
Wd anyone pls tell me what's wrong with
my printcap config? I used the HP4/5/6 Laserjet filter
as provided by RedHat 5.1, any conflicts with af: line?
Pls help! Thank you very much in advance
Leo.
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: Don't want to loose win '98 docs etc.., & want Linux NOW!
Date: 28 Feb 1999 16:14:00 -0600
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Carlos Vidal <[EMAIL PROTECTED]>]
> The alternative is to use a free program called 'fips', but I don't
> know if it works with Win98 file system (it works with Win95 but not
> with NTFS).
Yes. Gordon Chaffee (the kernel vfat/fat32 guy) distributes a
"fat32-enabled" FIPS from his ftp site. The patch was supposed to make
it into the main FIPS distribution; I assume it did. In any case
Chaffee's site has it:
http://www.bmrc.berkeley.edu/people/chaffee/fat32.html
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: Andreas Jaeger <[EMAIL PROTECTED]>
Subject: Re: Some notes on glibc-2.1 and egcs-1.1.1
Date: 01 Mar 1999 07:30:04 +0100
>>>>> Safuat Hamdy writes:
> Hi all,
> I just built glibc-2.1 with egcs-1.1.1 and binutils 2.9.1 (running linux
> 2.2.1 on i586, built with egcs-1.1.1, too) as recommended. I noted some
> very strange effect since then. Before I report a problem bug I'd like to
> know whether other people had the same or similar observations.
> 1. make and make check yield no errors and make install said that the
> installation is ok, but looking closer at the files the testprograms
> produce I found failures:
> $ find . -name "*.out" | xargs grep FAIL
> ./posix/runptests.out:regexp: "[^[.a.]b]", string: "abc" -> no match, FAIL
> [...]
This are expected, known failures.
> 2. programms compiled with gcc-2.8.1 and glibc-2.0.6 which previously worked
> well fail when recompiled with egcs-1.1.1 and glibc-2.1
> here make (3.77) is a good example (but others exist, moc from Qt is another
> one)
> [...]
> Did someone else made the same observations? Is there a way out of this
>uncomfortable situation?
Read the glibc2.1 FAQ:
4.6. I've build make 3.77 against glibc 2.1 and now make gets
segmentation faults.
> Btw.: Which feature test macro should be used to check the presence of glibc-2 (for
>autoconf,
> for instance)?
autoconf abstracts from different systems and shouldn't need to check
especially for glibc.
But if you really like to check for glibc, look at <features.h>:
/* Major and minor version number of the GNU C library package. Use
these macros to test for features in specific releases. */
#define __GLIBC__ 2
#define __GLIBC_MINOR__ 1
Andreas
--
Andreas Jaeger [EMAIL PROTECTED] [EMAIL PROTECTED]
for pgp-key finger [EMAIL PROTECTED]
------------------------------
** 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: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************