Linux-Development-Sys Digest #786, Volume #7     Thu, 20 Apr 00 05:14:21 EDT

Contents:
  Re: MS caught breaking web sites ("Selious")
  sockets/threads (SergDC)
  Re: MICROSOFT IT THRU!  MICROSOFT IS THRU! ("Christopher Smith")
  a question about struct "timeval" (E.T.Hou)
  Re: mutux for screen output (Kaz Kylheku)
  Re: Select() in Linux 2.2.5 - threadsafe? (Kaz Kylheku)
  Re: How do I make a program run on localhost:200 ("Mike Spooner")
  Shell in C++ (Rose Gorlekian)
  Re: binutils, missing objdump options and linux 2.0.36+ (Paul Kimoto)
  Re: Driver that use UDP protocols (Pankaj Chhabra)
  Re: Overlay filesystem (aka union, translucent, inheriting)? (Mario Klebsch)
  Re: linux & NOT knfs (not kernel nfs) (Mario Klebsch)
  US-MA WEB SERVER ARCHITECT** WILL RELOCATE ("A.C.I.")
  Re: Shell in C++ (Lee Webb)
  Re: binutils, missing objdump options and linux 2.0.36+ (Chris)
  Debuger for Linux (Igor)
  Re: Debuger for Linux (John Gluck)
  Linux loses packets ("Duke Lee")
  Re: Compiling glibc-2.1.3 (Juergen Heinzl)
  pre5 breaks inn ? ("Andrew Stubbs")
  Re: Shell in C++ (Johan Kullstam)
  Help!  Need driver for Trident Cyberblade /i7 ("Frank A. Gerbode")
  Re: kernel communicate with module (Michael Kelly)
  Re: Debuger for Linux (nightstalker)
  Obtaining Program Counter (Thomas van Gulick)
  Where can I find syntax page for make utility for Linux ("Long")
  Re: Have memcpy_fromfs() and memcpy_tofs() been replaced by something else in kernel 
2.2.12? ("Long")
  Re: What's the difference between bzImage and zImage ("[EMAIL PROTECTED]")
  Re: To core or not to core - You tell me (Mark McIntyre)
  Re: To core or not to core - You tell me (Mark McIntyre)

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

From: "Selious" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: Tue, 18 Apr 2000 16:46:55 +0200

But...netscape developers ARE weenies !!




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

From: [EMAIL PROTECTED] (SergDC)
Subject: sockets/threads
Date: 18 Apr 2000 15:06:38 GMT

forgive me if tihs is in wrong group:


i have an app (in windows) that starts a new thread everytime a new socket is
opened.  of course there are limits (max number of total window handles, etc)

does anyone know what the limits are in linux?

many thanks

[EMAIL PROTECTED]

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

From: "Christopher Smith" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MICROSOFT IT THRU!  MICROSOFT IS THRU!
Date: Wed, 19 Apr 2000 01:32:43 +1000


<@ .> wrote in message news:xdUK4.13078$[EMAIL PROTECTED]...
> OK, Who left the door to the loony bin open?

Derek the Mac advocate must have forgotten to shut it when he went home.



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

From: E.T.Hou <[EMAIL PROTECTED]>
Subject: a question about struct "timeval"
Date: Tue, 18 Apr 2000 23:36:36 +0800


In man of functiion gettimeofday
struct timeval is the time value from ITU 1970,  have two element
  long tv_sec
  long tv_usec

my question is :
(1)what happen when the value is overload( both element )?? reset to zero??
(2)when I got the value 
   956072481 s, 547153 us
    547153us is the value after 956072481sec of UTC1970??



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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: mutux for screen output
Reply-To: [EMAIL PROTECTED]
Date: Tue, 18 Apr 2000 16:39:01 GMT

On Tue, 18 Apr 2000 10:26:06 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>Ruppert R. Koch <[EMAIL PROTECTED]> wrote:
>: Hi all,
>
>: to get some debug info, I put a printf in a signal
>: handler. The result was that the process froze from
>
>Ick! Not a good idea. If you really have to do debug
>in a signal handler, do something like this:
>
>void
>catch_sig (int sig)
>{
>  static const char msg[] = "Ping!\n";
>
>  write (2, msg, sizeof msg - 1);
>  
>  /* etc. */
>}
>
>The reason is that high-level functions like printf are
>generally not safe to be called from signal handlers. In
>fact (IIRC - and this may be folklore ...) the only functions
>you're really *allowed* to call from a signal handler are
>signal(2) and exit(2).

