Linux-Development-Sys Digest #441, Volume #6      Mon, 1 Mar 99 14:14:21 EST

Contents:
  Re: ATX Power Off problem ("Zefram Cochrane")
  2.2.2 and MO devices (Mike Dowling)
  Re: Real Programmers text editors ("Per Olsson")
  Re: POSIX.1 Shared mem support (Malcolm Beattie)
  Re: How to read/write com ports on PC? (Stefaan A Eeckels)
  Re: PROOF: Jesus *is* an iMac ("Per Olsson")
  Re: Will 2.2.x support removable medias better? (Julian Robert Yon)
  Re: Real Programmers text editors ("Per Olsson")
  Re: POSIX.1 Shared mem support (Erik Svensson)
  Re: PROOF: Jesus *is* an iMac ("Découvertes Tropicales")
  Re: PROOF: Jesus *is* Lord of the Sabbath! (Julian Robert Yon)
  Sockets & C++ ([EMAIL PROTECTED])
  Re: running from a cdrom (ie, a mostly read-only filesystem)? (Julian Robert Yon)
  Re: PROOF: Jesus *is* Lord of the Sabbath! (Julian Robert Yon)
  Re: lost lp with kernel 2.2.2 (Rainer Krienke)
  ansi - iso standard c function definitions ("Geoffrey C Trott")
  Re: PROOF: Jesus *is* Lord of the Sabbath! (Stuart Bell)
  Re: PROOF: Jesus *is* Lord of the Sabbath! ("Découvertes Tropicales")
  capturing keyboard input? (John DeBoard)
  equivalent of directCD ???? ("Thierry BUCCO")
  Re: Real Programmers text editors (Bedos)
  Re: PROOF: Jesus *is* an iMac (Bedos)
  Re: Printer Accounting (Grant Taylor)
  Re: PROOF: Jesus *is* Lord of the Sabbath! ("Mathiaxe")

----------------------------------------------------------------------------

From: "Zefram Cochrane" <[EMAIL PROTECTED]>
Subject: Re: ATX Power Off problem
Date: Sun, 28 Feb 1999 22:03:00 -0000


star wrote in message <3TGYCW$[EMAIL PROTECTED]>...

>I now have a temporary solution:
>
>modem ring-in power up option. So what I will do is to connect
>a cheap 14400 modem to a COM port with its power not connected to
>UPS. Now, when the power resumes, the modem will be turned on


Why not just knock up a piece of electronics with a relay and
555 timer or something so that when an interruption to mains
power is followed by resumption of power, it flicks this relay
closed for 2s, and then open again. Needless to say, stick the
relay across the momentary "power" button on your ATX case.

This is cheaper than using an (admittedly old) modem, surely ?

Richard [in PE12]




------------------------------

From: [EMAIL PROTECTED] (Mike Dowling)
Subject: 2.2.2 and MO devices
Date: 1 Mar 1999 09:41:06 GMT

For the life of me, I could neither mount nor perform a fsck on a MO device
this morning using 2.2.2.  I then rebooted 2.2.1, and could do both.

Is there something broken with 2.2.2?  My guess is that it could be the
result of the 2048 block size.

Cheers,
  Mike

-- 
My email address [EMAIL PROTECTED] above is a valid email address.
It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
Spammed aliases will be deleted.  Currently, mike[5,7,8] have been deleted.
If email to mikeN bounces, try mikeN+1.

------------------------------

