Linux-Development-Sys Digest #838, Volume #7      Tue, 9 May 00 21:13:14 EDT

Contents:
  Re: What cockheads you are (Kaz Kylheku)
  kernel 2.3.99-pre6 (Charles Blackburn)
  Re: Need to find my IP address (bill davidsen)
  Re: kernel 2.3.99-pre6 (Jonathan Hudson)
  Re: RS-485 (bill davidsen)
  Question on global constructors (Mustafa Isik)
  Substituting socket library in glibc (Neelima Mehta)
  Re: Substituting socket library in glibc (Kaz Kylheku)
  Determining amount of physical RAM from a driver? (Timur Tabi)
  kernel manpages (Lindanne Metley)
  Re: dev_get("eth0:0") (Mark)
  Re: Telnet-like application (Mark)
  Linux behaving like Windows ("Calixto Melean")
  Re: Substituting socket library in glibc (Neelima Mehta)
  Re: Linux behaving like Windows (Sam E. Trenholme)
  I dont understand this gehostbyname() failure (Thomas F. Drescher)
  Re: Real Time Programming in Linux (Erik de Castro Lopo)

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: What cockheads you are
Reply-To: [EMAIL PROTECTED]
Date: Tue, 09 May 2000 18:11:47 GMT

On Wed, 10 May 2000 02:05:49 +1000, www.homepagewizard.com
<[EMAIL PROTECTED]> wrote:
>You cocksuckers couldn't afford a fucking windows environment....poor cunts
>probably couldn't afford a mouse or a 500meg hard drive. fuck it would be a
>cunt to live like you low life scum, and you have the nerve to call yourself
>fucking developers......SUCK MY DICK you low life fuckwits.

Are we to understand that you are propositioning the (largely male) readership
of the newsgroup to engage in fellatio?

-- 
#exclude <windows.h>

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

From: [EMAIL PROTECTED] (Charles Blackburn)
Crossposted-To: uk.comp.os.linux
Subject: kernel 2.3.99-pre6
Date: Mon, 8 May 2000 22:32:06 +0100
Reply-To: [EMAIL PROTECTED]

Hi all.

seeing as kernels 2.3.99-pre6 doesn't support ipchains, how do I go about
setting up a firewall? any help would be appreciated.

-- 
Charles Blackburn -=- Remove NOSPAM to email a reply.
Summerfield Technology Limited - SuSE Linux Reseller & Birmingham L.U.G sponsor
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
 10:31pm  up 7 min,  3 users,  load average: 0.09, 0.34, 0.20

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

From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux,comp.os.linux.misc
Subject: Re: Need to find my IP address
Date: 9 May 2000 18:28:39 GMT


In article <[EMAIL PROTECTED]>,
Kaz Kylheku <[EMAIL PROTECTED]> wrote:
| On Sat, 06 May 2000 21:06:50 GMT, Chris <[EMAIL PROTECTED]> wrote:

| >Herein lies one of my biggest complaints about the Linux development
| >environment: there should be no reason why an application programmer must
| >rely on undocumented "catch-all" calls to accomplish simple tasks.  The
| >"man ioctl_list" page is a complete waste of time-- it's hopelessly out of
| 
| Get real; these ioctl's are easy to find in the kernel source code.
| 
| >date and only contains the argument type for each command without any
| >explaination of where, why or how each should be used.  Application
| >programmers shouldn't have to resort to sifting through the kernel source
| >code to figure out how to perform simple and common tasks.
| 
| I disagree on both counts. Having the operating system source code
| is a blessing. I'd rather read ten lines of code than a thousand lines
| of documentation.

  Do you work for Microsoft? Why else would anyone argue that having
documentation is not as good as wading through the kernel source?