It's folklore. In actuality, you are allowed to call any functions that are
designated as async-safe. POSIX requires certain functions to be async safe;
implementations may extend the repertoire. These functions are:

_exit, access, alarm, cfgetispeed, cfgetospeed, cfsetispeed, cfsetospeed,
chdir, chmod, chown, close, creat, dup, dup2, execle, execve, fchmod, fchown,
fcntl, fork, fpathconf, fstat, fsync, ftruncate, getegid, geteuid, getgid,
getgroups, getpgrp, getpid, getppid, getuid, kill, link, lseek, lstat, mkdir,
mkfifo, open, pathconf, pause, pipe, raise, read, readlink, rename, rmdir,
setgid, setpgid, setsid, setuid, sigaction, sigaddset, sigdelset, sigemptyset,
sigfillset, sigismember, signal, sigpending, sigprocmask, sigsuspend, sleep,
stat, symlink, sysconf, tcdrain, tcflow, tcflush, tcgetattr, tcgetpgrp,
tcsendbreak, tcsetattr, tcsetpgrp, time, times, umask, uname, unlink, utime,
wait, waitpid, write

As well as these realtime functions (not all of which are in glibc yet):

aio_error, aio_return, aio_suspend, clock_gettime, fdatasync, sem_post,
sigpause, sigqueue, sigset, timer_getoverrun, timer_gettime, timer_settime

Traditionally, any library function which is implemented directly as a wrapper
for a system call is safe to be called from signal handlers. Such functions
cannot be interrupted by a signal because they execute in the kernel. The
wrapper code can be interrupted, but it's typically very simple and reentrant,
except for assigning a value to the errno variable.

-- 
#exclude <windows.h>

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Select() in Linux 2.2.5 - threadsafe?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 18 Apr 2000 16:40:30 GMT

On Tue, 18 Apr 2000 10:04:19 GMT, Roger <[EMAIL PROTECTED]> wrote:
>Hi,
>    I'm writing a multithreaded application (Redhat 2.2.5) and I have
>simultaneous selects calls for a number of threads (each with a
>different set of target sockets). Is this a kosher use of select - or
>should all select calls be corralled within a single thread?

The select function is a system call that can be used by multiple processes,
so it is safe. Linux threads are just processes that share certain resources,
like the address space, file descriptor table and signal handlers.

-- 
#exclude <windows.h>

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

From: "Mike Spooner" <[EMAIL PROTECTED]>
Subject: Re: How do I make a program run on localhost:200
Crossposted-To: comp.unix.questions,comp.unix.programmer,comp.os.linux.development.apps
Date: Tue, 18 Apr 2000 16:50:20 GMT



Charles Bryant <[EMAIL PROTECTED]> wrote in article
<[EMAIL PROTECTED]>...
> In article <38fabdf5$0$[EMAIL PROTECTED]>,
> Peet Grobler <[EMAIL PROTECTED]> wrote:
> >Okay, I assume this must be possible, otherwise nobody would be using
UNIX.
> >
> >Anyways, running Mandrake Linux 7.0 at home. I was thinking, how would
you
> >make a program run on a specified port?
> >
> >E.g. in /etc/inittab, you have an entry that respawns getty on tty1 to
tty6.
> >I want to do something like that, just on a specified port.
> >
> >E.g. let's say I wrote a special getty program. I want it to sit on port
> >200, waiting for connections. Do I have to write the program to
specifically
> >open a port, or can I use some script somewhere to get the program's
stdin
> >to be changed to a port???
> 
> You don't have to. See tcpserver in the ucspi-tcp tools by Dan
> Bernstein at http://cryp.to/ucspi-tcp.html
> 

Even easier - use inetd!!

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

From: Rose Gorlekian <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps
Subject: Shell in C++
Date: Tue, 18 Apr 2000 17:18:04 GMT

Hi,


    I'm programming a Linux shell in C++ and had a question about the
following.  I am using the fork() and execve() commands to start new
process within my command line.  I noticed, that for any basic commands
to work,  I had to specify the directories that the commands are
listed.  For example, within my shell to call:

    ls

