Linux-Development-Sys Digest #681, Volume #7     Wed, 15 Mar 00 04:13:16 EST

Contents:
  Re: underscores ???? (Kaz Kylheku)
  Re: glibc development language (Marco van de Voort)
  Re: Help: Mapping complex data structs into shared memory. (Lewis Brown)
  PC-Tel PCI Modem in Linux ("Gustavo Vinueza")
  Re: debug network device driver ("Wilbert de Graaf")
  Re: Trouble building KDE applications (Kevin Milburn)
  Re: Help: Mapping complex data structs into shared memory. (Fabrice Peix)
  Re: Help with finding the ftp source code ("Syntax")
  Re: HTTP Command or Script to find web server version (Walther Grube)
  Re: Help: Mapping complex data structs into shared memory. (Lewis Brown)
  Re: HTTP Command or Script to find web server version 
($[EMAIL PROTECTED])
  Re: INLINE methods inside (static) libraries !!! ([EMAIL PROTECTED])
  Re: Unresolved symbols message. ("D. Stimits")
  Re: underscores ???? ("D. Stimits")
  ip_masq_h3231.c ("Hog Rider")
  Re: Help with finding the ftp source code ("Mark Tranchant")
  help : Service to be started by inetd ("Boris Pran")

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: underscores ????
Reply-To: [EMAIL PROTECTED]
Date: Tue, 14 Mar 2000 17:24:42 GMT

On Tue, 14 Mar 2000 08:15:43 GMT, Patrick E. Hughes <[EMAIL PROTECTED]>
wrote:
>>can someone clear these doubts wrt the to linux source code->
>>1.  why are there so many functions beginning with underscores?  ie is
>>there a reason for such naming?
>
>Keeps the namespace from getting polluted.  The convention (C
>programming in general) seems to be that functions meant to be used
>only inside a library section get the underscore _fn().

In some cases, there is a convention that the functions with underscores
are unsafe; and their counterparts without the leading underscores are
protected. This is the case with the struct sk_buff queuing functions.

You quite often find that the __ functions are ``naked'' in some way.
For example on SMP, cli() is cooked up emulation, whereas __cli() is
the real way to disable interrupts on the current processor.

Of course, in a lot of circumstances, the underscores are simply indicative
of the use of GCC extensions via its special keywords.

-- 
#exclude <windows.h>

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

From: [EMAIL PROTECTED] (Marco van de Voort)
Subject: Re: glibc development language
Date: 14 Mar 2000 18:14:32 GMT


>That doesn't make C++ a bad language.  However, something I find happening
>is that the easier the language gets (such as C++ or Perl or Java), the
>lower the barrier becomes for admitting lower grade programmers.  Business
>seems to need larger numbers of them (although I'm not sure this is entirely
>true) so anything that makes it possible to have more is what they will do.

Also,(and this has been said before in this thread), limits
operationability, since vmt format and other characteristics are fixed in a
very specific way. 

>C++ has more programmers than C because C++ has lowered the barrier.  But
>does a larger number of programmers because of a lower barrier mean that
>those who would be programmers anyway *must* use C++ (not to disparage any
>that choose to do so)?  I think not.

I don't agree with the barrier idea btw. More difficult languages provoke
more errors (and therefore bugs), also with experienced developpers. So you
probably loose more than you win.

>If we used this line of reasoning, we'd all also just forego using Linux
>and switch to MS Windows.  Most people who use computers use MS Windows.

>I have my reasons for not using C++.  As long as C functions well as a
>programming language I'll continue to use it.  I don't see why it will
>break any time soon.

I have a reason for not using C; I'm a pascal programmer. But at least these
two languages cooperate reasonably well, and the compiler needs only one or
two constructs (a name mangler for variables, and a stack convention
modifier for functions)

>| If anyone wants to create an OS kernel in C++, they are free to start
>| a project to do so.  And they are free to *leave Linux alone.*

They can join BEOS. We as pascal developpers (due to popular demand), wanted
to create a port to BEOS, but it would require a lot of work (read: changes
to the compiler which are unusable except for interfacing with BEOS). So it
was dropped.


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

Date: Tue, 14 Mar 2000 10:36:16 -0700
From: Lewis Brown <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.lang.c,comp.unix.programmer
Subject: Re: Help: Mapping complex data structs into shared memory.

Fabrice Peix wrote:

