Linux-Development-Sys Digest #871, Volume #7     Thu, 18 May 00 05:13:11 EDT

Contents:
  Re: C routine calls (Alexander Viro)
  Finding XID of RPC request (Brian White)
  Re: Need ideas for university funded project for linux (Mongoose)
  Re: getting online successfully (Patrick Draper)
  Re: porting NT device drivers to linux (Mario Klebsch)
  Re: porting NT device drivers to linux (Grant Edwards)
  Re: Need ideas for university funded project for linux ([EMAIL PROTECTED])
  Re: inline-limit might be fun to try (Graham Stoney)
  Stack size  in gdb/ddd?? (MikeC)
  Re: Need ideas for university funded project for linux (Michael Hofmann)
  Re: Need ideas for university funded project for linux ("Richard Gill")
  Re: Need ideas for university funded project for linux (Leslie Mikesell)
  Re: Need ideas for university funded project for linux (Koos Pol)
  Re: Need ideas for university funded project for linux (eyez)
  Re: Need ideas for university funded project for linux (eyez)
  Why no defrag? ("Peet Grobler")
  xplot problems (=?iso-8859-1?Q?C=E9sar?= Espinosa)
  Re: Why no defrag? (Josef Moellers)
  Re: Why no defrag? (Josef Moellers)
  Re: Need ideas for university funded project for linux (David Steuber)

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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: C routine calls
Date: 17 May 2000 22:45:53 -0400

In article <[EMAIL PROTECTED]>,
Steve  <[EMAIL PROTECTED]> wrote:
>I'm trying to record all C routine calls of a program. Is there any good
>way to do this? Please give me some useful links about C Library
>implementation.

look for ltrace.

>Also, I need the source code for some small applications and commands,
>such ps and ls, under Linux/FreeBSD. Where can I get them?