I must type in my command line: /bin/ls

My first question is, is there a command  to set the directory within my
shell?

Second, when I try to call executable files, (for example Emacs), I must
type in my command line:
    /usr/bin/emacs.

The response I get, however, is:

    Please set the environment variable TERM.

How do I set this?





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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: binutils, missing objdump options and linux 2.0.36+
Date: 18 Apr 2000 13:25:56 -0500
Reply-To: [EMAIL PROTECTED]

In article <8dhf1o$c80$[EMAIL PROTECTED]>, M Sweger wrote:
> Paul Kimoto ([EMAIL PROTECTED]) wrote:
>: You need to remove
>: encaps(1).
>
>: Doesn't Documentation/Changes mention this?

> No the linux v2.0.36 kernel "Changes" documentation doesn't mention it.
> It thinks binutils v2.7.0.3 is still ok to use.

There is a document somewhere that reminds you to remove encaps(1), though.
(Does your binutils contain a version of encaps(1), or is it left over from
some earlier version?)

-- 
Paul Kimoto             <[EMAIL PROTECTED]>

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

From: Pankaj Chhabra <[EMAIL PROTECTED]>
Subject: Re: Driver that use UDP protocols
Date: Tue, 18 Apr 2000 10:35:54 -0700

Hi,


Micheal Beck book has information on networking implementation.

-Pankaj


liran wrote:

> Hi,
> Anybody knows about driver that communicate through UDP/IP.
> Where can I read about the interface the kernel gives to
> manipulate sockets and communicate on UDP/IP
> in kernel space.
>
> Thanks Liran.
>
> * Sent from AltaVista http://www.altavista.com Where you can also find related Web 
>Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful


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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Overlay filesystem (aka union, translucent, inheriting)?
Date: Tue, 18 Apr 2000 19:08:22 +0200

Thomas Steffen <[EMAIL PROTECTED]> writes:

>* next best thing: symlink the files that have to be editable out of
>  the ro filesystem. This is very unflexible and a lot of work, but
>  maybe an option.

This is, what they have done on the Solaris CDROMs to make them
bootable and ther Solaris running. This is the way, I did it on
mini-Linux systems, where the root filesystem is NFS mounted and
exported read only.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: 
comp.os.linux.networking,comp.os.linux.setup,comp.os.linux.misc,comp.protocols.nfs
Subject: Re: linux & NOT knfs (not kernel nfs)
Date: Tue, 18 Apr 2000 19:11:00 +0200

[EMAIL PROTECTED] writes:

>You were probably thinking of Olaf Kirch's unfsd, which is a NFS server, not
>a client (as you want). I'm pretty sure I've never seen a userspace NFS
>client - although I suppose such a thing would be possible.

All userer space filesystems, I have seen, were using NFS to let the
kernel mount them. So you probably would need NFS-Client-Support in
the kernel, anyway.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: "A.C.I." <[EMAIL PROTECTED]>
Crossposted-To: comp.org.ieee,misc.jobs.offered,ne.jobs
Subject: US-MA WEB SERVER ARCHITECT** WILL RELOCATE
Date: Tue, 18 Apr 2000 18:00:48 GMT

Job Description:
This position will be responsible for architecting significant portions of
the Internet Content Server software and will be a member of the software
development team. He or she will be expected to fully understand the overall
operation of the system and the key factors contributing to the performance
of that system. This individual will be responsible, as a part of the
development team, for delivering a product that excels in the marketplace
and will be specifically responsible for technically overseeing the
development activities and ensuring the quality and performance of the
overall product.

Education/Experience:
The candidate should have a BSEE, BSCS or equivalent and a minimum of 10
years of industry experience.  Knowledge of Computer Architecture, C, Linux
or Unix operating systems, good leadership and communication skills are
required.  Knowledge of design and debug of computer servers, system
management, database applications and web applications a plus.

Derek Monson
A.C.I.
p. 781-932-3750 Ext. 201
f. 781-932-4772
e. [EMAIL PROTECTED]
www.employmentconsulting.com




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

From: Lee Webb <[EMAIL PROTECTED]>
Subject: Re: Shell in C++
Date: Tue, 18 Apr 2000 19:24:57 +0100

