Linux-Development-Sys Digest #70, Volume #8 Tue, 8 Aug 00 05:13:18 EDT
Contents:
Re: Kernel Versions and depmod (Rick Ellis)
linneighborhood (alikbm)
Re: Low cost development board (Rick Ellis)
Re: max # of accepts (Rick Ellis)
Module programming ("Ram�n Ag�ero")
Linux equivalent for solaris gcore ? (Roberto Congiu)
When is a signal delivered. (Prasad Boddupalli)
Re: Ncurses version check (Thomas Dickey)
Motif ---> Qt ([EMAIL PROTECTED])
Re: Linux equivalent for solaris gcore ? (Erik de Castro Lopo)
PCI device driver question ([EMAIL PROTECTED])
kernel 2.4.0-test5 - Where does one file 'undocumented feature' reports? (softrat`)
Re: PCI device driver question (Grant Edwards)
Re: PCI device driver question (Pete Zaitcev)
Re: Linux equivalent for solaris gcore ? (Roberto Congiu)
Re: Linux equivalent for solaris gcore ? (Erik de Castro Lopo)
Re: Ncurses version check (Marco van de Voort)
Re: Module programming (Josef Moellers)
Re: kernel 2.4.0-test5 - Where does one file 'undocumented feature' reports? (Paul
Kimoto)
Re: Ncurses version check (Thomas Dickey)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Kernel Versions and depmod
Date: 7 Aug 2000 16:28:22 GMT
In article <[EMAIL PROTECTED]>,
Mike <[EMAIL PROTECTED]> wrote:
>I recently moved from a test kernel to the last 2.2.xx kernel. I had to do
>this due to the fact that the tdfx.o module currently will not compile on
>the text kernel. The problem I am having is this. When I compile my
>modules and do depmod - it uses the 2.4 test kernel directory instead of my
>2.2 module directory, and I also get loads of unresolved symbol errors.
depmod [ -a version ]
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: alikbm <[EMAIL PROTECTED]>
Subject: linneighborhood
Date: Mon, 07 Aug 2000 19:32:03 +0300
Reply-To: [EMAIL PROTECTED]
hi i am trying to install linux neighborhood and
to surf local network but when i want to mount some shared dirs accross
the network i get the following massege :
smbmnt must be installed suid root for direct users mounts (501,502)
smbmnt failed: 1
mount.smbfs: ioctl failed, res=-1
couldn�t mount /home/alikbm/mnt: oper not permitted
as i understand something wrong with my samba settings
when i do the same with root everything is ok....
so how do i fix that ?
thanks in advance for help...
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Low cost development board
Date: 7 Aug 2000 16:54:03 GMT
In article <[EMAIL PROTECTED]>,
deb <[EMAIL PROTECTED]> wrote:
>Can you suggest a lowcost development board and software for linux.
To develop what?
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: max # of accepts
Date: 7 Aug 2000 17:00:23 GMT
In article <[EMAIL PROTECTED]>,
Bhavin Shah <[EMAIL PROTECTED]> wrote:
>Is there a max number of allowable accepts? I'm
>using a select() call with a timeout of 5 to
>determine when a connect request was called and
>after about 130 or so successful accepts (one after
>another), I cannot accept any more connections.
The limit is defined by SO_MAXCONN.
--
http://www.fnet.net/~ellis/photo/linux.html
------------------------------
From: "Ram�n Ag�ero" <[EMAIL PROTECTED]>
Subject: Module programming
Date: Mon, 7 Aug 2000 19:11:00 +0200
Hi all
I'm writing a kernel module, which uses several functions. The code is
quite large, and all my functions are declared in a separate file (header
file). After a long proccess of debugging and filtering errors I came to the
following one
two or more data types in declaration of 'my_function'
and this happens just when the first function declaration within the
code.
The declaration is done with the followiong code
extern int my_function(struct sk_buff *skb,int size,short priority);
I would like to know if a have to do anything special to manage this...
Thank all in advance...
Ram�n
------------------------------
From: Roberto Congiu <[EMAIL PROTECTED]>
Subject: Linux equivalent for solaris gcore ?
Date: Mon, 07 Aug 2000 11:15:01 -0700
Hi!
I was wondering if there's a way to do what solaris gcore command
does...
and what it does is to dump the core of a given process (it must be
stopped with a
stop signal ).
it would be very useful to look at faulty CGI scripts that eat a lot of
CPU time
(it was what I've been trying to do a couple of days ago).
Gene Spafford in the Linux Security tutorial at the Open Source
convention talked about how
they were using gcore to dump an hacker's session to read its command
history
and see what he did.
I know how to core dump my processes...but as a superuser, how can I
core dump
processes that I didn't launch ?
Thanks!
--
==========================================
Roberto Congiu
Alchemy Communications
LA California USA
------------------------------
From: Prasad Boddupalli <[EMAIL PROTECTED]>
Subject: When is a signal delivered.
Date: Mon, 7 Aug 2000 12:17:15 -0700
Hello,
Signal delivery, as I understand, is when the action corresponding to
its disposition takes place. When is a signal --sent by a process (say A)
to (say B)-- delivered, as per the above definition ? Does it happen
immediately or when the process B is scheduled to run ?
Are there any sources from where I can know this entire signal
generation and delivery mechanism. I want more details than given in the
stevens book.
thanks,
Prasad.
------------------------------
From: Thomas Dickey <[EMAIL PROTECTED]>
Subject: Re: Ncurses version check
Date: 7 Aug 2000 19:46:45 GMT
Marco van de Voort <[EMAIL PROTECTED]> wrote:
>>But what "function" are you
>>referring to for the version?
> It was not a detection routine, but more an initialising routine:
> Until now we used setupterm to get terminal data, and since that structure
> was different, we figured out a quick and dirty way to patch it.
setupterm and the structure change are really two different things - I
made the structure change source-compatible, and (because there already
were necessary changes that required a new ABI version), thought the
binary incompatibility would be not a big problem (aside from the one
that I noted in the INSTALL file, for which there is no good solution).
> This works well under 4 and 5, which is good enough for Linux. On FreeBSD
> however Ncurses 3.x is still used in a lot of places.
The older FreeBSD actually uses ncurses 1.8.6 + random patches (in fact,
its terminfo struct isn't strictly compatible either - if you were to mix
those, you'd have trouble rendering colors: it used to be an faq).
--
Thomas E. Dickey <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com
------------------------------
From: [EMAIL PROTECTED]
Subject: Motif ---> Qt
Date: Mon, 07 Aug 2000 19:41:15 GMT
Hi..
can anybody help me porting the Motif's 'XtAppAddInput()' to KDE/Qt ? i
am developing an mp3 player based on xaudio and i need it to be a KDE
program.
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: Linux equivalent for solaris gcore ?
Date: Mon, 07 Aug 2000 20:51:44 +0000
Roberto Congiu wrote:
>
> Hi!
> I was wondering if there's a way to do what solaris gcore command
> does...
> and what it does is to dump the core of a given process (it must be
> stopped with a
> stop signal ).
> it would be very useful to look at faulty CGI scripts that eat a lot of
> CPU time
> (it was what I've been trying to do a couple of days ago).
> Gene Spafford in the Linux Security tutorial at the Open Source
> convention talked about how
> they were using gcore to dump an hacker's session to read its command
> history
> and see what he did.
> I know how to core dump my processes...but as a superuser, how can I
> core dump
> processes that I didn't launch ?
How about killing the process by sending it a SIGFPE (floating point
exception)?
kill -8 <process id>
Erik
--
+-------------------------------------------------+
Erik de Castro Lopo [EMAIL PROTECTED]
+-------------------------------------------------+
"Usenet is like a herd of performing elephants with diarrhea;
massive, difficult to redirect, awe-inspiring, entertaining,
and a source of mind-boggling amounts of excrement when you
least expect it." -- Gene Spafford (1992)
------------------------------
From: [EMAIL PROTECTED]
Subject: PCI device driver question
Date: Mon, 07 Aug 2000 21:08:10 GMT
I am writing a PCI device driver for an Intel platform running Red Hat
6.2 The custom PCI card has on-board memory that I can access using a
device driver with the "traditional" open(), release(), read(0 and
write() methods. I am now trying to rewrite the device driver to map
the PCI card memory directly to user process space using mmap(). The
mmap(0 method uses the PCI card physical address (base_address
programmed in the PCI card) and remaps it to the process virtual address
space using remap_page_range() routine. A pointer is returned in the
user space by the mmap() system call (in the user process) which is the
virtaul address representation of the PCI memory. I see no errors
triggered fro the driver up to this point. However when i try to access
the returned pointer, the system core-dumps with a "bad address" error.
What am I doing wrong?
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: softrat` <[EMAIL PROTECTED]>
Subject: kernel 2.4.0-test5 - Where does one file 'undocumented feature' reports?
Date: Mon, 07 Aug 2000 14:36:20 -0700
--
the softrat
mailto: [EMAIL PROTECTED]
---
Uncertain fortune is thoroughly mastered by the equity of the
calculation.
- Blaise Pascal
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: PCI device driver question
Date: Mon, 07 Aug 2000 21:52:53 GMT
In article <8mn8fk$m4f$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>I am writing a PCI device driver for an Intel platform running Red Hat
>6.2 The custom PCI card has on-board memory that I can access using a
>device driver with the "traditional" open(), release(), read(0 and
>write() methods. I am now trying to rewrite the device driver to map
>the PCI card memory directly to user process space using mmap(). The
>mmap(0 method uses the PCI card physical address (base_address
>programmed in the PCI card) and remaps it to the process virtual address
>space using remap_page_range() routine. A pointer is returned in the
>user space by the mmap() system call (in the user process) which is the
>virtaul address representation of the PCI memory. I see no errors
>triggered fro the driver up to this point. However when i try to access
>the returned pointer, the system core-dumps with a "bad address" error.
>What am I doing wrong?
I've written a demo driver that does the mmap() for PCI
on-board memory. You might want to compare:
ftp://ftp.visi.com/users/grante/stuff/demomm.tar.gz
--
Grant Edwards grante Yow! You mean you don't
at want to watch WRESTLING
visi.com from ATLANTA?
------------------------------
From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: PCI device driver question
Date: Mon, 07 Aug 2000 23:45:10 GMT
> [...] The mmap(0 method uses the PCI card physical address (base_address
> programmed in the PCI card) and remaps it to the process virtual address
> space using remap_page_range() routine. A pointer is returned in the
> user space by the mmap() system call (in the user process) which is the
> virtaul address representation of the PCI memory. I see no errors
> triggered fro the driver up to this point. However when i try to access
> the returned pointer, the system core-dumps with a "bad address" error.
> What am I doing wrong?
Hard to tell without looking at the code. Could be an alignment
problem, or subtlietes of remap_page_range(). Check out the way
other drivers do it, especially in drivers/video/fb_mem.c.
--Pete
------------------------------
From: Roberto Congiu <[EMAIL PROTECTED]>
Subject: Re: Linux equivalent for solaris gcore ?
Date: Mon, 07 Aug 2000 18:41:04 -0700
Erik de Castro Lopo wrote:
> Roberto Congiu wrote:
> >
> > Hi!
> > I was wondering if there's a way to do what solaris gcore command
> > does...
> > and what it does is to dump the core of a given process (it must be
> > stopped with a
> > stop signal ).
> > it would be very useful to look at faulty CGI scripts that eat a lot of
> > CPU time
> > (it was what I've been trying to do a couple of days ago).
> > Gene Spafford in the Linux Security tutorial at the Open Source
> > convention talked about how
> > they were using gcore to dump an hacker's session to read its command
> > history
> > and see what he did.
> > I know how to core dump my processes...but as a superuser, how can I
> > core dump
> > processes that I didn't launch ?
>
> How about killing the process by sending it a SIGFPE (floating point
> exception)?
>
> kill -8 <process id>
>
let's say the process to kill is an http process, owned by nobody.
Where does linux dump the core ?
I kill the process, but I cannot find the core file.
Thanks
--
==========================================
Roberto Congiu
Alchemy Communications
LA California USA
------------------------------
From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: Linux equivalent for solaris gcore ?
Date: Tue, 08 Aug 2000 03:12:52 +0000
Roberto Congiu wrote:
>
> Erik de Castro Lopo wrote:
>
> > Roberto Congiu wrote:
> > >
> > > Hi!
> > > I was wondering if there's a way to do what solaris gcore command
> > > does...
> > > and what it does is to dump the core of a given process (it must be
> > > stopped with a
> > > stop signal ).
> > > it would be very useful to look at faulty CGI scripts that eat a lot of
> > > CPU time
> > > (it was what I've been trying to do a couple of days ago).
> > > Gene Spafford in the Linux Security tutorial at the Open Source
> > > convention talked about how
> > > they were using gcore to dump an hacker's session to read its command
> > > history
> > > and see what he did.
> > > I know how to core dump my processes...but as a superuser, how can I
> > > core dump
> > > processes that I didn't launch ?
> >
> > How about killing the process by sending it a SIGFPE (floating point
> > exception)?
> >
> > kill -8 <process id>
> >
>
> let's say the process to kill is an http process, owned by nobody.
> Where does linux dump the core ?
> I kill the process, but I cannot find the core file.
man find?
>From the / directory do:
find . - name core -type f -print
Erik
--
+-------------------------------------------------+
Erik de Castro Lopo [EMAIL PROTECTED]
+-------------------------------------------------+
"I love deadlines. I especially like the whooshing sound
they make as they go flying by." -- Douglas Adams
------------------------------
From: [EMAIL PROTECTED] (Marco van de Voort)
Subject: Re: Ncurses version check
Date: 8 Aug 2000 06:56:53 GMT
>> It was not a detection routine, but more an initialising routine:
>> Until now we used setupterm to get terminal data, and since that structure
>> was different, we figured out a quick and dirty way to patch it.
>
>setupterm and the structure change are really two different things - I
>made the structure change source-compatible, and (because there already
>were necessary changes that required a new ABI version), thought the
>binary incompatibility would be not a big problem (aside from the one
>that I noted in the INSTALL file, for which there is no good solution).
But with a foreign compiler you can't use headers on the target system,
which is the problem I'm facing.
I believe the hack involves checking the value of the struct. At one
place it is a pointer or a character. So if the value isn't <$90 it is NC 4
and otherwise NC 5.
>> This works well under 4 and 5, which is good enough for Linux. On FreeBSD
>> however Ncurses 3.x is still used in a lot of places.
>
>The older FreeBSD actually uses ncurses 1.8.6 + random patches (in fact,
>its terminfo struct isn't strictly compatible either - if you were to mix
>those, you'd have trouble rendering colors: it used to be an faq).
Afaik FreeBSD 3.x (and late 2.x versions) package 3.2?
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: Module programming
Date: Tue, 08 Aug 2000 09:06:26 +0200
"Ram=F3n Ag=FCero" wrote:
> =
> Hi all
> =
> I'm writing a kernel module, which uses several functions. The code=
is
> quite large, and all my functions are declared in a separate file (head=
er
> file). After a long proccess of debugging and filtering errors I came t=
o the
> following one
> =
> two or more data types in declaration of 'my_function'
> =
> and this happens just when the first function declaration within t=
he
> code.
> =
> The declaration is done with the followiong code
> =
> extern int my_function(struct sk_buff *skb,int size,short prior=
ity);
> =
> I would like to know if a have to do anything special to manage thi=
s...
The clue may very well be in the line(s) preceding the one you copied.
If you left out the semicolon on the line before the ony you copied, it
would most likely produce this error message, e.g.
struct somestructure {
int field1;
struct somestructure *next;
}
extern int my_function(struct sk_buff *skb,int size,short priority);
This will lead to two data types ("struct somestructure" and "int") in
the declaration of "my_function".
If this doesn't help, you should post a slightly larger section of the
file.
But I hope it does,
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: kernel 2.4.0-test5 - Where does one file 'undocumented feature' reports?
Date: 8 Aug 2000 03:12:09 -0500
Reply-To: [EMAIL PROTECTED]
See REPORTING-BUGS and MAINTAINERS in the top source-code directory.
--
Paul Kimoto
Disclaimer: Other than explicit citations of URLs, hyperlinks appearing
in this article have been inserted without the permission of the author.
------------------------------
From: Thomas Dickey <[EMAIL PROTECTED]>
Subject: Re: Ncurses version check
Date: 8 Aug 2000 09:01:41 GMT
Marco van de Voort <[EMAIL PROTECTED]> wrote:
> But with a foreign compiler you can't use headers on the target system,
> which is the problem I'm facing.
> I believe the hack involves checking the value of the struct. At one
> place it is a pointer or a character. So if the value isn't <$90 it is NC 4
> and otherwise NC 5.
I'm curious how you are extracting the headers without using a C compiler
to do the checking - it's trivial with a compiler check (using sizeof),
and doesn't require looking at the resulting data.
>>> This works well under 4 and 5, which is good enough for Linux. On FreeBSD
>>> however Ncurses 3.x is still used in a lot of places.
>>
>>The older FreeBSD actually uses ncurses 1.8.6 + random patches (in fact,
>>its terminfo struct isn't strictly compatible either - if you were to mix
>>those, you'd have trouble rendering colors: it used to be an faq).
> Afaik FreeBSD 3.x (and late 2.x versions) package 3.2?
no (there was no ncurses 3.2 - there was an ABI - not release - that matched
that, but it wasn't widely used, and certainly not on FreeBSD)
--
Thomas E. Dickey <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com
------------------------------
** 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
******************************