| Secondly, I disagree that tasks accomplished through operating system specific
| ioctl's are ``simple and common''. There is no need for something other than a
| system management utility to be making the SIOCGIFADDR ioctl.  People writing
| system management utilities should have intimate knowledge of the operating
| system.
| 
| This stuff needs to be hard to find and hard to use, otherwise people will go
| rampant writing programs that depend on shaky semi-private interfaces in the
| OS.

  Is it that you have a reason to promote the "Linux is really hard to
use" approach, that you believe in "security through obscurity," or that
you are a kernel coder and "if it was hard to write it should be hard to
read?" In any case you are dead wrong, the documentation should be
written first, and then used as a template for both the application
programmer and the kernel implementor. Looking at the source code
encourages applications to use bugs as features, rely on implementation
errors, etc.

| >People who write device drivers or kernel modules should provide a proper
| >man(2) or man(3) page.  Ideally, we should kill off the ioctl() function
| >and place all accessible driver variables in /proc.
| 
| The ioctl call is not just for setting and retrieving parameters; ioctl's can
| be used to perform synchronous tasks, such as blocking until something happens
| in a driver. 
|
| The idea of replacing ioctl by /proc is absurd.

  So was the idea of tuning the kernel on the fly using /proc/sys until
someone did it. Now if you said that some ioctl functions don't map
well into a /proc model, I would agree completely. And for portability,
as much as there is with ioctls, it's important to still provide that
functionality, and desirable for small . But there is a lot of worth to
the idea that many of the ioctl functions could be provided via a /proc
interface, even though that is certainly non-portable.

-- 
bill davidsen <[EMAIL PROTECTED]>  CTO, TMR Associates, Inc
  "Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.

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

From: [EMAIL PROTECTED] (Jonathan Hudson)
Crossposted-To: uk.comp.os.linux
Subject: Re: kernel 2.3.99-pre6
Date: 9 May 2000 19:13:31 GMT

In article <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] (Charles Blackburn) writes:

CB> seeing as kernels 2.3.99-pre6 doesn't support ipchains, how do I go about
CB> setting up a firewall? any help would be appreciated.

You use netfilter, which has an ipchains compatibility mode. It's the
config options that says "Network Packet Filtering (replaces IP
Chains)."

<URL:http://netfilter.kernelnotes.org>

HTH

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

From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: RS-485
Date: 9 May 2000 19:20:16 GMT


In article <[EMAIL PROTECTED]>,
Tobias Anderberg <[EMAIL PROTECTED]> wrote:
| 
| I'm about to add support for rs-485 for a project I'm working on.
| I don't want to make this a user-space driver, instead I would
| like to add this directly to the existing serial driver, and make
| it easy accessible with an ioctl(), like "ioctl(fd, RS485, &n);"
| and then all communication with the serial device would be done
| using rs-485 semantics.
| 
| I just wondering what you people has to say about this. What's the
| reason that this isn't already in the driver? How would one
| implement this in best possible manner? Basically, just flame me
| with thoughts, comment, ideas and so on.

  The last person to admit to changing the serial driver was Ted T'so,
and his name is missing from the MAINTAINERS file now. He was at MIT,
but I don't have an address. You might ask him for an opinion.

  Then note that virtually all of the serial drivers say you should
write the 485 driver in user space. Quite possibly they all followed
Ted's lead on that, the statements are identical in most cases.

  The last serial driver I wrote was for a USART, in about 1985, and it
included synchronous as well as asynchronous support, and 20ma current
loop, but as I recall you need to monitor TBE (buffer empty) instead of
TXR (transmitter ready) for some functions. Obviously you want to avoid
long delays in drivers, so you probably want to generate an IRQ there.

  If you really want to avoid the user mode driver, I would write it and
test it heavily, then post it here and let others try it. At that point
you could send it to the kernel list and see what you get back, if
anything. If the reason it isn't in the standard driver is because no
one wanted it, it might get there. If Linus says you can do it in user
space, I hate to see everyone write their own, but Linux is not a
committee on many of these things. If there is a resistance to adding it
to the standard kernel driver, look at all the stuff which is optional
in a kernel build, and see if it can be a module or part of one.

  Finally, some features just never seem to get in the kernel for
