Linux-Development-Sys Digest #425

2001-01-17 Thread Digestifier

Linux-Development-Sys Digest #425, Volume #8 Wed, 17 Jan 01 10:13:11 EST

Contents:
  Re: newbie question: mapping heap to shared memory (Kasper Dupont)
  Re: 2.4.0 ISDN Problems (Holger Eitzenberger)
  New protocol ("hebre")
  Re: How to get CPU  Memory status in kernel? (Kasper Dupont)
  Re: New protocol (Kasper Dupont)
  Re: GetTickCount() in Linux? ("Slawek Grajewski")
  Block device driver for flash ("Slawek Grajewski")
  Re: make bzImage fails (Hauser Sepp)
  Re: su cannot run /bin/bash? was: 2.2.18 won't boot diskless (Ulrich Hahn)
  Re: realloc crashes with SIGSEGV ([EMAIL PROTECTED])
  modify /proc/sys/net/core/wmem_max from a kernel module (Jerome Tollet)
  Re: New protocol ("hebre")
  Re: Emacs window size. ("Slawek Grajewski")
  Re: Emacs window size. ("Slawek Grajewski")
  Re: Simple way to display an animation? (Michael Wimmer)
  Re: how to turn on/off the 3 LEDs on the keyboard? (Simon)
  depmod making dependecies of wrong modules dir ([EMAIL PROTECTED])
  Re: Emacs window size. (Thaddeus L Olczyk)