> Lewis Brown wrote:
> >
> > Hello,
> >
> > ...
> > memory mapped to different addresses in diferrent processes, which, I
> > suppose, could be my problem with the SysV functions as well.  If this
> > is the case, it would seem I'm out of luck.  What are the alternatives?
>
>         Yop,
>
> You must check return value for errors perhaps is a permissions problem
> (In fact you must always checks return of functions ....)
>
>         Ooops and Good Luck.

Thank you for responding, Fabrice.

I actually do check returns, I just removed them from the example for
clarity.   Permissions don't seem to be the problem, as other processes can
attach to the initialized id and access the array values(yptr in example),
but only as a one dimensional array.  It is the array of pointers to arrays
(xptr in the example) where the problem occures.  Though the values can be
read, they don't point to where the yptr values are.  Hmmm?


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

From: "Gustavo Vinueza" <@entelchile.net>
Subject: PC-Tel PCI Modem in Linux
Date: Sun, 12 Mar 2000 20:42:19 -0400

Hi,

Does anyone know how to configure a Pc-Tel modem for Linux (RedHat 6.1)?
I've tried downloading the drivers from the site and adding it like a module
to the kernel with insmod and modprobe but nothing..

Help me please?!?!?

Gus



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

From: "Wilbert de Graaf" <[EMAIL PROTECTED]>
Subject: Re: debug network device driver
Date: Tue, 14 Mar 2000 10:54:29 -0800

Wu Man,

I didn't look into it really, but as far as I can tell, your code snippet is
of the ip driver right ? The unnecessary checksum thus refers to the ip
checksum and not the udp checksum. Could this be true ?

- Wilbert

"Wu man777" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi there:
>
> I am working on a network device driver using RH 6.0.
> I try to push a IP/UDP packet to the IP stack and see if it can be picked
> up by a server. The IP packet has 127.0.0.1 as the both source/dest addr,
> the UDP header has 0x1111 and 0x2222(just for testing) as source/dest port
> number, with no checksum.
> The driver does:
>
>       /* allocate a skb_buff */
>       /* copy a dummy e-header with IP protocol type */
>       /* copy the dummy packet to skb_buff using skb_put() */
>
>       skb->dev = myadp->dev; // setup the device pointer
>       skb->protocol = eth_type_trans(skb, myadp->pkt_type);
>       skb->ip_summed = CHECKSUM_UNNECESSARY;
>       netif_rx(skb);
>       myadp->stats.rx_packets++;
>
> Somehow the UDP server never see the packet. My log file doesn't show
> any error message from the kernel. I dump the skb->data after the
> eth_type_trans() and it has the right data in there(without the e-header).
>
> Where does the packet  go ? What went wrong ? How can I look into the IP
> stack ? Checksum error ?
>
> Any suggestion are wellcome,
>
> thanks,
>
> By the way, the dummy IP packet is:
> 0x45, file://ver 4, 5 words
> 0,
> 0,
> 52,
> 0x39,
> 0x62,
> 0,
> 0,
> 1,
> 0x11, // UDP protocol
> 0x82,
> 0x55,
> 127,
> 0,
> 0,
> 1,
> 127,
> 0,
> 0,
> 1,
> 0x11, // UDP source port
> 0x11,
> 0x22, // UDP dest port
> 0x22,
> 0,
> 8+24,
> 0x00,
> 0x00
> <24 bytes chars>
>



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

From: Kevin Milburn <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.admin
Subject: Re: Trouble building KDE applications
Date: Tue, 14 Mar 2000 19:44:28 +0000

Check the config.log generated by configure..  It should indicate
exactly what the problem is.

However, I believe QT.2 has broken compatabilty with KDE 1.1. and as a
result it can't 
build KDE 1.1 apps with QT2 installled.  Also If QT 2 was installed in
its default directory
it has most probably overwritten the QT 1.44 libs etc.

I had this very problem (showing as unresoled externals in config.log), 
and removing QT 2 + reinstalling QT 1.44 solved the problem.

Kev.


Tim Harvey wrote:
> 
> <snip..>
>
> checking for kde libraries installed... configure: error: your system fails
> at l
> inking a small KDE application!
> Check, if your compiler is installed correctly and if you have used the
> same compiler to compile Qt and kdelibs as you did use now
> 
> So, its not bailing on the Qt libs apparently but the kdelibs.  I'm pretty
> ignorant regarding how these packages are installed.   Here is some more
> info on how my system is configured:

> <snip..>
> Ideas?
> 
> Thanks,
> 
> Tim

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