reasons known only to whoever doesn't like them. There's been a new
software RAID package around since about 2.2.6, it comes with Redhat,
and I don't believe it's in 2.3.99pre6, although I looked at the
config.in file for the RAID-4/5 option rather than searching the
drivers.



-- 
bill davidsen <[EMAIL PROTECTED]>  CTO, TMR Associates, Inc
  "Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.

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

From: Mustafa Isik <[EMAIL PROTECTED]>
Subject: Question on global constructors
Date: Tue, 09 May 2000 16:09:46 -0400

Hi ,

We are trying to port some code from windows to linux and
we are having an issue about executing global constructors. We tried
using the
Collect2  or GNU linker. We'd like this global
constructor run
before anything in our main( ) executes. According to the help document
under :

/usr/cygnus/codefusion-990706/html/2_comp/Using_GNU_CC/gcccollect2.html

Collect2 is supposed to arrange a cosntructor table and run the global
constructors
before main ( ) ever gets executed. However, when the execution starts,
global
constructor is ignored. I was wondering what we are missing here, any
options or
path varaibles that we need to set. Please see the attached files for
the source,
make and link files. The same code was working fine on Windows.

 Your help is appreciated.




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

From: Neelima Mehta <[EMAIL PROTECTED]>
Subject: Substituting socket library in glibc
Date: Tue, 9 May 2000 16:09:31 -0500


Hi!

I am really new to working on libc stuff - I want to substitute the
different socket calls - socket(), bind(), accept().... with my own
implementation, in a seamless way.

I am working on a transport level protocol, which I want some
applications, such as Netscape, to use instead of TCP/IP. Since I don't
have the source code available for Netscape, I want it to access my code
when it makes a call to any of the following socket functions:

1) socket() 2) bind(), 3) connect(), 4) accept() 5) listen() 6) close().

Can anyone give me any pointers for relevant documentation? I've searched
the web, but I don't seem to be hitting on any relevent links...

Thanks!

Neelima



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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Substituting socket library in glibc
Reply-To: [EMAIL PROTECTED]
Date: Tue, 09 May 2000 21:19:35 GMT

On Tue, 9 May 2000 16:09:31 -0500, Neelima Mehta <[EMAIL PROTECTED]>
wrote:
>
>Hi!
>
>I am really new to working on libc stuff - I want to substitute the
>different socket calls - socket(), bind(), accept().... with my own
>implementation, in a seamless way.
>
>I am working on a transport level protocol, which I want some
>applications, such as Netscape, to use instead of TCP/IP. Since I don't
>have the source code available for Netscape, I want it to access my code
>when it makes a call to any of the following socket functions:
>
>1) socket() 2) bind(), 3) connect(), 4) accept() 5) listen() 6) close().
>
>Can anyone give me any pointers for relevant documentation? I've searched
>the web, but I don't seem to be hitting on any relevent links...

Consider writing your custom protocol inside a proxy server instead.  Then tell
netscape to send its http requests  to a proxy at 127.0.0.1/80.  Your proxy can
then communicate with other software however it wants.

Linux doesn't have sockets ``provider'' architecture like Windows sockets, so
you would be looking at modifying the library source. This is possible to do,
but making a proxy is simply cleaner and easier in the long run.

Note that you can add protocols in the kernel, but then the application has
know about different protocols and choose them; it would have to change its
calls to socket() to use a different protocol family argument. Most apps are
not flexible this way, they are hard coded to use sockets in the AF_INET
protocol family, so you are stuck.

-- 
#exclude <windows.h>

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

From: Timur Tabi <[EMAIL PROTECTED]>
Subject: Determining amount of physical RAM from a driver?
Date: Tue, 09 May 2000 21:19:24 GMT

I would think that this is a FAQ, but I can't find the answer anywhere.

