Linux-Development-Sys Digest #896, Volume #7 Tue, 23 May 00 16:13:14 EDT
Contents:
Re: Need ideas for university funded project for linux (Mike Albaugh)
Re: Napster to Linux ! (JEDIDIAH)
Re: in <linux/fs.h> ,the read and write ?? (John Brockmeyer)
Re: What !@#$ moron colorised g++? (Thomas Luzat)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
Re: Need ideas for university funded project for linux (JEDIDIAH)
Re: What is a "dentry"? (Lew Pitcher)
naming a thread created from kernel_thread() in a module (Travis Hein)
Re: simple wait semaphore in kernel module (Travis Hein)
Re: Windows by Day, Linux by Night (Dima Maziuk)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
GRE tunnels with iptables (bill davidsen)
Re: system performance info (Lac Hao Viet)
Re: possible posix non-compliance in linux threads ("Rajeev B. C.")
Re: Need ideas for university funded project for linux ("Anthony W. Youngman")
Linux loop file system dangerous on W98 (Victor Schneider, Ph. D.)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Mike Albaugh)
Crossposted-To:
comp.os.linux,comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Need ideas for university funded project for linux
Date: 23 May 2000 17:04:22 GMT
Someone ([EMAIL PROTECTED]) wrote:
: Mr Steuber is an excellent example of my point. In my message can't you
: tell I LIKE linux, I have Linux, I have used Linux for several years. It
: is a great hobby to configure but once it is working what are you going to
: use it for?
Well, I sue it for cross-development of software for embedded
systems. The embedded systems themselves are 'fun". Linux is a tool.
I don't expect my lawnmower to be "fun", nor my microwave oven... :-)
: Why don't any of the free ISPs support Linux?
Well, _that's_ a no-brainer. If they did, it would be about
a week, tops, before someone figured out how to disable their banner-
ads, which are their revenue stream. TANSTAAFL, after all... :-)
: Windows is no fun to install and configure,
You got that right.
: it just basically works
But not that. Sorry. Not in _my_ UseNet Parallel Universe.
Maybe in yours. Maybe you also have non-dairy-coffee-whiteneer that
really tastes like cream, too. :-) (BTW: my family "computer" is
an iMac. It doesn't always work, either, but it works a whole lot
better than my WinNT machine at work. Different tools for different
applications)
Mike
| [EMAIL PROTECTED], speaking only for myself
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
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: Napster to Linux !
Date: Tue, 23 May 2000 17:10:59 GMT
On Mon, 22 May 2000 04:39:09 +0800, �NdRew yEonG <[EMAIL PROTECTED]> wrote:
>Try to convince the author of Napster to give you the source codes...so
>that you can port it to Linux and...make some improvement to it like
>supporting more file formats....
...where have you been? Napster has already been reverse engineered.
>
>then more students will use Linux .
>
>Mongoose wrote:
>
>> Hello,
>> I am attempting to start a college project and have two of my
>> ideas already being worked on. So I wanted to know what other people
>> had for suggestions for linux projects? I was thinking of something
>> along the lines of a project that would help promote the use of linux.
>> What is something that most people could use? Something that could
>> make a good 1 year R&D project?
>
>--
>
> .~. Live free or die !
> /V\
> // \\ ---------------------------------------------------
> /( )\ �NdReW YEoNG� � ===> cHocoL�teM�[EMAIL PROTECTED]
> ^`~'^ ---------------------------------------------------
>
>
--
In what language does 'open' mean 'execute the evil contents of' |||
a document? --Les Mikesell / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
From: John Brockmeyer <[EMAIL PROTECTED]>
Subject: Re: in <linux/fs.h> ,the read and write ??
Date: Tue, 23 May 2000 10:28:52 -0600
Josef Moellers wrote:
> Eric wrote:
> >
> > ���� 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
The last argument is used with pread and pwrite in order to do a seek-and-read
or seek-and-write
in one system call. It is the location of where to to do the read or write,
replacing the f_pos of the struct file..
------------------------------
From: Thomas Luzat <[EMAIL PROTECTED]>
Subject: Re: What !@#$ moron colorised g++?
Date: Tue, 23 May 2000 19:24:47 +0200
Reply-To: [EMAIL PROTECTED]
On 23 May 2000 15:35:35 GMT, [EMAIL PROTECTED] (Mike
Dowling) wrote:
>I started before there were distributions. A colleague gave me his own
>backup on 15 floppies. It was version 0.7?, I cannot remember exactly.
I believe I didn't even own a computer back then... I did my first
install in 1994 or 1995 when I was 12 IIRC. Slackware and LST... can't
remember the kernel version, though. But Linux did not live long that
time on my PC: The 320 MB hd of my 386sx-25/4 mb could not handle both
Linux and Windows 95...
>I just took it from there, compiling new software as it was made
>available and advertised in comp.os.linux.announce or as it came in on
>the local mirrors and announced on local usenet groups.
Gotta catch up... :-)
Thomas
------------------------------
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: 23 May 2000 12:28:02 -0500
In article <[EMAIL PROTECTED]>,
JEDIDIAH <[EMAIL PROTECTED]> wrote:
>>>Do people really have trouble with ./configure, make, make install?
>>>It has _never_ been a problem for me. Maybe I am just lucky. Even
>>>though I changed my compiler, libc, and libtools.
>>
>>Given a thousand packages, how long does it take you to be sure
>>you have the latest version of each installed using this
>>technique? How long does it take to figure out what is missing
>>when the linker can't resolve a symbol?
>
> Typically the configure script should tell you. That's what
> it's there for. All a binary package buys you is the ability
> to easily force install a whole bunch of stuff at once. In
> the case of RPM, one is specifically abusing the tool in order
> to get it to work in a more convenient fashion.
I like the ability of rpm to NOT install older or matching versions
on top of what is running and to later tell me which files have been
modified or are missing compared to the installed packages.
Also, configure scripts don't know how to satisfy dependencies when
you install several related things at once that must be done in a
certain order. Rpm gets this right if you install them all in one
command.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (JEDIDIAH)
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: Tue, 23 May 2000 17:36:19 GMT
On 23 May 2000 12:28:02 -0500, Leslie Mikesell <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>JEDIDIAH <[EMAIL PROTECTED]> wrote:
>
>>>>Do people really have trouble with ./configure, make, make install?
>>>>It has _never_ been a problem for me. Maybe I am just lucky. Even
>>>>though I changed my compiler, libc, and libtools.
>>>
>>>Given a thousand packages, how long does it take you to be sure
>>>you have the latest version of each installed using this
>>>technique? How long does it take to figure out what is missing
>>>when the linker can't resolve a symbol?
>>
>> Typically the configure script should tell you. That's what
>> it's there for. All a binary package buys you is the ability
>> to easily force install a whole bunch of stuff at once. In
>> the case of RPM, one is specifically abusing the tool in order
>> to get it to work in a more convenient fashion.
>
>I like the ability of rpm to NOT install older or matching versions
>on top of what is running and to later tell me which files have been
>modified or are missing compared to the installed packages.
>
>Also, configure scripts don't know how to satisfy dependencies when
>you install several related things at once that must be done in a
>certain order. Rpm gets this right if you install them all in one
>command.
No it doesn't. Infact that's one of the most annoying things
about RPM. Given a collection of packages, it's unable to sort
things out for itself.
--
In what language does 'open' mean 'execute the evil contents of' |||
a document? --Les Mikesell / | \
Need sane PPP docs? Try penguin.lvcm.com.
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: What is a "dentry"?
Reply-To: [EMAIL PROTECTED]
Date: Tue, 23 May 2000 17:38:30 GMT
On Tue, 23 May 2000 16:34:06 GMT, Timur Tabi <[EMAIL PROTECTED]>
wrote:
>I would think that this is a FAQ, but based on my searches of
>newsgroups, web sites, mailing lists, source code, and books, it appears
>that no one has actually asked this question.
>
>What is a dentry?
It's a contraction of the phrase "directory entry".
> I know it has to do with the file system, but I can't
>find a definition of the word anywhere. I know it's not anything new
>(2.2 has a structure called dentry), but the way people talk about it,
>you'd think it was as well-known as the word "function" or "object".
>
>--
>Timur "too sexy for my code" Tabi
>Remove "nospam_" from my email address when replying
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Lew Pitcher
System Consultant
Toronto Dominion Financial Group
([EMAIL PROTECTED])
(Opinions expressed are my own, not my employer's.)
------------------------------
From: Travis Hein <[EMAIL PROTECTED]>
Subject: naming a thread created from kernel_thread() in a module
Date: Tue, 23 May 2000 13:30:33 -0400
i am using the kernel_thread() function to create a sepearate thread during
module initialization. Creating it and killing it works ok,
For asteic reasons, i am looking for a way to change the running process name
when i load the module using insmod, the thread created always has the "insmod"
as its process name.
i.e.
# ps
PID TTY TIME CMD
918 pts/2 00:00:00 bash
1108 pts/2 00:00:00 kedit
1109 pts/2 00:00:00 insmod <-- this is what i want to change, from
insmod to my name
1566 pts/2 00:00:00 ps
the code i am using is something like below
int threadPid; /* PID assigned from call to kernel_thread() call in
init_module() */
int ThreadedFunction(void* arg)
{
/* place command here to change my process name ? */
for ( ; ; )
{
/* this part works OK */
}
}
int init_module(void)
{
threadPid = kernel_thread(ThreadedFunction, NULL, 0);
return 0;
}
int cleanup_module(void)
{
kill_proc(threadPid, SIGKILL, 1);
return 0;
}
Trav
------------------------------
From: Travis Hein <[EMAIL PROTECTED]>
Subject: Re: simple wait semaphore in kernel module
Date: Tue, 23 May 2000 13:31:51 -0400
never mind, got this licked
Travis Hein wrote:
> looking for a way to implment a kernel thread to wait on another kernel thread
> (in the same module) to complete something.
>
>
>
------------------------------
From: Dima Maziuk <[EMAIL PROTECTED]>
Subject: Re: Windows by Day, Linux by Night
Date: Tue, 23 May 2000 12:31:22 -0500
Simone Paddock wrote:
>
...
>
> As Tim O'Reilly says in "Windows by Day, Linux by Night ":
> "...because we don't admit to our use of Windows, because
> it's a guilty secret, we don't spend the kind of time learning
> how to get the most out of the system.
...
Well, that's just unprofessional. Did you just say Linux
promotes un-professionalism? Are you talking to me? ;)
>
> The first 1000 people who read Tim's article get a free book.
Unfortunately it's a book on Win'98. When I use Windows,
I use NT.
Dima
--
(1) Office employees will daily sweep the floors, dust the
furniture, shelves, and showcases.
(2) Each day fill lamps, clean chimneys, and trim wicks.
Wash the windows once a week.
(3) Each clerk will bring a bucket of water and a scuttle of
coal for the day's business.
(4) Make your pens carefully. You may whittle nibs to your
individual taste.
(5) This office will open at 7 a.m. and close at 8 p.m. except
on the Sabbath, on which day we will remain closed. Each
employee is expected to spend the Sabbath by attending
church and contributing liberally to the cause of the Lord.
-- "Office Worker's Guide", New England Carriage Works, 1872
------------------------------
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: 23 May 2000 13:05:58 -0500
In article <[EMAIL PROTECTED]>,
JEDIDIAH <[EMAIL PROTECTED]> wrote:
>>Also, configure scripts don't know how to satisfy dependencies when
>>you install several related things at once that must be done in a
>>certain order. Rpm gets this right if you install them all in one
>>command.
>
> No it doesn't. Infact that's one of the most annoying things
> about RPM. Given a collection of packages, it's unable to sort
> things out for itself.
How does it fail? If I need all of file1.rpm, file2.rpm and file3.rpm
and try to install any one or two at once it will refuse and tell
me the one(s) still needed. If I install all 3 at once on the
same command line in any order, the install will succeed.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.so.linux.networking
Subject: GRE tunnels with iptables
Date: 23 May 2000 18:09:10 GMT
I want to try setting up a tunnel, using the new kernel, GRE because
at some point I will be going to some Cisco routers, and because I'm
not having any luck getting PPPoE working with the new kernels, either.
If someone has a pointer to getting either GRE or PPPoE working with
the new kernel, I'd love to have it. Please don't tell me to drop back
to the old kernel and read the HOWTO on the old stuff, the 2.4 kernel
will be the standard kernel for the next few years, and I don't want to
tie a new project to old technology. Also, iptables is better for
firewalls.
--
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: Lac Hao Viet <[EMAIL PROTECTED]>
Subject: Re: system performance info
Date: Tue, 23 May 2000 18:13:03 GMT
In article <[EMAIL PROTECTED]>,
agneskfc <[EMAIL PROTECTED]> wrote:
> How can I get the Linux system performance info, such as CPU usage,
> collision, swaping, and paging. Is it possible to get these info from
> Windows NT?
> Thanks a lot.
>
> Agnes
>
>
you can read all of these information from /proc filesystem; if you
prefer using GUI, use GNOME (gtop) and KDE(ktop).
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Rajeev B. C." <[EMAIL PROTECTED]>
Subject: Re: possible posix non-compliance in linux threads
Date: Tue, 23 May 2000 13:19:13 -0500
I agree with you. Yesterday I had posted a similiar type of problem with sigqueue.
works with Solaris doesn't work with linux.
I have download real-time kernel from www.rtlinux.com/download. ver 3 beta.
just to see if things improve.
-Rajeev
Keith 'Keithel' Kyzivat wrote:
>
>
> To me, this does not sound like linux has appropriate posix conforming
> behavior.
>
> Any answers, comments, discussion would be greatly appreciated.
>
> Attached is my stripped-down example of the problem.
> The command lines to compile are below:
> Solaris 2.6 & 7:
> CC -g -D_REENTRANT -mt -PIC -D_POSIX_PTHREAD_SEMANTICS
> lin_thr_processes.cpp -o ltp
>
> gcc Gnu/Linux:
> g++ -g -D_REENTRANT -lpthread lin_thr_processes.cpp -o ltp
>
> Keith Kyzivat
>
> BTW - this whole linux thread-is-a-process idea doesn't seem to be
> working from my viewpoint.
>
>
------------------------------
From: "Anthony W. Youngman" <[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: Tue, 23 May 2000 19:10:12 +0100
Reply-To: "Anthony W. Youngman" <[EMAIL PROTECTED]>
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes
>"Anthony W. Youngman" <[EMAIL PROTECTED]> writes:
>
>> I am led to believe (in other words I may well be wrong...) that rpms
>> basically have a required/not-required status. If the system MAY require
>> a package, then either it is flagged as required and the system tries to
>> make you install it, or it's not flagged and gets ignored.
>
>Well, technically, some is either required or it isn't. If you're
>right (I have no idea), the problem seems to be more on the package
>maintainer's end, rather than the rpm developer's end.
>
But you're ignoring the example packages I (deliberately) chose ...
If I have an ISDN card, then I *NEED* ISDN4LINUX, if I don't then it's a
waste of space. Same with a sound card and OSS.
If that hardware is present, then those packages are REQUIRED. If the
hardware isn't there then those packages are a waste of space (and on
the system I was complaining about, it was more than 1% of the available
disk space for ISDN4LINUX alone - that's space I can't spare).
As somebody else pointed out, rpms can't have conditional dependency.
Either it's flagged as "required" and I scream blue murder because the
basic install on my mum's pc crashes with a "disk full", or it's flagged
as "not required" and I scream blue murder because it doesn't install on
the office server and I need it.
Don't blame the package maintainer if rpm is too brain-dead to cope with
variations in STANDARD hardware.
--
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
Witches are curious by definition and inquisitive by nature. She moved in. "Let
me through. I'm a nosey person.", she said, employing both elbows.
Maskerade : (c) 1995 Terry Pratchett
------------------------------
From: [EMAIL PROTECTED] (Victor Schneider, Ph. D.)
Subject: Linux loop file system dangerous on W98
Reply-To: [EMAIL PROTECTED]
Date: Tue, 23 May 2000 20:03:38 GMT
Have you watched the Windows disk defragmenter work after you install
a 64 MB loop Linux system? You can actually see the defragmenter
moving bits of the 64 MB file across and past those little red squares
that indicate the ---LINUX--- files that Microsoft appropriated to make
their "modern, high-performance" file-system work for Dos and Windows
file names.
Let's say that you are right, that the loop file system works with the
defragmenter. But, the second time I booted up after defragmenting,
tar of the old libc in the loop file system failed during execution,
where tar worked the first time. So, I'll say it again, you need some
way to trick the Windows system defragmenter into not moving the Linux
loop system file around.
You also want to network with the dd program implementers, who appear
to have put dd files way down near the lowest disk addresses, which
causes modern, high-performance hard drives to make strange noises in
operation under Windows after installing a loop system of, say, 64 MB.
And, whatever you do, don't tell anyone that you can actually put a
full Linux system, including internet browser and gcc compiler, into
64 MB, with space to spare for a modest X11 setup.
------------------------------
** 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
******************************