From: Fabrice Peix <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c,comp.unix.programmer
Subject: Re: Help: Mapping complex data structs into shared memory.
Date: Tue, 14 Mar 2000 20:40:54 +0100

Lewis Brown wrote:
> 
> ...
> read, they don't point to where the yptr values are.  Hmmm?

        Yop,

Each process have is own virtual address space , so virtual address cam
be different but in fact, this multiple 
address "map" on only one physical address.
You can so have two process access memory by different virtual address
but access the same "real" memory...

PS: Sorry i don't speak english very well ,so i think i am not clear
(sorry...) 


        Ooops and Bye.

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

From: "Syntax" <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel,linux.sources.kernel,comp.os.linux.development
Subject: Re: Help with finding the ftp source code
Date: Tue, 14 Mar 2000 20:07:08 GMT

you will find the source code to ANY kernel at www.kernel.org

Xiaofeng Tan <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I am really new to the linux kernel. I just wonder if anyone could tell
> me where I can find the ftp source code? Thanks a lot.
>
> Tom



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

From: Walther Grube <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux.slackware,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.security
Subject: Re: HTTP Command or Script to find web server version
Date: Tue, 14 Mar 2000 20:28:47 +0000

This is a multi-part message in MIME format.
==============8BD493DE786475387D10DEA3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

If you're using KDE try the kpackage program, it shows all RPMs that are
installed along with the information about'em also which files were installed
for each package.

regards

Walther Grube

David Efflandt wrote:

> On Fri, 10 Mar 2000 16:12:44 -0600, Zardoz <[EMAIL PROTECTED]> wrote:
> >Sorry about the cross-post, but I'm in a hurry.
> >
> >I need an HTTP command or a Perl script or something that will tell me what
> >web server and version a host is running. The host is most likely a BSD 3.0
> >or 3.1 box, so it's probably Apache, but I want to make sure.
>
> perldoc perlipc
>
> However, you probably want to change the HTTP command to include the Host:
> header in the webget example if used for virtual hosts:
>
> print $remote "GET $document HTTP/1.0".$EOL."Host: $host". $BLANK;
>
> --
> David Efflandt  [EMAIL PROTECTED]  http://www.de-srv.com/
> http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
> http://hammer.prohosting.com/~cgi-wiz/  http://cgi-help.virtualave.net/

==============8BD493DE786475387D10DEA3
Content-Type: text/x-vcard; charset=us-ascii;
 name="walther.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Walther Grube
Content-Disposition: attachment;
 filename="walther.vcf"

begin:vcard 
n:Grube;Walther
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-1
fn:Walther Grube
end:vcard

==============8BD493DE786475387D10DEA3==


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

Date: Tue, 14 Mar 2000 13:25:20 -0700
From: Lewis Brown <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.lang.c,comp.unix.programmer
Subject: Re: Help: Mapping complex data structs into shared memory.

Fabrice Peix wrote:

> Lewis Brown wrote:
> >
> > ...
> > read, they don't point to where the yptr values are.  Hmmm?
>
>         Yop,
>
> Each process have is own virtual address space , so virtual address cam
> be different but in fact, this multiple
> address "map" on only one physical address.
> You can so have two process access memory by different virtual address
> but access the same "real" memory...
>
> PS: Sorry i don't speak english very well ,so i think i am not clear
> (sorry...)
>
>         Ooops and Bye.

Yes, Fabrice,

I do believe that may be the problem.  Are you aware of any other way to
allow complex data structures to persist in memory beyond the life of the
creating process?


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

From: $[EMAIL PROTECTED]
Subject: Re: HTTP Command or Script to find web server version
Crossposted-To: 
alt.os.linux.slackware,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.security
Date: Tue, 14 Mar 2000 23:08:04 GMT

In comp.os.linux.security Zardoz <[EMAIL PROTECTED]> wrote:

> I need an HTTP command or a Perl script or something that will tell me what
> web server and version a host is running. The host is most likely a BSD 3.0
> or 3.1 box, so it's probably Apache, but I want to make sure.

Sounds like 'whisker' is what you are looking for.

> If anyone's curious, I'm doing an outside security assessment, 

Oh. My. God.

-- 
...........................................................................

"..no person in full command of his mental faculties, and with even the 
 slightest understanding of what happened in World War II, can deny that 
 the tragedy actually happened, however much we dissident historians
 may wish to quibble about the means, the scale, the dates and other
 minutiae."                           
                  -Historian David Irving, accused of 'holocaust denial'.