I need to be able to determine, from within my driver's init_module
function, the amount of physical RAM in the system.  I don't want to
know anything about virtual memory, I'm simply interested in one
number: the amount of physical RAM installed on a system, in megabytes.

Can anyone help me?

--
Timur Tabi
Interactive Silicon - http://www.interactivesi.com
Remove "nospam_" from my email address when replying


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED] (Lindanne Metley)
Subject: kernel manpages
Date: Tue, 09 May 2000 13:42:28 -0800

Does anything like section 2 and 3 man pages exists for [important|all]
kernel space calls?

-- 
CACS: Collective Against Consensual Sanity       v0.123
Now a text site map! http://www.angelfire.com/ca3/cacs/

While PacBell is broken, contact will be intermittent.

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

From: Mark <[EMAIL PROTECTED]>
Subject: Re: dev_get("eth0:0")
Date: Tue, 09 May 2000 23:21:41 +0100

What does eth0:0 mean? A different enternet card from eth0? Would eth1
work?

Mark

Emmanuel Chaput wrote:

>    In a network driver code, I use "dev_get(another_device)"
> It works fine (eg with another_device="eth0") but it fails
> with another_device="eth0:0" ! Of course eth0:0 has been
> ifconfig'd UP and works fine ...
>
>    Who could give me some help on this point ?
>
> --
> Emmanuel Chaput       D�pt T�l�com & R�seau, ENSEEIHT
> *5 61 58 82 10            [EMAIL PROTECTED]


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

From: Mark <[EMAIL PROTECTED]>
Subject: Re: Telnet-like application
Date: Tue, 09 May 2000 23:24:23 +0100

Check out http://www.ecst.csuchico.edu/~beej/guide/net/ . Excellent
tutorial on sockets 'n all the stuff you need for network programming!

Mark

Matthias Kempa wrote:

> Hi,
>
> I made an application with the help of Qt 1.44 library.
> Now I want to add some functions to connect to another
> server via telnet. Is there somewhere a good documentation
> so that I can find out, how to get connected?
>
> Thanks
>
> Matthias


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

From: "Calixto Melean" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Linux behaving like Windows
Date: Tue, 9 May 2000 18:28:43 -0400

So, I am up to the point where I need to compile my modules, after entering
"make modules", it starts compiling for about 3 or 4 minutes and then the
machine hangs, no mouse no keyboard, frozen!, I wait for about 30min and
nothing happens. I have to unplug the machine and hope I am not screwing my
hard disks.

I have no clue whats going on. Memory is Ok, swap file is almost empty......

appreciate any idea on how to debug this

thanks

cal



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

From: Neelima Mehta <[EMAIL PROTECTED]>
Subject: Re: Substituting socket library in glibc
Date: Tue, 9 May 2000 17:57:19 -0500



> Consider writing your custom protocol inside a proxy server instead.  Then tell
> netscape to send its http requests  to a proxy at 127.0.0.1/80.  Your proxy can
> then communicate with other software however it wants.

Thanks a lot for the suggestion - we are already trying that out. But
integrating this protocol with libc is also on the agenda - I need to do
both, in short, and the proxy server can just serve as a stepping stone.
Could you give me any suggestions on where to start?

> Note that you can add protocols in the kernel, but then the application has
> know about different protocols and choose them; it would have to change its
> calls to socket() to use a different protocol family argument. Most apps are
> not flexible this way, they are hard coded to use sockets in the AF_INET
> protocol family, so you are stuck.

Yup - I understand what you are saying. I don't have a kernel level
implementation - I have developed it over UDP, and need to work on
providing the same interface, when I change the library source code, so
that no changes are required in the application.

Thanks a lot!!!

Neelima



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

From: [EMAIL PROTECTED] (Sam E. Trenholme)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux behaving like Windows
Date: 9 May 2000 15:59:26 -0700

>So, I am up to the point where I need to compile my modules, after entering
>"make modules", it starts compiling for about 3 or 4 minutes and then the
>machine hangs, no mouse no keyboard, frozen!, I wait for about 30min and
>nothing happens.

