Linux-Development-Sys Digest #845, Volume #7     Thu, 11 May 00 14:13:15 EDT

Contents:
  Re: Linux response time ("David Brown")
  Re: Two really easy (I'm sure) questions (Erik Max Francis)
  what is the current status of NFS development? (Michal Szymanski)
  Re: Linux behaving like Windows (Robert Hampf)
  User logging ("Soundwave")
  Re: User logging (Josef Moellers)
  a simple question reg drivers ([EMAIL PROTECTED])
  Re: a simple question reg drivers (Zoran Cutura)
  tcp window ("Christos Karayiannis")
  Re: in <linux/fs.h> ,the read and write ?? (Eric)
  Re: in <linux/fs.h> ,the read and write ?? (Josef Moellers)
  User and passwd (Stephane Negri)
  100 Mb thernet PCI on a 486 DX2 66MHz? (Zirong Wang)
  Re: udp socket in a kernel module? ([EMAIL PROTECTED])
  Re: Does Linux support PCMCIA cards? (Duncan Higgins)
  Re: what is the current status of NFS development? (David T. Blake)
  Cross-Compiling??? (Colin Ford)
  Re: LILO Win+Linux on an old system (Paul D. Smith)
  Re: Need to find my IP address (brian moore)
  Re: Need to find my IP address (Kaz Kylheku)

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

From: "David Brown" <[EMAIL PROTECTED]>
Crossposted-To: comp.arch.embedded
Subject: Re: Linux response time
Date: Thu, 11 May 2000 09:18:41 +0200


Christopher Browne wrote in message ...
>Centuries ago, Nostradamus foresaw a time when Ling Su would say:
>>I have a simple question on the system response time for general Linux
with
>>a high preformance processor(like Pentium III 800MHz). How about the
>>improvement with the RT-Linux extension?
>
>The RT-Linux extension isn't generally going to improve response times;
>it is going to worsen them.
>
>The point to RT is to provide _predictable_ worst-case performance for
>some specific processes.
>

Although RT extensions like RT-Linux or RTAI will slightly worsen the
best-case response times, the predictable worst-case response will be much
better.  The point is, RT tasks can interrupt time-consuming kernel
operations (like disk I/O and page swapping) which can block normal Linux
tasks for long periods (over 100 ms, according to an article I read
recently).

Have a look at http://www.realtimelinux.org/ for links to various Real Time
Linux solutions.


>That is not, in general, going to improve performance.  Rather, it will
>worsen performance in general.
>
>The way that there would be an improvement in performance is in that you
>would strip out of the system any spurious processes, leaving in only
>the components absolutely necessary for your embedded system.
>--
>Rules of the Evil Overlord #84. "I will not have captives of one sex
>gnuarded by members of the opposite sex."
><http://www.eviloverlord.com/>
>[EMAIL PROTECTED] - - <http://www.hex.net/~cbbrowne/lsf.html>



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

From: Erik Max Francis <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: Two really easy (I'm sure) questions
Date: Wed, 10 May 2000 14:46:07 -0700

Joe Pfeiffer wrote:

> I *think* (which means I haven't read enough of the standards, and
> haven't been careful enough in reading what I have) that if your
> program's behavior happens to make it to the call of exit(0), and the
> call happens successfully, then you are guaranteed to terminate with a
> correct exit status.  But I wouldn't be at all surprised to find
> out that the fact the program's behavior is undefined ``trumps'' the
> definition of exit(), so even that wouldn't be sure.

The problem is that a main returning void is undefined behavior no
matter what else happens (specifically, even if you avoid falling off
the end of main by calling exit).  THe problem is one of calling
conventions in startup code, not of whether or not you can actually
avoid hitting the end of mail.  See the comp.lang.c FAQ, Questions
11.14:

    http://www.eskimo.com/~scs/C-faq/q11.14.html

-- 
 Erik Max Francis / [EMAIL PROTECTED] / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ You win the victory when you yield to friends.
\__/ Sophocles
    Kepler's laws / http://www.alcyone.com/max/physics/kepler/
 A proof of Kepler's laws.

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

From: [EMAIL PROTECTED] (Michal Szymanski)
Subject: what is the current status of NFS development?
Date: 11 May 2000 08:06:36 GMT

It would be interesting to hear a word from developers on the current
status and perspectives of NFS in Linux. IMHO it looks like being
slightly off the main course of Linux development. Still at version 2,
not very reliable. I am mantaining two heterogenous LANs consisting of
Linux PCs and Solaris Sparcs and NFS between these two OSes was always an
issue. Also, most of system hangs in Linux machines were most probably
due to NFS problems.

regards, Michal Szymanski.

-- 
  Michal Szymanski ([EMAIL PROTECTED])
  Warsaw University Observatory, Warszawa, POLAND

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

From: [EMAIL PROTECTED] (Robert Hampf)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Linux behaving like Windows
Date: 11 May 2000 11:15:36 +0200

Ad Koster <[EMAIL PROTECTED]> h�lt �essu fram:
:
: In case you are looking for a great linux program for testing your memory you should 
: certainly try memtest86.

or http://panic.et.tudelft.nl/~costar/memmxtest/

rh

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

From: "Soundwave" <[EMAIL PROTECTED]>
Subject: User logging
Date: Thu, 11 May 2000 10:44:43 +0200

Hello,

I have a case for school, and I was wondering if some of you can get me a
bit on my way ?

I have to write a program that detects when a user logs on and of the
system, and writes this in a text file.
I have to write it in C, does anyone have any tips for me, or some
intresting URL, where I can get some info ?

Thanx

Niels



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

From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: User logging
Date: Thu, 11 May 2000 11:01:43 +0200

Soundwave wrote:
> =

> Hello,
> =

> I have a case for school, and I was wondering if some of you can get me=
 a
> bit on my way ?
> =

> I have to write a program that detects when a user logs on and of the
> system, and writes this in a text file.
> I have to write it in C, does anyone have any tips for me, or some
> intresting URL, where I can get some info ?

If your Linux distribution supports PAM (pluggable authentication
modules), you could just write a module for PAM. Look at the PAM source
code that comes with the distribution.

-- =

Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1

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

From: [EMAIL PROTECTED]
Subject: a simple question reg drivers
Date: Thu, 11 May 2000 11:35:18 GMT

hello friends,
             i want to use 3 button(no wheel) logitech serial mouse.
previously i was using intellimouse(PS/2 mouse port).now i should
change the link of /dev/mouse. to which file the new link should be
established.
i use 2 systems
(1)  pII running caldera ker ver 2.2.5
(2)  pII running redhat 5.1 ker ver 2.0.38
thank u in advance


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

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

From: Zoran Cutura <[EMAIL PROTECTED]>
Subject: Re: a simple question reg drivers
Date: Thu, 11 May 2000 13:58:26 +0200

[EMAIL PROTECTED] wrote:
> 
> hello friends,
>              i want to use 3 button(no wheel) logitech serial mouse.
> previously i was using intellimouse(PS/2 mouse port).now i should
> change the link of /dev/mouse. to which file the new link should be
> established.
> i use 2 systems
> (1)  pII running caldera ker ver 2.2.5
> (2)  pII running redhat 5.1 ker ver 2.0.38
> thank u in advance
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

the device is /dev/ttyS0 or /dev/ttyS1 depending on to which
port your mouse is connected.
        
        Z

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

From: "Christos Karayiannis" <[EMAIL PROTECTED]>
Subject: tcp window
Date: Thu, 11 May 2000 14:58:47 +0300

I used a sniffer to examine the packets of a telnet connection in my PC and
I noticed that my initial tcp window' s size was 512 bytes. At the next
packet it went to 32,120. Could anybody give some axplanation ?

                                                        Christos



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

From: Eric <[EMAIL PROTECTED]>
Subject: Re: in <linux/fs.h> ,the read and write ??
Date: Thu, 11 May 2000 12:15:13 GMT
Reply-To: [EMAIL PROTECTED]

���� wrote:
> 
> The Linux version in my computer is 2.2.13
> and in <linux/fs.h>  the "struct file_operations",
> sizze_t (*read)(struct file*   ,char*   ,size_t   ,loff_t*   );
> sizze_t (*write)(struct file*   ,char*   ,size_t   ,loff_t*   );
> 
> What does the argument "loff_*  " means  ?
> thanks.
offset

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

From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: in <linux/fs.h> ,the read and write ??
Date: Thu, 11 May 2000 15:06:14 +0200

Eric wrote:
> =

> =A5=D0=A8=CE=F8=CA wrote:
> >
> > The Linux version in my computer is 2.2.13
> > and in <linux/fs.h>  the "struct file_operations",
> > sizze_t (*read)(struct file*   ,char*   ,size_t   ,loff_t*   );
> > sizze_t (*write)(struct file*   ,char*   ,size_t   ,loff_t*   );
> >
> > What does the argument "loff_*  " means  ?
> > thanks.
> offset

_long_ offset, I'd suggest from the typedefs:
typedef __quad_t __loff_t;
typedef long long __kernel_loff_t;

and =


typedef __kernel_loff_t         loff_t;
or
typedef __loff_t loff_t;

-- =

Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1

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

From: Stephane Negri <[EMAIL PROTECTED]>
Subject: User and passwd
Date: Thu, 11 May 2000 13:19:13 GMT

Hi all,

I m creating a 'User management tool', so I need to know all the created
user and all their relative information (uid, gid, shell, ...). An other
thing I need is to be able to modify their passwd (the tool can set
passwd). Ok so my problem is: I didn t find any system call that return
a list or en entry of user database (except for getpwent) AND any system
call that can modify (set) en entry in the database. And an other
problem is that the mechanism has to work with passwd, shadow or NIS
database.

Any help, please ???

Thx,

Stephane

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

From: Zirong Wang <[EMAIL PROTECTED]>
Subject: 100 Mb thernet PCI on a 486 DX2 66MHz?
Date: Thu, 11 May 2000 15:52:56 +0200

Hi groupmates,

Can someone tell me if a old 486 Dx2 66Mhz PC can support a 100 Mb/s
ethernet PCI card ? or am I stuck with 10 Mb network if I want
include my old 486 machine in the network?

Thanks
=====================================================================
Zirong Wang    Oce Industries  1, Rue J. Lemoine 94015 Creteil France

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

From: [EMAIL PROTECTED]
Subject: Re: udp socket in a kernel module?
Date: Thu, 11 May 2000 14:09:19 +0100

Travis Hein <[EMAIL PROTECTED]> wrote:
: is it possible to create a kernel module that creates a kernel thread that
: listens on a UDP port for incomming UDP packets, and responds accordingly to
: them
: I have built the application as a user process, now i want to make it a built in
: part of the kernel.

: I was also considering making a user-mode kernel module, as that should also let
: me do this, but i have not found any references on how to do this yet.

: Could anyone help me to find references to make a user-mode kernel module,
: and/or making UDP listening sockets in a kernel module

It is possible. Take a look at the kernel NFS server
in Linux >= 2.2. This binds to both UDP and TCP sockets
and serves requests.

Rich.

-- 
[EMAIL PROTECTED] | Free email for life at: http://www.postmaster.co.uk/
BiblioTech Ltd, Unit 2 Piper Centre, 50 Carnwath Road, London, SW6 3EG.
+44 171 384 6917 | Click here to play XRacer: http://xracer.annexia.org/
--- Original message content Copyright � 2000 Richard Jones ---

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

From: [EMAIL PROTECTED] (Duncan Higgins)
Subject: Re: Does Linux support PCMCIA cards?
Date: Thu, 11 May 2000 15:07:32 GMT

On Sun, 07 May 2000 07:31:10 GMT, "Blade" <[EMAIL PROTECTED]> wrote:

>    Hope someone can help me, I have recently installed Redhat Linux 6.2 on
>my Sony notebook, and I want to have my network card up and running. I'm
>using a LiveWire 10/100 Ethernet LAN card, but I can't find the drivers for
>it and also don't know if there are drivers for my PCMCIA slots. If anyone
>knows of a web site that has PCMCIA drivers or drivers for that particular
>network card, please help thanks

Also check out these Linux Laptop pages :

   http://www.cs.utexas.edu/users/kharker/linux-laptop/
   http://www.linux.org/hardware/laptop.html

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

From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: what is the current status of NFS development?
Date: 11 May 2000 13:55:55 GMT
Reply-To: [EMAIL PROTECTED]

Michal Szymanski <[EMAIL PROTECTED]> wrote:
> It would be interesting to hear a word from developers on the
> current status and perspectives of NFS in Linux. IMHO it looks
> like being slightly off the main course of Linux development.
> Still at version 2, not very reliable. I am mantaining two
> heterogenous LANs consisting of Linux PCs and Solaris Sparcs and
> NFS between these two OSes was always an issue. Also, most of
> system hangs in Linux machines were most probably due to NFS
> problems.

NFSV3 patches were just merged into the 2.2.16pre tree, and
will be released when 2.2.16 comes out. They are available for
2.2.15 as patches at sourceforge. The nfsv3 has quite reasonable
performance compared to OSF/1 or Solaris. 

For reliable nfsv2 with locking you need either 2.2.14 or 2.2.15,
I cannot remember off hand.

Consider good nfs on linux a very very recent development.

-- 
Dave Blake
[EMAIL PROTECTED]

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

From: Colin Ford <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Cross-Compiling???
Date: Thu, 11 May 2000 16:16:39 +0100

Hello There,

I've been trying to find out information about gcc and
cross-compiling to the MIPS R3000 platform. I've
followed the instructions in the cross-compiling FAQ
but have hit a snag. gcc-2.95.2 does not seem to what
to build with the target=mips-elf? It keeps complaining
about mips-tfile.

mips-tfile does not seem to want to compile because
of the mips/a.out.h is missing.

Has anyone tried to do this before? Any help would be
very much appreciated.

Cheers,
Col.


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

From: [EMAIL PROTECTED] (Paul D. Smith)
Subject: Re: LILO Win+Linux on an old system
Date: 11 May 2000 12:34:52 -0400
Reply-To: [EMAIL PROTECTED]

%% Josef Moellers <[EMAIL PROTECTED]> writes:

  jm> "Paul D. Smith" wrote:

  >> I'm not exactly sure what you're trying to say here, but as I said, it
  >> can't be a problem with the Windows filesystem since I'm not able to get
  >> past the "LI" in the boot sequence.

  jm> Technically speaking, this means that the first "half" of the LILO boot
  jm> loader was loaded successfully, but the second "half" wasn't ("half"
  jm> because they are not equal in size).

Yep.  But I have no idea what, exactly, the halves entail.  I assume
that if I can't even get the LILO "boot:" prompt, it sure hasn't
examined enough of /dev/hda1 (which is not the root partition) to decide
what filesystem is on it.  Why would it?

  jm> 1. to add the keyword "linear" to your /etc/lilo.conf file?

Yes, that didn't help :(.

  jm> 2. to add the disk parameters (C/H/S) to the /etc/lilo.conf file?

I haven't done this.  I'm not sure how to proceed here.  I recall a
mention on the docs, I'll take a look for details tonight.

  jm> I'd suggest you try the first first, it often fixes the problem.

I read all the docs, including the mini-howtos, user guide, and
technical doc.  I searched the RedHat problems DB.

While I have seen references to getting to "LI" and no further (although
none with any useful suggestions for fixing it), I've never seen one
that mentioned what happens to me: it doesn't just print "LI" then stop,
it prints "LI" forever, until I reboot:

LI
LI
LI
LI
LI
LI
  ...

Thanks for your messages...

-- 
===============================================================================
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
   These are my opinions---Nortel Networks takes no responsibility for them.

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

From: [EMAIL PROTECTED] (brian moore)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux,comp.os.linux.misc
Subject: Re: Need to find my IP address
Date: 11 May 2000 17:33:49 GMT

On Thu, 11 May 2000 06:50:31 GMT, 
 Chris <[EMAIL PROTECTED]> wrote:
> On 9 May 2000 02:37:53 GMT, [EMAIL PROTECTED] (brian moore) wrote in
> comp.os.linux.development.apps:
> 
> >Why would you want to specify 'eth0' instead of '10.1.2.3'?
> 
> Perhaps I want to read the binding port from a config file when the
> program loads but the interface address is controlled by a DHCP client so
> the numeric address can't be known in advance.

Then you know that it will have to be restarted every time you restart
dhcp (as you bind to an IP number not to a port).

And DHCP (and PPP) provide you mechanisms to execute your own arbitrary
commands when you get a new IP number, which are passed (amongst other
things) the IP number issued.

That would be the -correct- way to do it.

-- 
Brian Moore                       | Of course vi is God's editor.
      Sysadmin, C/Perl Hacker     | If He used Emacs, He'd still be waiting
      Usenet Vandal               |  for it to load on the seventh day.
      Netscum, Bane of Elves.

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux,comp.os.linux.misc
Subject: Re: Need to find my IP address
Reply-To: [EMAIL PROTECTED]
Date: Thu, 11 May 2000 17:51:54 GMT

On Thu, 11 May 2000 06:50:31 GMT, Chris <[EMAIL PROTECTED]> wrote:
>On 9 May 2000 02:37:53 GMT, [EMAIL PROTECTED] (brian moore) wrote in
>comp.os.linux.development.apps:
>
>>Why would you want to specify 'eth0' instead of '10.1.2.3'?
>
>Perhaps I want to read the binding port from a config file when the
>program loads but the interface address is controlled by a DHCP client so
>the numeric address can't be known in advance.

You don't need to know any IP address in order to bind a socket
to a port.

You can just bind to the the wildcard INADDR_ANY.

    struct sockaddr_in bind_addr;

    bind_addr.sin_family = AF_INET;
    bind_addr.sin_addr.s_addr = htonl(INADDR_ANY);
    bind_addr.sin_port = htons( <whatever> );

    /* now use bind_addr in your call to bind() */

Binding to a specific network is only useful on hosts with more than one
adapter (or with IP aliasing on a single adapter, or some combination thereof).

What are you doing that is so special that you need to make a DHCP
machine provide a service which listens on a particular network?

-- 
#exclude <windows.h>

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


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