...........................................................................
www.geocities.com/pentagon/bunker/1022         [EMAIL PROTECTED]





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

From: [EMAIL PROTECTED]
Subject: Re: INLINE methods inside (static) libraries !!!
Date: Wed, 15 Mar 2000 01:03:42 GMT

On Tue, 14 Mar 2000 08:32:07 +0100 Luca Garulli <[EMAIL PROTECTED]> wrote:

| I have a myString class with ALL methods as INLINE.
| This class is used by sources that compounds the static library "pippo.a".
| This class is also used by client apps that link the library.
|
| When I compile client apps the compiler gives me "Function already defined
| in xxx.o" !!!
|
| How can I use INLINE with (static) libraries ???

The inline attribute in C (and I assume C++) still compiles a full function
and exports it, even though code in the same compilation unit may have that
function compiled inline instead of called.

I'm unsure what you mean from your description, but if it is the case that
you have the same function/method name being exported from another place,
then you would have a case of collision at link time.

The inline attribute may not be what you are looking for.  Perhaps what you
want is the "static" attribute.  You can combine static and inline together.

-- 
| Phil Howard - KA9WGN | for headlines that | Just say no to absurd patents |
| [EMAIL PROTECTED] | really matter:     | Boycott Amazon.Com (AMZN)     |
| Dallas - Texas - USA | linuxhomepage.com  | Shop http://bn.com/ instead   |

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

Date: Tue, 14 Mar 2000 20:27:24 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Unresolved symbols message.

Kernel Newbie wrote:
> 
> It seems that whenever I recompile my kernel I get this message: (actually
> several with different modules listed)
> 
> depmod: *** unresolved symbols in /lib/xxxxxx
> 
> What does it mean?
> 
> What am I doing to cause this?
> 
> How can I stop this from happening in the future?
> 
> Thanks
> 
> --
> Posted via CNET Help.com
> http://www.help.com/

Save your old /boot/System.map to a backup, then copy
/usr/src/linux/System.map to /boot/. This file contains the symbols.
If you failed to also recompile the modules, likely you will still get
unresolved symbols, even if you copy System.map.

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

Date: Tue, 14 Mar 2000 20:31:39 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: underscores ????

nilesh patel wrote:
> 
> can someone clear these doubts wrt the to linux source code->
> 1.  why are there so many functions beginning with underscores?  ie is
> there
> a reason for such naming?
> 2.  what does __typeof() do?
> 
> Nilesh

It's called name mangling. I guess everyone has their own different
reasons for using it, but a lot of people (and sometimes
compilers/preprocessors) will do this with functions they expect to
conflict with someone else's functions, but they want the same name.
Or else to indicate the the function isn't intended to be the final
version to use, that it will be wrapped for version or similar. In the
linux kernel, I suppose you'd have to ask Linus or Alan Cox for their
own reasons, likely some offshoot of the above.

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

Date: Tue, 14 Mar 2000 18:41:01 -0000
From: "Hog Rider" <[EMAIL PROTECTED]>
Subject: ip_masq_h3231.c

ip_masq_h3231.c has been written for 2.0.x kernels, but not 2.2.x.  Is
anyone working on this?  Anyone know where I'd look to see if anyone is
working on this?

Thanks in advance.

Rider




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

From: "Mark Tranchant" <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel,linux.sources.kernel,comp.os.linux.development
Subject: Re: Help with finding the ftp source code
Date: Wed, 15 Mar 2000 07:58:11 -0000
Reply-To: "Mark Tranchant" <[EMAIL PROTECTED]>

Syntax wrote in message ...
>you will find the source code to ANY kernel at www.kernel.org

Yes, but the ftp source code is not in it!

>Xiaofeng Tan <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> I am really new to the linux kernel. I just wonder if anyone could tell
>> me where I can find the ftp source code? Thanks a lot.
>>
>> Tom
>
>



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

From: "Boris Pran" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: help : Service to be started by inetd
Date: Wed, 15 Mar 2000 09:53:42 +0100

Hi,

I have a conceptual question.
I understand sockets and I know how to handle it, but...
If am writing a service that will be started as a inetd service I don't have
to worry about sockets. Right ?
>From my understanding when inetd starts my service it already has a socket
open.
So how inetd passes file descriptor to me so I can continue using it.

I would appreciate either a short explanation or, even better, a pointer to
a piece of document that describes the inetd mechanism.

Thanks.

Boris




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


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