1. To set to a directory: int chdir(const char *path) (included in unistd.h)
2. To set an environment variable use int putenv(const char *string).
   However, note that the TERM value will local to the program...
   e.g.,:
   
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
  char *var = "TERM";
  char *value;

  if(argc == 2)
  {
    char *string;
    value = argv[1]; /* TERM value is passed as a parameter */
    string = malloc(strlen(var) + strlen(value) + 2);
    if (!string)
    {
      fprintf(stderr, "Out of memory!\n");
      exit(1);
    }
    strcpy(string, var); /* "TERM" */
    strcpy(string, "="); /* "TERM=" */
    strcpy(string, value); /* "TERM=<value>" */
    if (putenv(string) != 0) 
    {
      fprintf(stderr, "putenv() failed\n");
      free(string);
      exit(1);
    }
  }
  return 0;
}
 
Lee.
-- 
Boycott Amazon: http://www.gnu.org/philosophy/amazon.html
Rose Gorlekian wrote:
> 
> Hi,
> 
>     I'm programming a Linux shell in C++ and had a question about the
> following.  I am using the fork() and execve() commands to start new
> process within my command line.  I noticed, that for any basic commands
> to work,  I had to specify the directories that the commands are
> listed.  For example, within my shell to call:
> 
>     ls
> 
> I must type in my command line: /bin/ls
> 
> My first question is, is there a command  to set the directory within my
> shell?
> 
> Second, when I try to call executable files, (for example Emacs), I must
> type in my command line:
>     /usr/bin/emacs.
> 
> The response I get, however, is:
> 
>     Please set the environment variable TERM.
> 
> How do I set this?

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

From: [EMAIL PROTECTED] (Chris)
Subject: Re: binutils, missing objdump options and linux 2.0.36+
Date: 18 Apr 2000 18:58:47 GMT
Reply-To: [EMAIL PROTECTED]


I don't know yet! I'll have to check it tonight when I get home.


Paul Kimoto ([EMAIL PROTECTED]) wrote:
: In article <8dhf1o$c80$[EMAIL PROTECTED]>, M Sweger wrote:
: > Paul Kimoto ([EMAIL PROTECTED]) wrote:
: >: You need to remove
: >: encaps(1).
: >
: >: Doesn't Documentation/Changes mention this?

: > No the linux v2.0.36 kernel "Changes" documentation doesn't mention it.
: > It thinks binutils v2.7.0.3 is still ok to use.

: There is a document somewhere that reminds you to remove encaps(1), though.
: (Does your binutils contain a version of encaps(1), or is it left over from
: some earlier version?)

: -- 
: Paul Kimoto             <[EMAIL PROTECTED]>

--
        Mike,
        [EMAIL PROTECTED]


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

From: [EMAIL PROTECTED] (Igor)
Subject: Debuger for Linux
Date: Tue, 18 Apr 2000 18:30:59 GMT

Hi All!!!
I am a solaris programmer.
I installed recently Linux at home computer.
Is there some debugger like dbx in linux for c++.
Or may be there is some IDE for graphic environment.
There is nothing in man about it.

Thanks


Igor

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

From: John Gluck <[EMAIL PROTECTED]>
Subject: Re: Debuger for Linux
Date: Tue, 18 Apr 2000 15:22:30 -0400

Igor wrote:
> 
> Hi All!!!
> I am a solaris programmer.
> I installed recently Linux at home computer.
> Is there some debugger like dbx in linux for c++.
> Or may be there is some IDE for graphic environment.
> There is nothing in man about it.
> 
> Thanks
> 
> Igor
Yes it's called gdb
-- 
John Gluck  (Passport Kernel Design Group)

(613) 765-8392  ESN 395-8392

Unless otherwise stated, any opinions expressed here are strictly my own
and do not reflect any official position of Nortel Networks.

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

From: "Duke Lee" <[EMAIL PROTECTED]>
Subject: Linux loses packets
Date: Tue, 18 Apr 2000 13:02:25 -0700

I am pinging from my linux box to another machine over 100Mbps Ethernet
connection using -f option.  (This option allows to you ping as soon as you
get the acknowledgement or every 10 milliseconds whichever is faster)  And I
am losing packets. When I ping from my solaris machine or QNX machine I
don't lose any packets.  Basically, the packet drop rate is about 1-3 %
depending on how many piece of Linux box is involved.  I tried all
combinations Linux-Linux, Linux-Solaris, Linux-QNX, and it seems as though
more Linux involved the worse the packet drop rate became.  I tried these
experiment on both desktops and laptops.