From: Kasper Dupont [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps
Subject: Re: newbie question: mapping heap to shared memory
Date: Wed, 17 Jan 2001 09:10:34 +

adwait wrote:
 
 Kasper,
 I want to create a single data structure in shared memory and use it from
 number of processes using semaphores and appropriate access privileges. I
 should be able to dynamically cast the heap in different processes and then
 use it. I can rephrase my question as follows;
 
 I need to know a way where by I can create a data structure in shared memory
 i.e. when I say new to create an object I should be able to create the object
 with staring address of shared memory.
 
 Please help
 
 Adwait

I can think of two ways to do this either by using a shared
memory segment or a shared memory mapped file.

The shared memory segment can be allocated using shmget,
mapped using shmat, and deleted using shmctl.

The file is created using open or creat, mapped using mmap,
resized using truncate, and deleted using unlink.

Which solution you should use depends on the lifetime of
the datastructure. If the datastructure should exist even
at times when no program is using it I suggest files, if
the datastructure should be deleted when the last process
stops using it you can use a shared memory segment.

You cannot expect to map the structure at same address in
all processes, so shared memory should never contain
pointers. Instead of pointers write offset in bytes from
start of shared memory.

You might have to write some routines to handle allocation
and deallocation of shared memory. For example you could
implement two routines:
  int shared_malloc(size_t size);
  void shared_free(int ptr);

I don't know about synchronisation, but I would expect
file locks using fcntl would work for the file solution.

I don't know if you can allocate C++ objects in the shared
memory, but I can point out lots of potential problems.

Imagine the problem when an object created by one
executable is at a later mapped by another executable. The
executables could be two different programs or just two
different versions of the same program. The objects class
might not exist in the other executable, or if it exists
the methods could have changed or just be located at
another address in the executable.

-- 
Kasper Dupont

--

From: [EMAIL PROTECTED] (Holger Eitzenberger)
Subject: Re: 2.4.0 ISDN Problems
Date: Wed, 17 Jan 2001 10:08:55 +0100

In article 941i0b$6hd$[EMAIL PROTECTED], Morten Bøhmer wrote:

I'm experiencing problems with the 2.4 release of the linux kernel. After
compiling my kernel configuration, and recompiling the other packages
(isdn4kutils etc.). When I connect one isdn line i works ok, but when i
disconnect the machine freezes!!!

Does anyone have a solution to this problem?

Did you read ./linux/Documentation/Changes for the things you need to
update?  I am running 2.4.0 with recompiled isdnutils 3.0 and all works
fine here but i had to update several things (like modutils, e2fsprogs,
...).

Regards.

Holger



-- 
+++ Debian GNU/Linux [EMAIL PROTECTED] +++ ICQ: 2882018 +++
++ GnuPG public key - http://www.t-online.de/~eitzenberger ++

--

From: "hebre" [EMAIL PROTECTED]
Subject: New protocol
Date: Wed, 17 Jan 2001 12:09:11 +0300

Does anybody know how write some protocol to use it with Sockets.
I want to use SSL with standard Sockets API. This protocol sould be over
TCP/IP.

If You'll put here some links, I'll happy.


Thanks.





--

From: Kasper Dupont [EMAIL PROTECTED]
Subject: Re: How to get CPU  Memory status in kernel?
Date: Wed, 17 Jan 2001 09:24:31 +

Chien-Hwa Hwang wrote:
 
 Hi,
 
 I have a question. Does anybody know that how to get CPU usage 

Linux-Development-Sys Digest #425

1999-02-23 Thread Digestifier

Linux-Development-Sys Digest #425, Volume #6 Tue, 23 Feb 99 21:13:58 EST

Contents:
  Re: PROOF: Jesus *is* Lord of the Sabbath! (David Cornelius)
  Re: PROOF: Jesus *is* Lord of the Sabbath! ("Jürgen Exner")
  How to put Linux in suspend mode? (Tim Isaev)
  Re: Create Bootable RH 5.2 CD? (Marc Lefranc)
  Re: why do some processes die for no reason? (Chris Mahmood)
  Re: sound card IRQ conflict (Chris Mahmood)
  Re: Microsecond resolution (Felix Rauch)
  Re: LINUX MERCED (Peter Samuelson)
  Re: ssa driver for linux 2.2 (Steve A)
  Re: ssa driver for linux 2.2 (Steve A)
  Re: PROOF: Jesus *is* Lord of the Sabbath! ("Michael J. Levesque")
  "RPM's harmful to Linux" harmful to Linux (Christopher Browne)
  Re: PROOF: Jesus *is* Lord of the Sabbath! ("Jim H.")



From: [EMAIL PROTECTED] (David Cornelius)
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!
Reply-To: [EMAIL PROTECTED] (David Cornelius)
Date: Tue, 23 Feb 1999 19:20:38 GMT

 I don't usually get in the middle of threads like this, but I just
can't help wondering how people can be publicly gay and also call
themselves Christian. The Bible, where Christians base their belief,
clearly states that same-sex couples (sexually-intimate couples), are
completely disgusting--an abomination to the Lord. In fact, that's one
of the main reasons Sodom and Gomorrah (spelling?) were destroyed.

It's not really a narrow-minded issue, it's just the way we were
created. Now, sin has plagued humanity for so many centuries, it may
be easier for some to fall into perverted desires. However, God does
not change. And He also offers a way out.

I'm not condemning. I also don't go around marching against gay rights
(or for them!). Just like I don't put people down for smoking. Hell,
I'm 40 pounds overweight--is that any less of a sin? What I'm saying
is, it really bothers me when people come across like they're proud to
be something that totally goes against God's design for us, and in the
same sentance declare themselves Christian. I just can't sit quietly.

--dc.


"Jim H." [EMAIL PROTECTED] wrote the following on Sun, 21 Feb 1999
13:49:34 -0800:

The assumption seems to be that just because we are gay, we can't also be
Christians. It's a pretty narrow minded viewpoint. If we don't practice our
religion and worship EXACTLY like he does we must be wrong. Well, if there
really is a day of reckoning there will be one hell of a big line of
"so-called" Christians trying to come up with the right answers.

JL wrote:

 You have to wonder, if the guy is such a 'law abiding' Christian, then why
 is he cruising through what is so obviously a GAY News Group ?

 I think he doth protest too much - just like a little closet case




David Cornelius  [EMAIL PROTECTED]  http://206.251.85.126
Programmer Analyst for Loy Clark Pipeline, Beaverton, Oregon

--

From: "Jürgen Exner" [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: Tue, 23 Feb 1999 14:48:09 -0800

I'm sure someone can explain, what this trash has to do with the development
of the Linux operating system or hardware for the Amiga?

jue

Ed Rodda wrote in message ...
[EMAIL PROTECTED] (David Cornelius) writes:

 I don't usually get in the middle of threads like this, but I just
can't help wondering how people can be publicly gay and also call
themselves Christian.

Why not?  There's nothing in the Christian part of the bible, i.e. the
New Testament, forbidding homosexual conduct. In fact, Christ makes no
mention of homosexuality. But he did mention eunuchs; apparently he
was big on eunuchs. I think Christ was gay; he seems to have liked the
guys a lot; there's no mention in the bible of any girl friends.

The Bible, where Christians base their belief, clearly states that

Judaists and Muslims base their belief on the same bible.

same-sex couples (sexually-intimate couples), are completely
disgusting--an abomination to the Lord. In fact, that's one of the
main reasons Sodom and Gomorrah (spelling?) were destroyed.

Interesting, you state this as a fact. Where's the archaeological
evidence?

It's not really a narrow-minded issue, it's just the way we were

Of course it's a narrow-minded issue, promulgated by narrow-minded
people, such as yourself.

created. Now, sin has plagued humanity for so many centuries, it may
be easier for some to fall into perverted desires. However, God does
not change. And He also offers a way out.

Apparently you have to be a Christian to find your way out, Muslims,
Judaists and others needn't bother applying.

I'm not condemning. I also don't go around marching against gay rights
(or for them!). Just li