On a properly maintained system:
/usr/src/fileutils*/ or /usr/src/bin/ls/
and
/usr/src/procps*/ or /usr/src/bin/ps/ (heck, it was a _long_ time since I've
looked at the last one - /usr/src/*/ps/ may be a safer bet).
If you are a lazy bum and didn't install the sources - do that.

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: Brian White <[EMAIL PROTECTED]>
Subject: Finding XID of RPC request
Date: Wed, 17 May 2000 23:18:43 -0400


I'm hacking a user-level NFS daemon to talk to a distributed object
system.  Unfortunately, the remote calls performed by this system to
complete NFS requests may be take quite a while (or timeout).  So, I've
implemented a request reply cache so I don't have to repeat completed
requests.  (I'd like to avoid kludgy fixes like setting NFS timeouts.)

In implementing the cache, I need (I believe) the XID of the incoming RPC.
I'm looking at the SVCXPRT and rpc_msg structs.  From rpc_msg, I can get
the XID as 'rm_xid'.  I believe this worked fine at one point.  We've
since upgraded to the redhat 2.2.14 kernel (on x86).  Now I'm seeing a
value of 0 for this field.  I've initiated 100s of requests and the value
was always 0.  (These were consequent requests.)

I've tried digging through the source, and if I'm reading correctly,
XIDs of 0 should be QUITE rare.  This from xprt_request_init in
.../net/sunrpc/xprt.c.

Briefly, XIDs begin at CURRENT_TIME << 12 and are incremented by 1.
Eventually, this will wrap to 0 and be reset to CURRENT_TIME << 12.

Can anyone suggest problems with my strategy or with the kernel?  Is there
a better way to obtain an RPC's XID?

Thank you,
Brian




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

From: Mongoose <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Reply-To: [EMAIL PROTECTED]
Date: Thu, 18 May 2000 04:49:10 GMT

On Thu, 18 May 2000 01:00:45 GMT, [EMAIL PROTECTED] wrote:

>> So what is the problem with doing this in the KDE desktop? 
>
>KDE isn't free.

  uh what? I don't remember paying for KDE...

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

From: Patrick Draper <[EMAIL PROTECTED]>
Subject: Re: getting online successfully
Date: Thu, 18 May 2000 04:43:42 GMT

In article <8fs15r$km0$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Try this page,
>   http://www.serv.net/~cameron/ezppp/
> They just released a version for gnome,
>
> or try the linux ppp howto at:
>   http://www.linuxdoc.org/HOWTO/PPP-HOWTO.html

Another program to try is wvdial. I've always set up my ppp connections
by hand, editing all the scripts, etc. I got pretty good at it. On a
whim I tried wvdial and it worked automatically.

Install wvdial.
Type wvdial.
Bingo, after the one time config, you're connected.



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

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: porting NT device drivers to linux
Date: Thu, 18 May 2000 00:46:40 +0200

[EMAIL PROTECTED] writes:

>I think the best way for the driver is a module,

I would not judge it the best way, but for most parts of the driver,
that should make no difference.  I am doing this the traditional
way. To experiment with device drivers, I link the driver to the
kernel, put the kernel onto a disk and boot it on a second computer. I
do not have that much faith in my kernel level programming facilities,
that I would risk my current development environment by testing my
driver on it.

>but I dont know how to port the dll - is there a
>similar concept in Linux

It is called loadable module. :-)

>or should I write a second module for
>it and stack it onto the driver module.

I would not make two modules, if I am not forced to do so. I would put
it all into a single module. If your drivers needs both modules to
work properly, you will gain nothing in splitting them. But you will
have the additional trouble of getting both modules loaded.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: porting NT device drivers to linux
Date: Thu, 18 May 2000 05:01:09 GMT

In article <[EMAIL PROTECTED]>, Mario Klebsch wrote:

>>but I dont know how to port the dll - is there a similar concept in Linux
>
>It is called loadable module. :-)

Not really, a DLL corresponds most closely with a Unix shared library --
it's user-space code that is linked into user programs when they are
executed.

>I would not make two modules, if I am not forced to do so. I would put it
>all into a single module. If your drivers needs both modules to work
>properly, you will gain nothing in splitting them. But you will have the
>additional trouble of getting both modules loaded.

It might be appropriate to split the functionality into an actual kernel
driver module and a shared library that provides higher-level functionality
on top of the driver-implimented system calls.

-- 
Grant Edwards                   grante             Yow!  NOW do I get to blow
                                  at               out the CANLDES??
                               visi.com            

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

Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
From: [EMAIL PROTECTED]
Date: Thu, 18 May 2000 05:03:30 GMT

Mongoose <[EMAIL PROTECTED]> writes:

> >KDE isn't free.

>   uh what? I don't remember paying for KDE...

If I remember the analogy correctly, it's free as in "free beer," but
not free as in "free speech."  Qt is the bottleneck, I believe.

-- 
Eric P. McCoy ([EMAIL PROTECTED])

non-combatant, n.  A dead Quaker.
        - Ambrose Bierce, _The Devil's Dictionary_

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

From: Graham Stoney <[EMAIL PROTECTED]>
Subject: Re: inline-limit might be fun to try
Date: 18 May 2000 05:13:55 GMT

In article <[EMAIL PROTECTED]>,
Eric Taylor  <[EMAIL PROTECTED]> wrote:
>For example, I have to use bzImage for my kernel as zImage is too large.
>There could be uses for this other than just speed tradeoffs.

If you're interested in minimizing your kernel size, compile with "-Os" instead
of "-O2" and check out the patches at:
    http://members.xoom.com/greyhams/linux/patches/2.2

Regards,
Graham

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

From: [EMAIL PROTECTED] (MikeC)
Subject: Stack size  in gdb/ddd??
Date: Thu, 18 May 2000 05:14:25 GMT

Gdb/ddd does not seem to show stack size in backtrace.
Do you really have to compute the size of each frame 
manually looking at the function name, then its parameters
and local variables????

Is there any way to find out the maximum stack size for
all the test cases executed?  One way would be do break
at each function and examine the stack - but this not
practical for large number of test cases and functions.
Is there any way to automate such a operation in gdb/ddd?


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

From: Michael Hofmann <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Thu, 18 May 2000 07:29:50 +0200

Foogar wrote:
> 
> Something like an app that would randomly crash?  

No need to develop it. Some of us got it running every day: Netscape.

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

From: "Richard Gill" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: Thu, 18 May 2000 08:10:25 +0200

No, too difficult !!
He and the university team would have to work 3 years at least to randomly
crash like Windows !
They should rewrite completly the kernel, what a stuff !!!!

:-)))

Foogar <[EMAIL PROTECTED]> a �crit dans le message :
8fub69$71d$[EMAIL PROTECTED]
> Something like an app that would randomly crash?  Windows could be
replaced
> by that!
>
> --
> ========================================
>
> to reply via email, send to [EMAIL PROTECTED]
> "Mongoose" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> |   I was thinking, maybe not just servers and stuff, but an application
> | that windows users have but linux doesn't. Something that would give
> | windows users more of an incentive to move to linux, or help them
> | migrate to linux.
>
>



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

From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 18 May 2000 01:35:28 -0500

In article <[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:

>> So what is the problem with doing this in the KDE desktop? 
>
>KDE isn't free.

For sufficiently bizarre definitions of free.

>And GNOME is nowhere near fully-developed.

There is gnorpm which seems roughly the same as kpackage, but the KDE
filemanager starts kpackage in install mode when you click on
a *.rpm file.  Gnorpm has an install mode but doesn't seem to
take filenames on the command line.

>Perhaps.  I've never actively administered a RedHat system.  Are all
>of RH's configuration tools proprietary or non-free? 

I've seen the claim that they are all GPL'd.  Didn't matter that
much to me - the iso is available for download so they are at
least free in the usual sense.

>If they were open source and portable between distros, I'd
>think they'd show up in Debian.  (After all, Bonobo and friends have.)

I haven't touched Debian since my first experience with dselect in
1996 or so.  I'm sure it has improved since then but I couldn't
deal with their attitude about how much better dpkg/dselect was
(when it didn't even work on a lot of systems) compared to rpm.
I'd be very surprised if that attitude every goes away to a
point where they would share rpm tools with RedHat.

  Les Mikesell
   [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Koos Pol)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Date: 18 May 2000 06:20:59 GMT
Reply-To: [EMAIL PROTECTED]

On Wed, 17 May 2000 14:39:01 GMT, martin <[EMAIL PROTECTED]> wrote:
| 
| How about an easy-to-use text editor ? (console, not GUI please :) ?
| One without a million complex commands, but with ability to select
| text with shift+arrow keys, like most dos/windows/os2-based editors
| do, F2 to save a file instead of Ctrl-x + Ctrl-s or something and
| those other features that are standard on other operating systems.
| 
| Basically, a simple editor that doesn't need a 300-page tutorial. 
| I can't find any of those in linux. Not for console anyway.
| 
| 
| --
| Martin


Oh yes you can! Try FTE. It does exactly all what you requested :-)
http://fte.sourceforge.net/

And it runs on Unix, Windows, OS/2,...

Koos Pol
======================================================================
S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]

Check my email address when you hit "Reply".

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

From: [EMAIL PROTECTED] (eyez)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Reply-To: [EMAIL PROTECTED]
Date: Thu, 18 May 2000 06:53:16 GMT

quoting <Leslie Mikesell>:
>I haven't touched Debian since my first experience with dselect in
>1996 or so.  I'm sure it has improved since then but I couldn't
>deal with their attitude about how much better dpkg/dselect was
>(when it didn't even work on a lot of systems) compared to rpm.
>I'd be very surprised if that attitude every goes away to a
>point where they would share rpm tools with RedHat.

>From my experience with debian, dpkg/dselect/apt *IS* better than rpm.
The biggest problem with rpm's on debian is that the dependency databases
for rpm as compared to the dpkg/apt ones are completely incompatible.
however, debian's distributions do currently contain the 'rpm' program as
well as 'alien', so you can convert an rpm to a .deb... debian has strived
to make the dpkg system work completely, in such a way that debian's
children (stormlinux, corel, libranet, et cetera) are all fully compatible
with debian. Any of these systems could be updated to debian with little
effort through the apt-system, and That would work reversely. Also, apt
could check each of the mirror sites for each of these distributions, and
update packages from all of them just as effortlessly. (Don't argue with me, I 
had a concurrent debian-Woody/StormLinux-Rain system for a while). That's a 
level of consistency that RedHat with it's SuSE/Mandrake/Caldera spawns can't
compete.

I've had to install some rpm packages on my debian system before, and it's
not hard to do, but it annoys me just the same that nobody ELSE supports
any package format but rpm.

>
>  Les Mikesell
>   [EMAIL PROTECTED]


-- 
Rando Christensen
[EMAIL PROTECTED]
<perception is reality>

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

From: [EMAIL PROTECTED] (eyez)
Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
Reply-To: [EMAIL PROTECTED]
Date: Thu, 18 May 2000 06:58:42 GMT

quoting <Koos Pol>:
>On Wed, 17 May 2000 14:39:01 GMT, martin <[EMAIL PROTECTED]> wrote:
>| 
>| How about an easy-to-use text editor ? (console, not GUI please :) ?
>| One without a million complex commands, but with ability to select
>| text with shift+arrow keys, like most dos/windows/os2-based editors
>| do, F2 to save a file instead of Ctrl-x + Ctrl-s or something and
>| those other features that are standard on other operating systems.
>| 
>| Basically, a simple editor that doesn't need a 300-page tutorial. 
>| I can't find any of those in linux. Not for console anyway.
>| 
>| 
>| --
>| Martin
>
>
>Oh yes you can! Try FTE. It does exactly all what you requested :-)
>http://fte.sourceforge.net/

Fte is truly a Wonderful editor, and by far my favorite for programming use
in linux. (Hey, I never thought i'd say it, but color-coding things CAN
come in handy! ;)

Joking aside, it's a wonderful tool for programming, and plain editing. i
have my VISUAL environment variable set to it, and do much of my editing
with it, Though my quick-n-dirty(TM) edits are done in Vim.

>
>And it runs on Unix, Windows, OS/2,...
>
>Koos Pol
>----------------------------------------------------------------------
>S.C. Pol - Systems Administrator - Compuware Europe B.V. - Amsterdam
>T:+31 20 3116122   F:+31 20 3116200   E:[EMAIL PROTECTED]
>
>Check my email address when you hit "Reply".


-- 
Rando Christensen
[EMAIL PROTECTED]
<perception is reality>

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

From: "Peet Grobler" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Why no defrag?
Date: Thu, 18 May 2000 09:43:52 +0200

Hello.

I've seen the question posted to this group many times now, is there a
defrag for linux? The conclusion is there is not. I'm sitting at my desk,
thinking, why not?

Is there any specific reason for defrag not being written? I mean, can
anybody tell me something that would stop me from writing one?

Cheers,
Peet



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

From: =?iso-8859-1?Q?C=E9sar?= Espinosa <[EMAIL PROTECTED]>
Subject: xplot problems
Date: Thu, 18 May 2000 09:30:23 +0200

   Hi, I am using xplot-0.90 and I cannot print color graphics. When I
execute the program, I get this message: XAllocColorCells failed.
    Does anybody know how to solve it?

    Cheers,

                C�sar Espinosa


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

From: Josef Moellers <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Why no defrag?
Date: Thu, 18 May 2000 10:19:11 +0200

Peet Grobler wrote:
> =

> Hello.
> =

> I've seen the question posted to this group many times now, is there a
> defrag for linux? The conclusion is there is not. I'm sitting at my des=
k,
> thinking, why not?
> =

> Is there any specific reason for defrag not being written? I mean, can
> anybody tell me something that would stop me from writing one?

Simply because there is no need for a defrag. The filesystems used under
Linux (and most/all recent versions of Un*x) have automatic
defragmentation built-in in that they prevent defragmentation, as long
as the filesystem is not 100% full.
E.g. ext2 (and ufs) partition a filesystem into cylinder groups and the
filesystem code tries to allocate blocks of a file in the same cylinder
group.

-- =

Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1

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

From: Josef Moellers <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Why no defrag?
Date: Thu, 18 May 2000 10:59:53 +0200

Josef Moellers wrote:

> Linux (and most/all recent versions of Un*x) have automatic
> defragmentation built-in in that they prevent defragmentation, as long
                                                ^^^^^^^^^^^^^^^
Ouch, this should have been "fragmentation", obviously.

-- =

Josef M=F6llers
Fujitsu Siemens Computers
SHV Server DS 1

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

Crossposted-To: 
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Need ideas for university funded project for linux
From: David Steuber <[EMAIL PROTECTED]>
Date: Thu, 18 May 2000 08:59:58 GMT

[EMAIL PROTECTED] writes:

' Mongoose <[EMAIL PROTECTED]> writes:
' 
' > >KDE isn't free.
' 
' >   uh what? I don't remember paying for KDE...
' 
' If I remember the analogy correctly, it's free as in "free beer," but
' not free as in "free speech."  Qt is the bottleneck, I believe.

Unless you plan on porting KDE to Windows, KDE is totaly free.  It is
only the Windows version of Qt that requires you to buy a license.
And even then, you only need it if your program isn't GPL.

There is also nothing preventing someone from porting Qt to Windows as 
a seperate version from Qt Professional Edition.

-- 
David Steuber   |   Hi!  My name is David Steuber, and I am
NRA Member      |   a hoploholic.

All bits are significant.  Some bits are more significant than others.
        -- Charles Babbage Orwell

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


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