I also tried to vary the priority of what I thought was the network process,
inetd, from -20 to 20 by renice command.  (Is that inetd process network
process?)  Anyways, varying the priority didn't help.  This is expected
because I am not running anything else on the machine accept pinging
process.

The hardware that these linux is running on is not slow computers.  Pentium
3, 500MHz. We also have several machine that runs linux so it cannot be
particular hardware problem.

When I tried to connect two Linux using wireless LAN you can imagine it was
even worse. (14-19 percent packet loss rate even though the laptop was right
next to each other. 14 percent packet drop rate was observed when I was
running RedHat 6.0 on Toshiba Stellite and 19 was observed when I was
running Slackware 7.0 on Acer TravelMate 732TXV).  Toshiba Satellite is
ancient, and Acer is new but Toshiba does better.

Another thing that troubles me is when I connected QNX machine and my linux
laptop also Pentium 3, 500MHz using RS232 cable.  I found that linux garbles
the packets over the serial line.  When QNX-QNX combination is fine.

Is this a common problem for linux?  Or could my linux be not configured
right?  Should I be looking into Real time Linux solutions such as RTAI?  I
have been struggling with this for two weeks now, and I would greatly
appreciate your help.

Duke



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

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: Compiling glibc-2.1.3
Date: Tue, 18 Apr 2000 20:06:49 GMT

In article <[EMAIL PROTECTED]>, W R Carr wrote:
>I've been trying for several months to compile glibc-2.1.3 optimized for
>a K6-III. Although the "make" runs fine and throws no errors, the "make
>check" halts in the ./math directory with an error from "test-float".
>When I manually invoke "./test-float", I receive the following message:
[...]

glibc-2.1.3 has been released about 1 month ago ...
>
>./test-float
>testing float (without inline functions)
>Fail: real(cacosh(-2 - i 3)) == -1.98338...
>
>Test suite completed:
>  2278 test cases plus 2266 tests for exception flags executed.
>  1 errors occurred.
>
>My configuration command:
>
>../glibc-2.1.3/configure --enable-shared
>--enable-add-ons=crypt,linuxthreads --prefix=/usr
>--with-headers=/usr/src/linux/include
>
>I am using pgcc-2.95.3. The only options I have added to CFLAGS are
>"-march=k6 -mk6", and binutils are 2.9.5. Currently, I am running the
>2.3.99-pre5 kernel with the pre6-3 patch applied. It (glibc) would also
>not build properly when I was running the 2.2.14 kernel.
[...]

Use gcc-2.95.2 as pgcc has been more plagued by bugs than gcc for
quite some time. Forget about too much optimizations either, as
some ms gained are not worth it. I'd consider the system library
a very critical component second to the kernel only.
[...]

Ta',
Juergen

-- 
\ Real name     : J�rgen Heinzl                 \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

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

From: "Andrew Stubbs" <[EMAIL PROTECTED]>
Subject: pre5 breaks inn ?
Date: Tue, 18 Apr 2000 21:11:35 +0100

Does pre5 break innd. Since upgrading to the new kernel innd stop with a
bind error - prvious versions of the kernel still work.

Using the new iptable modules etc

Andrew Stubbs
[EMAIL PROTECTED]



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

From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Shell in C++
Date: 18 Apr 2000 15:59:43 -0400

Rose Gorlekian <[EMAIL PROTECTED]> writes:

> Hi,
> 
> 
>     I'm programming a Linux shell in C++ and had a question about the
> following.  I am using the fork() and execve() commands to start new
> process within my command line.  I noticed, that for any basic commands
> to work,  I had to specify the directories that the commands are
> listed.  For example, within my shell to call:
> 
>     ls
> 
> I must type in my command line: /bin/ls
> 
> My first question is, is there a command  to set the directory within my
> shell?

most unix shells use a PATH variable.  basically PATH is a list of
directories where you expect to find executables.  the shell tries
each directory in PATH trying to find an executable named "ls".  the
first one it finds will get run.