This sounds like a hardware problem.  What kind of motherboard and
processor do you have, have you checked your RAM, etc?

I suspect bad RAM myself.

- Sam

-- 
Go to http://www.hoohahrecords.com/rap for information on the Bohemian RAP CD
Go to http://samiam.org/cgi-bin/mailme to get my email address

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

From: Thomas F. Drescher <[EMAIL PROTECTED]>
Subject: I dont understand this gehostbyname() failure
Date: Wed, 10 May 2000 02:25:00 GMT

Hello out there,

please can somebody explain how =84gethostbyname()=93 is involved in the=
=20
following example and why it fails? (It looks that it tries to resolve=20=

the local name by my ISPs DNS server)

example: (alias translated to FQDN =96 and dial out to DNS, why?)
#> tcpdmatch in.telnetd myhost
warning: myhost: hostname alias
warning: (official name: myhost.my.net)
warning: can't verify hostname: gethostbyname(myhost.my.net) failed
client:   hostname paranoid
client:   address  192.168.101.1
server:   process  in.telnetd
access:   granted

* /etc/hosts:
192.168.0.1    isdn-gw-1
192.168.101.1  myhost.my.net  myhost
* networks:
my.net         192.168.101.0
* host.conf:
order hosts bind
* resolv.conf:
[my ISPs DNSs]
* nsswitch.conf:
hosts:  files dns

Thank you, I appreciate your soon answer.
Kind regards, Thomas


P.S. Is this newsgroup free from address harvesters? Here, some yummy=20=

fresh food to send your spam to!  >:-)
---
CAUTION! Adresses mentioned in this posting are privat and=20
not for commercial use nor for unsolicited marketing mail!=20
Violations will be reported to their appropriate providers.
--=20
AT&T abuse will be reported to [EMAIL PROTECTED]
Hinet abuse will be reported to [EMAIL PROTECTED]
SprintNet abuse will be reported to [EMAIL PROTECTED]
ZZN abuse will be reported to ZZN Spam <[EMAIL PROTECTED]>
Pacific Bell abuse will be reported to [EMAIL PROTECTED]
Above Net abuse will be reported to [EMAIL PROTECTED]
T-Online abuse will be reported to [EMAIL PROTECTED]
CompuServe abuse will be reported to [EMAIL PROTECTED]
AOL abuse will be reported to [EMAIL PROTECTED]
Seednet abuse will be reported to [EMAIL PROTECTED]
Url.com.tw abuse will be reported to [EMAIL PROTECTED]
MyWorldMail abuse will be reported to [EMAIL PROTECTED]
Postech abuse will be reported to [EMAIL PROTECTED]
Nexo.es abuse will be reported to [EMAIL PROTECTED]
Homestead abuse will be reported to [EMAIL PROTECTED]

join the antiSPAM campaign! feel free to update this list!





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

From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: Real Time Programming in Linux
Date: Wed, 10 May 2000 00:29:40 +0000

Simon Wakley wrote:
> 
> Thanks Erik,
> 
> I tried using pthread_attr_setschedpolicy et al as in the following
> code.  That did not work, and my thread still got de-scheduled for 300ms
> which is pretty bad!  Did I do sthg wrong, or do I have to use rtlinux
> (or QNX).

I actually don't have much experience using this stuff but I would not
expect it to be de-scheduled for 300ms. What else is going on? I know
heavy activity on IDE disk can screw things around quite badly.

My only suggestion would be to try Kurt or rtlinux. RTLinux 

> >http://www.ittc.ukans.edu/kurt/  (firm)
> >http://www.rtlinux.com/          (hard)

Erik
-- 
+-------------------------------------------------+
     Erik de Castro Lopo     [EMAIL PROTECTED]
+-------------------------------------------------+
Those who do not understand Unix are condemned to reinvent it, poorly.  
-- Henry Spencer

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


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