From: "Per Olsson" <[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: Mon, 1 Mar 1999 11:45:58 +0100

Great! I didn't know the original source of my sig. I would be happy if you
posted the file here or sent me a copy to mailto:[EMAIL PROTECTED]

/Per Olsson

--
Real programmers dont use WYSIWYG editors. They use YAFIYGI editors like
edlin. (You Asked For It You Got It)


Dave wrote in message ...
>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.


[snip]

>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.



------------------------------

From: [EMAIL PROTECTED] (Malcolm Beattie)
Subject: Re: POSIX.1 Shared mem support
Date: 1 Mar 1999 11:02:11 GMT

In article <7b4kfb$20vk$[EMAIL PROTECTED]>,
bill davidsen <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Erik Svensson  <[EMAIL PROTECTED]> wrote:
>
>| I'm looking at doing shared memory stuff on Linux and it doesn't seem
>| to support POSIX shared memory. Is there any effort towards
>| implementing that or am i stuck with mmap?
>
>I thought the SysV stuff was POSIX.1. What are you missing?

No, the POSIX.1b API for shared memory is shm_open(), ftruncate()
(sic, to set the size) then...mmap(). (There's also shm_unlink()).
So whether you use POSIX or not, you still use mmap(). The
differences between BSD and POSIX mmap are slight, e.g. shm_open()
uses void* rather than caddr_t. The SysV API never got into POSIX,
thankfully.

--Malcolm

-- 
Malcolm Beattie <[EMAIL PROTECTED]>
Oxford University Computing Services
"I permitted that as a demonstration of futility" --Grey Roger

------------------------------

From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: How to read/write com ports on PC?
Date: 1 Mar 1999 09:11:43 GMT

In article <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (Adam P. Jenkins) writes:
> [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.
That'll teach me to dig up old code :-(

-- 
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: "Per Olsson" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: PROOF: Jesus *is* an iMac
Date: Mon, 1 Mar 1999 11:39:39 +0100

Pablo wrote in message <[EMAIL PROTECTED]>...

> Per Olsson wrote:

>> Is Jesus an iMac?

No. I didn't write that.

--
Real programmers dont use WYSIWYG editors. They use YAFIYGI editors like
edlin. (You Asked For It You Got It)



------------------------------

From: Julian Robert Yon <[EMAIL PROTECTED]>
Subject: Re: Will 2.2.x support removable medias better?
Date: Mon, 01 Mar 1999 11:41:48 +0000

Jim Cromie wrote:

> casual observation says it can.  On my CD-ROM drive (yes, its one of the
> irrelevant devices), the
> eject button is ignored until un-mounted.  Some (not mine) floppys do it too.  Id
> anticipate that its
> a standard feature on new devices.

It happens on ZIPs too - it's a hardware feature. What happens is that
mounting a removable drive sends it a lock signal, and unmounting
unlocks it. Some hardware remembers that the eject button was pressed,
and ejects as soon as the drive is unlocked. However, I don't think the
driver is informed of this fact.

Julian
 
~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED]
[EMAIL PROTECTED]

------------------------------

From: "Per Olsson" <[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: Mon, 1 Mar 1999 11:58:01 +0100

I found the file at http://www.home.fh-karlsruhe.de/~fema0012/realp.htm

Per Olsson wrote in message <7bdr1o$fka$[EMAIL PROTECTED]>...
>Great! I didn't know the original source of my sig. I would be happy if you
>posted the file here or sent me a copy to mailto:[EMAIL PROTECTED]



------------------------------

Date: Mon, 01 Mar 1999 12:52:51 +0100
From: [EMAIL PROTECTED] (Erik Svensson)
Subject: Re: POSIX.1 Shared mem support

In article <7bds3j$pet$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Malcolm
Beattie) wrote:

> In article <7b4kfb$20vk$[EMAIL PROTECTED]>,
> bill davidsen <[EMAIL PROTECTED]> wrote:
> >In article <[EMAIL PROTECTED]>,
> >Erik Svensson  <[EMAIL PROTECTED]> wrote:
> >
> >| I'm looking at doing shared memory stuff on Linux and it doesn't seem
> >| to support POSIX shared memory. Is there any effort towards
> >| implementing that or am i stuck with mmap?
> >
> >I thought the SysV stuff was POSIX.1. What are you missing?
> 
> No, the POSIX.1b API for shared memory is shm_open(), ftruncate()
> (sic, to set the size) then...mmap(). (There's also shm_unlink()).
> So whether you use POSIX or not, you still use mmap(). The
> differences between BSD and POSIX mmap are slight, e.g. shm_open()
> uses void* rather than caddr_t. The SysV API never got into POSIX,
> thankfully.

Perhaps I didn't express myself clearly, I wanted to avoid memory mapping
a file. I'm writing stuff for CGI:s where I keep a list of connected users
in memory. The reason I don't want to use Sys V shm is that I can't easily
grow the memory area. I have to delete the area and then recreate the new
bigger area, instead of just growing it.

cheers

Erik Svensson, Phlogiston
[EMAIL PROTECTED]

------------------------------

From: "Découvertes Tropicales" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: PROOF: Jesus *is* an iMac
Date: Mon, 01 Mar 1999 12:56:49 +0100

I DON T THIK THIS IS THE RIGHT PLACE FOR YOUR MESSAGES
I LOVE JESUS BUT YOUR MESSAGES HAVE NOTHING TO DO ON THIS FRENCH TRAVEL
NEWS
THANKS AND GOOD BYE




------------------------------

From: Julian Robert Yon <[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!
Date: Mon, 01 Mar 1999 11:47:17 +0000

Découvertes Tropicales wrote:
> 
> I DON T THIK THIS IS THE RIGHT PLACE FOR YOUR MESSAGES
> I LOVE JESUS BUT YOUR MESSAGES HAVE NOTHING TO DO ON THIS FRENCH TRAVEL
> NEWS
> THANKS AND GOOD BYE

This being a Linux newsgroup, your comments on French Travel have no
place here.

Merci, et au revoir.
 
~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED]
[EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED]
Subject: Sockets & C++
Date: 1 Mar 1999 12:01:31 GMT

Hi all!

I work on a project which heavily uses normal TCP and UDP sockets in
combination with C++. It all works fine, but I'd like to get rid of one
annoying compilation warning I get. Seems like C++ doesn't really like the
'struct sockaddr_in'-structure, which apparently has some padding (empty)
at the end. How can I remove the warning below? I try to put pride in
making my code compile with '-Wall -pedantic', as I then minimize the
number of stupid mistakes.

<snip from compilation>
....
Compiling TeamHandling.cpp ...
In file included from /usr/include/sys/socket.h:34,
                 from TeamHandling.cpp:45:
/usr/include/socketbits.h:173: warning: ANSI C++ forbids zero-size array
`__cmsg_data'
...

The same comes from all files which use sockets, and real warnings
easily get lost in all these warnings. Any help would be very appreciated!

        Regards,
        Jan Ekholm

-- 
=====================+======================================================
 Jan 'Chakie' Ekholm |    CS at Åbo Akademi University, Turku, Finland
    Linux Inside     | I'm the blue screen of death, no-one hears you scream

------------------------------

From: Julian Robert Yon <[EMAIL PROTECTED]>
Subject: Re: running from a cdrom (ie, a mostly read-only filesystem)?
Date: Mon, 01 Mar 1999 11:54:47 +0000

BL wrote:

> anyone ever done anything like this before?

I believe SuSE can do it.

~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED]
[EMAIL PROTECTED]

------------------------------

From: Julian Robert Yon <[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!
Date: Mon, 01 Mar 1999 11:50:05 +0000

Découvertes Tropicales wrote:
 
> WILL YOU PLEASE STOP SPAMMING THIS NEWSGROUP!!!!!

Will ___YOU___ please stop spamming innocent people. I have no interest
in your "French Travel News" and do not accept your right to send me
such a message.

~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED]
[EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED] (Rainer Krienke)
Subject: Re: lost lp with kernel 2.2.2
Date: 1 Mar 1999 09:09:19 GMT

[Posted and mailed]

In article <[EMAIL PROTECTED]>,
        George <[EMAIL PROTECTED]> writes:
> 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
> 

Had a similar Problem when upgrading from 2.0.36 to 2.2.2. The trouble
was, that I had tried to compile parallel port support as a module.
Later when kmod tried to load the module it said that there was a symbol
"request_module" missing. Dont  forget to include the config option
for pc parallel hardware (if you have one). When I compiled paralleport
support (including pc hardware option) into the kernel (not as a module)
it worked just fine.


Regards Rainer Krienke

-- 
=====================================================================
Rainer Krienke                     [EMAIL PROTECTED]
Universitaet Koblenz,              http://www.uni-koblenz.de/~krienke
Rechenzentrum,                     Voice: +49 261 287 - 1312
Rheinau 1, 56075 Koblenz, Germany  Fax:   +49 261 287 - 1355
=====================================================================

------------------------------

From: "Geoffrey C Trott" <[EMAIL PROTECTED]>
Crossposted-To: 
aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.networking,cz.comp.linux,han.comp.linux
Subject: ansi - iso standard c function definitions
Date: Mon, 1 Mar 1999 01:47:03 -0000

visit http://members.aol.com/wantondeb















------------------------------

From: [EMAIL PROTECTED] (Stuart Bell)
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!
Date: Mon, 1 Mar 1999 14:10:11 +0000

Julian Robert Yon <[EMAIL PROTECTED]> wrote:

> Découvertes Tropicales wrote:
> > 
> > I DON T THIK THIS IS THE RIGHT PLACE FOR YOUR MESSAGES
> > I LOVE JESUS BUT YOUR MESSAGES HAVE NOTHING TO DO ON THIS FRENCH TRAVEL
> > NEWS
> > THANKS AND GOOD BYE
> 
> This being a Linux newsgroup, your comments on French Travel have no
> place here.
> 
> Merci, et au revoir.
>  


No, it's not! It's a Mac group! ;-)

Why do people keep such off-topic threads going?

-- 
Stuart Bell - happily working on Macs in a Wintel-free zone
  PB-100 FAQ at www.argonet.co.uk/users/sabell/pb100.html
  JR's Duo FAQ at www.argonet.co.uk/users/sabell/duo.html
 6400/6500 users: http://hometown.aol.com/tmk12v/home.html

------------------------------

From: "Découvertes Tropicales" <[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!
Date: Mon, 01 Mar 1999 16:22:50 +0100


==============05E359DFDCF8D114A1FBD0C4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

 sorry, but fr.rec.voyages is a french travel newsgroup, so, please take it
 off from your address list
 thank you and     ADIEU!!!

==============05E359DFDCF8D114A1FBD0C4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
&nbsp;<B><I><U>sorry, but fr.rec.voyages is a french travel newsgroup,
so, please take it</U></I></B>
<BR><B><I><U>&nbsp;off from your address list</U></I></B>
<BR><B><I><U>&nbsp;thank you and&nbsp;&nbsp;&nbsp;&nbsp; ADIEU!!!</U></I></B></HTML>

==============05E359DFDCF8D114A1FBD0C4==


------------------------------

From: John DeBoard <[EMAIL PROTECTED]>
Subject: capturing keyboard input?
Date: Mon, 01 Mar 1999 09:18:14 -0500

Any programmers out there  know how to capture keyboard input using C.
DOS had the getch() thing, I notice that there is a curses getch but I
was just wondering if there was some sort of way to get to things on a
kernel level, like catching the kbd interrupt, then translating it..

John DeBoard
[EMAIL PROTECTED]

------------------------------

From: "Thierry BUCCO" <[EMAIL PROTECTED]>
Subject: equivalent of directCD ????
Date: Mon, 01 Mar 1999 03:04:56 +0100

Hi,


I saw that exist a patch to see udf file system.
But does exist an application to record into cd like directCD (cdrecord ?)

Thaks for your answer
thierry - FRANCE

------------------------------

From: [EMAIL PROTECTED] (Bedos)
Crossposted-To: 
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: Real Programmers text editors
Date: Mon, 1 Mar 1999 18:50:59 +0100

Per Olsson <[EMAIL PROTECTED]> wrote (écrivait) :

> I found the file at http://www.home.fh-karlsruhe.de/~fema0012/realp.htm
> 
> Per Olsson wrote in message <7bdr1o$fka$[EMAIL PROTECTED]>...
> >Great! I didn't know the original source of my sig. I would be happy if you
> >posted the file here or sent me a copy to mailto:[EMAIL PROTECTED]
18 heures 14

-- 
Cordialement

------------------------------

From: [EMAIL PROTECTED] (Bedos)
Crossposted-To: 
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: PROOF: Jesus *is* an iMac
Date: Mon, 1 Mar 1999 18:50:58 +0100

Découvertes Tropicales <[EMAIL PROTECTED]> wrote (écrivait) :

> I DON T THIK THIS IS THE RIGHT PLACE FOR YOUR MESSAGES
> I LOVE JESUS BUT YOUR MESSAGES HAVE NOTHING TO DO ON THIS FRENCH TRAVEL
> NEWS
> THANKS AND GOOD BYE
Si, le Kenya, c'est super

-- 
Cordialement

------------------------------

From: Grant Taylor <[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: Re: Printer Accounting
Date: 01 Mar 1999 12:52:33 -0500

Leo <[EMAIL PROTECTED]> writes:

> 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;

The printcap 'af' attribute and pac are vestigial remnants of lpd's
line printer heritage.  Very few people use them...

Printer accounting is, I believe, the responsibility of the input
filter.  Red Hat's filters do not support accounting, and I don't
think that apsfilter or magicfilter, the other two popular filter
packages, do either.

The 'af' filename is passed as one of the arguments to the input
filter at runtime; it's up to the if to count the pages and note who
printed how many in the af file.  "Pac" is something you could
reimplement better in Perl in two minutes; I suggest that you do so so
that you can better debug and customize.

The real catch here is that you must somehow determine the number of
pages in what you print.  For text, that's straightforward.  For
Postscript, that's less so.  DSC-conformant postscript will tell you
in a comment, I think, but perfectly legal ad-hoc postscript will not.

Ideally, there would be some way to have Ghostscript tell the if how
many pages got printed; then you'd know for sure.  A Postscript wizard
will have to volunteer that information.  Or one of the ps tools
packages floating around might have a functional page counter
utility...

-- 
Grant Taylor - gtaylor@picante<dot>com - http://www.picante.com/~gtaylor/
 Cellphone information: http://www.picante.com/~gtaylor/cell/
 Libretto information:  http://www.picante.com/~gtaylor/portable/
 Linux Printing HOWTO:  http://www.picante.com/~gtaylor/pht/

------------------------------

From: "Mathiaxe" <[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!
Date: Mon, 1 Mar 1999 19:43:36 -0000

Dis, le gourou comment on dit "Tu me les gonfles" en anglais ?
Tu dois confondre internet et radio Vatican. Jean Paul n'est pas ici !
Mathiaxe

Mitch Fellator <[EMAIL PROTECTED]> a écrit dans le message :
[EMAIL PROTECTED]
|On Mon, 01 Mar 1999 16:22:50 +0100, "Decouvertes Tropicales"
|<[EMAIL PROTECTED]> wrote:
|Get Jesus outta my underwear group!!!
|Adios


------------------------------


** 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
******************************

Reply via email to