if you want to get fancy you can build a table to store where you
found things.  this is called a "hash table".  (hash tables are a
general data structure but in talking about shells this is usually the
one you mean.)

> Second, when I try to call executable files, (for example Emacs), I must
> type in my command line:
>     /usr/bin/emacs.
> 
> The response I get, however, is:
> 
>     Please set the environment variable TERM.
> 
> How do I set this?

looking at the man page for execve ....

int execve(
    const char *path,
    char * const argv[],
    char * const envp[]);

it looks like that third parameter is the environment list.  you'll
want to stuff TERM into that.  see the man page for more details.

-- 
johan kullstam l72t00052

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

From: "Frank A. Gerbode" <[EMAIL PROTECTED]>
Subject: Help!  Need driver for Trident Cyberblade /i7
Date: Tue, 18 Apr 2000 13:14:37 -0700

I am the not-so-proud owner of a new Compaq Presario which has an on-board
video chipset that is probed as a Trident Cyberblade /i7.

XF86Setup identifies the chipset OK, but Xwindows does not work with it.  I
called RedHat support and they say that they do not have a driver to support
this chipset, and suggested I check on the internet to see if anyone has put
together a linux-compatible driver for the Trident Cyberblade /i7.

I wonder if anyone has run into this difficulty and/or has any ideas where I
can get a driver.

I'm dead in the water until I can resolve this, so would very much
appreciate an answer soon.

Many thanks!!

--Frank
--
Frank A. Gerbode, M.D. ([EMAIL PROTECTED])
1450 Nut Tree Lane
Sonoma, CA 95476
Home phone:  707-938-4447  Work phone:  707-938-4499  Fax: 707-938-4476
"The map may not be the territory, but it's all we've got."



--
Frank A. Gerbode, M.D. ([EMAIL PROTECTED])
1450 Nut Tree Lane
Sonoma, CA 95476
Home phone:  707-938-4447  Work phone:  707-938-4499  Fax: 707-938-4476
"The map may not be the territory, but it's all we've got."



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

From: [EMAIL PROTECTED] (Michael Kelly)
Subject: Re: kernel communicate with module
Date: 18 Apr 2000 21:14:36 GMT

In article <[EMAIL PROTECTED]>,
        Zoran Cutura <[EMAIL PROTECTED]> writes:
> Michael Kelly wrote:
>> 
>> In article <8dcvp9$mc2$[EMAIL PROTECTED]>,
>>         Yung-Hsiang Lu <[EMAIL PROTECTED]> writes:
>> > Hi,
>> >
>> > What is the simplest way for kernel and module to communicate?  Can I
>> > declare a variable in kernel with EXPORT_SYMBOL so that it can be seen
>> > by modules?  Is there a better way?
>> >
>> > Thank you.
>> >
>> 
>> You might take a look at kerneld and see how it does it.
>> It's been a while since I read about kerneld, so I don't
>> recall exactly the IPC that it uses.
>> 
>> --
>> 
>> Mike
>> --
>> "I don't want to belong to any club that would have *me* as a member!"
>>              -- Groucho Marx
> 
> 
> Well, this never can be any kind of IPC!! because the kernel is not
> running as a process in user space!!
> Modules and the kernel are running in the same space and therefore
> need not do any inter process communication. 

They're not running in the same space before the module is loaded!
Obviously, if something loads into the kernel it's not a user
level process.  It's akin to an installable device driver, 'cept
you don't have to reboot the system as in Dos/Windows.

> I suppose modules can "see" any global data in the kernel space!
> (correct me if I'm wrong) I looked this up with pci_devices for
> example and this symbol is not declared in any special way, but
> modules can read data from it.
> 
> kerneld is a user program and therefore an absolutly different
> situation than modules themself 

No kidding.  Hence the IPC.

> (read /path/to/linux/src/Documentation/modules.txt).
> 
>       Z

-- 

Mike
--
"I don't want to belong to any club that would have *me* as a member!"
             -- Groucho Marx


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

From: nightstalker <[EMAIL PROTECTED]>
Subject: Re: Debuger for Linux
Date: Tue, 18 Apr 2000 21:35:17 GMT

Igor wrote:

> Hi All!!!
> I am a solaris programmer.
> I installed recently Linux at home computer.
> Is there some debugger like dbx in linux for c++.
> Or may be there is some IDE for graphic environment.
> There is nothing in man about it.
>
> Thanks
>
> Igor

for console : gdb (gnu)
for x : ddd (gdb frontend .. search for it on www.freshmeat.net )




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

From: Thomas van Gulick <[EMAIL PROTECTED]>
Subject: Obtaining Program Counter
Date: 18 Apr 2000 21:46:45 GMT

Is it possible to get the value of the PC for a certain task? I'd like to be
able to get the PC or IC from a task that has stalled.

Thomas
-- 

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

From: "Long" <[EMAIL PROTECTED]>
Subject: Where can I find syntax page for make utility for Linux
Date: Tue, 18 Apr 2000 14:14:35 -0700

Thanks in advance.

Long



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

From: "Long" <[EMAIL PROTECTED]>
Subject: Re: Have memcpy_fromfs() and memcpy_tofs() been replaced by something else in 
kernel 2.2.12?
Date: Tue, 18 Apr 2000 09:41:20 -0700

Nerver mind, I found it.  It's copy_from_user() and copy_to_user()

Long <[EMAIL PROTECTED]> wrote in message news:8dhuut$ldf$[EMAIL PROTECTED]...
> Does any one know that for sure?  Because I cannot find any header files
> containing those two functions.  Thanks.
>
>



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

From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: Re: What's the difference between bzImage and zImage
Date: Tue, 18 Apr 2000 18:29:21 -0400
Reply-To: [EMAIL PROTECTED]

Thanks!  By the way, unlike bzImage, which I moved to my /boot directory as
vmlinuz-2...., I don't have to move the modules around that are generated from 'make
modules' and 'make modules_install', do I?  I ask because I can't my Soundblaster Live
sound card to work.  Is there a way to find out which modules are loaded at a given
time?  (Sorry, I guess I asked two questions.)

John Reiser wrote:

> Only the zImage file itself (/usr/src/linux/arch/i386/boot/zImage) is "leftover
> garbage", and should be removed.  Everything else is needed for making bzImage.


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

From: Mark McIntyre <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c,comp.unix.solaris,comp.lang.c++,comp.unix.programmer
Subject: Re: To core or not to core - You tell me
Date: Tue, 18 Apr 2000 23:27:42 +0100
Reply-To: [EMAIL PROTECTED]

On Mon, 17 Apr 2000 14:21:08 -0700, Erik Max Francis <[EMAIL PROTECTED]>
wrote:

>Mark McIntyre wrote:
>
>> I've forgotten the context, we've snipped so much but... if you mean
>> zero is a literal of type int hten ok. If you mean NULL is a literal
>> of type int then nope.
>
>Have you been reading this thread?  

Yes you moron, I started it. God I wish I hadn't. I really wish I'd
just left it with someone's assertion that NULL was the integer value
zero.

>NULL (the macro) most certainly can
>be defined as 0.
>
>    #define NULL 0
>is a strictly-conforming definition of NULL.

golly well stap me. If I didn't write that down about two hundred
messages ago. Buf also
        #define NULL (void*)0
is valid in C. If you'r in C++ land then begone foul fiend.

ps I apologise for calling you a moron but really you do have to pay
attention here! 




Mark McIntyre

C- FAQ: http://www.eskimo.com/~scs/C-faq/top.html

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

From: Mark McIntyre <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c,comp.unix.solaris,comp.lang.c++,comp.unix.programmer
Subject: Re: To core or not to core - You tell me
Date: Tue, 18 Apr 2000 23:30:56 +0100
Reply-To: [EMAIL PROTECTED]

On Mon, 17 Apr 2000 14:32:52 -0700, Erik Max Francis <[EMAIL PROTECTED]>
wrote:

>Mark McIntyre wrote:
>
>You're the one who brought up the internals of processors and registers,
>which is irrelevant to what the C standard has to say about null
>pointers.

then we agree on something. Thats a start

>> Thanks. I haven't done that for oh, at least ten minutes.
>
>Maybe you should read it, then?

Oh dear, a big backward step, and we were doing so well. I'm afraid
I'm going to have to plonk you so that I can avoid being worked up by
your gratuitous insults.

Mark McIntyre

C- FAQ: http://www.eskimo.com/~scs/C-faq/top.html

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


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