Linux-Development-Sys Digest #879, Volume #7 Fri, 19 May 00 11:13:16 EDT
Contents:
Re: Need ideas for university funded project for linux (Bob Hauck)
exporting large buffer from kernel to userspace (Jan-Willem Stroeken)
Re: Need ideas for university funded project for linux (Bob Hauck)
[Fwd: Capturing IP packets. Need ideas...] (Julio Baixauli)
How to get memory page from swap? (Boczi)
Re: MS caught breaking web sites (Alun Jones)
Re: ping souce code (Diego Betancor)
Re: ping souce code (Mike Dowling)
Checking for I'm swapped ("Dmitry A. Antipov")
POXIS Semaphores ("Antony Holmes")
Re: does linux support RAMDISK??? (Mario Klebsch)
Re: porting NT device drivers to linux (Mario Klebsch)
Re: serial port RTS control ? (Mario Klebsch)
Re: does linux support RAMDISK??? (Mario Klebsch)
Re: Need ideas for university funded project for linux (Leslie Mikesell)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Bob Hauck)
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: hauck[at]codem{dot}com
Date: Fri, 19 May 2000 12:29:50 GMT
On 19 May 2000 07:00:33 GMT, Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>In comp.os.linux.development Leslie Mikesell <[EMAIL PROTECTED]> wrote:
>: On an stock rpm-installed Redhat - and Mandrake:
>: /usr/bin/netscape
>: /usr/bin/netscape-communicator
>: /usr/bin/netscape-navigator
>
>:-). Well, that's wrong then. Netscape is not part of a distribution
Caldera puts it in /opt/netscape with a symlink in /usr/bin.
--
-| Bob Hauck
-| Codem Systems, Inc.
-| http://www.codem.com/
------------------------------
From: Jan-Willem Stroeken <[EMAIL PROTECTED]>
Crossposted-To:
fa.linux.kernel,linux.dev.kernel,linux.redhat.devel,linux.dev-c.programming
Subject: exporting large buffer from kernel to userspace
Date: Fri, 19 May 2000 14:56:34 +0200
I'm writing a driver for a data-aquisition PC card. It needs a buffer
of about 17Megs that is continuous (DMA-able). I create a buffer in
kernel-space, works fine. How can I (under 2.2.14) export/share the
data-buffer with a user application. (mmap() / copy_to_user() ????) Are
there any drivers I can check for reference ??
Jan-Willem
--
An age is called Dark not because the light fails to shine, but because
people refuse to see it.
-- James Michener, "Space"
__________________________________________________________
Oc�-Technologies B.V. name : Jan-Willem Stroeken
P.O. Box 101 department : DVS, R&D
5900 MA Venlo e-mail : [EMAIL PROTECTED]
The Netherlands www : http://www.oce.com
Directdial: +31 (0)77 359 58 89
Fax: +31 (0)77 359 53 37
__________________________________________________________
this signature is automagically generated using 'fortune'
------------------------------
From: [EMAIL PROTECTED] (Bob Hauck)
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: hauck[at]codem{dot}com
Date: Fri, 19 May 2000 12:56:23 GMT
On 19 May 2000 00:07:40 GMT, Steve <[EMAIL PROTECTED]> wrote:
>On 18 May 2000 06:20:59 GMT, Koos Pol wrote:
>>Oh yes you can! Try FTE. It does exactly all what you requested :-)
>>http://fte.sourceforge.net/
>It doesn't run in the xterm that you're currently in, and if I remember
>it kept insisting on opening a window that was too big for the screen,
0.49.13 comes with a slang version called "sfte". It isn't compiled by
default, you have to edit the TARGETS line in ~/src/fte-unix.mak. Seems
to work ok on the console, with the PuTTY telnet client for Windows, and
in a kvt (with the exception of c-pgup and c-pgdn not working) but the
keybindings get funky in an xterm (hint: alt -> esc).
You can change the font and get a smaller window for the xlib version by
editing main.fte and recompiling the configuration.
>and changing the default colours was a nightmare, I gave up with it
>in the end.
There are three pre-built setups and it is pretty easy to switch between
them. A full custom thing would be harder though. Not having an online
configuration maker is a bit of a pain but I don't normally fiddle with
that stuff too much once I get something reasonable set up.
I'm still playing around with it (downloaded when I saw the previous post)
so don't yet have a good feel for how well it will hold up over the long
term. But it is in fact pretty easy to get started with for DOS/Win
converts due to the CUA-style default key bindings and menus, so it'll
probably end up staying on my system for that reason alone.
--
-| Bob Hauck
-| Codem Systems, Inc.
-| http://www.codem.com/
------------------------------
From: Julio Baixauli <[EMAIL PROTECTED]>
Subject: [Fwd: Capturing IP packets. Need ideas...]
Date: Fri, 19 May 2000 15:24:24 +0200
This is a multi-part message in MIME format.
==============E5E2F5BDAC37C0112686B7D3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
--
********************************************
Julio Baixauli Garreta
[EMAIL PROTECTED]
********************************************
==============E5E2F5BDAC37C0112686B7D3
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Path: news.upc.es!not-for-mail
From: Julio Baixauli <[EMAIL PROTECTED]>
Newsgroups: comp.os.linux.development.apps
Subject: Capturing IP packets. Need ideas...
Date: Fri, 19 May 2000 13:46:58 +0200
Organization: Universitat Politecnica de Catalunya
Message-ID: <[EMAIL PROTECTED]>
NNTP-Posting-Host: mobil11.upc.es
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: defalla.upc.es 958736794 16339 147.83.39.211 (19 May 2000 11:46:34 GMT)
X-Complaints-To: [EMAIL PROTECTED]
NNTP-Posting-Date: 19 May 2000 11:46:34 GMT
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: en
Xref: news.upc.es comp.os.linux.development.apps:90678
Hello.
First I'm sorry I don't write English very well.
Ok, I'm trying to capture IP packets from the network. The top level
issue is to translate IPv4 to IPv6 (and viceversa) as is described in
RFC1928 document. First, I have begun to work on libpcap packet capture
library, but I don't understand very much. Is there any manual, FAQ,
tutorial... something that explains me how to use it? Am I in the rigth
way using the libpcap? Is there any other way?
All ideas are wellcome.
That's all. Thanks
--
********************************************
Julio Baixauli Garreta
[EMAIL PROTECTED]
********************************************
==============E5E2F5BDAC37C0112686B7D3==
------------------------------
From: [EMAIL PROTECTED] (Boczi)
Subject: How to get memory page from swap?
Date: 19 May 2000 13:01:27 GMT
Reply-To: [EMAIL PROTECTED]
I have problem with memory in kernel. I want to acces other proces memory. I
browse through the process' memory map and finaly get the pte.
But it may happend, that the page was swaped.
Is there a function to bring the page back to memory?
Best regards
Boczi
--
Andrzej Boczek (boczi<at>pol.pl)
God used fork() to create Eve.
------------------------------
From: [EMAIL PROTECTED] (Alun Jones)
Crossposted-To:
comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,comp.os.linux.networking,comp.os.linux.security,comp.os.ms-windows.networking.tcp-ip,alt.conspiracy.area51
Subject: Re: MS caught breaking web sites
Date: Fri, 19 May 2000 14:07:58 GMT
In article <Q12V4.51787$[EMAIL PROTECTED]>, "SUDDN"
<[EMAIL PROTECTED]> wrote:
> I am no fan of Microcrap but this turned out not to be a backdoor at all.
>
> Too bad.... I would have loved to see Microcrap get grabbed by the knarlies!
Me too - but it's important to make sure you're grabbing real knarlies, not
just feeling around in their pockets for dryer lint.
Alun.
~~~~
--
Texas Imperial Software | Try WFTPD, the Windows FTP Server. Find us
1602 Harvest Moon Place | at web site http://www.wftpd.com or email
Cedar Park TX 78613 | us at [EMAIL PROTECTED] VISA / MC accepted.
Fax +1 (512) 378 3246 | NT-based ISPs, be sure to read details of
Phone +1 (512) 378 3246 | WFTPD Pro, NT service version - $100.
------------------------------
From: [EMAIL PROTECTED] (Diego Betancor)
Subject: Re: ping souce code
Date: Fri, 19 May 2000 14:07:32 GMT
First of all, thank yo, and to Rick too.
Verbose does not work, I wish it did. Verbose tells you if the
packet is bad.
> -v Verbose output. ICMP packets other than ECHO_RESPONSE that
> are received are listed.
But does not tell you that the packet did not arrived. Just try to
ping with verbose and then take out the ethernet cord and see if ping
tells you anything.
Diego
A Guy Called Tyketto <[EMAIL PROTECTED]> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Diego Betancor <[EMAIL PROTECTED]> wrote:
>> Hi,
>
>> ping is great but when it fails it does not tell you like windows
>> that says something about timeout. The only way that I know is
>> counting the number of packets and looking for one that is missing.
>> does anyone know where I can get the source for ping to change it?,
>> or does anyone already done it?
>
> Why change the source?
>
> from man 8 ping:
>
>
> This should print out, verbosely, what happens, when you go to
>ping a site, and there's a problem. e.g.:
>
>bellicha:~> ping -c 10 -v 20.7.245.100
>PING 20.7.245.100 (20.7.245.100): 56 data bytes
>ping: packet too short (56 bytes) from 4.1.13.250
>ping: packet too short (56 bytes) from 4.1.13.250
>ping: packet too short (56 bytes) from 4.1.13.250
>
> Corresponding traceroute gives me:
>
>bellicha:~> traceroute 20.7.245.100
>traceroute to 20.7.245.100 (20.7.245.100), 30 hops max, 40 byte packets
> 1 pm3-6.wizard.com (209.170.216.36) 128.769 ms 119.59 ms 119.802 ms
> 2 lv-7206-1.wizard.com (209.170.216.1) 119.752 ms 110.442 ms
>119.233 ms
> 3 H0-0.irv-lvg100.gw.eni.net (207.168.88.9) 119.824 ms 119.601 ms
>120.879 ms
>.
>.
>.
>14 p4-0-0.vienna1-cr2.bbnplanet.net (4.0.5.150) 199.667 ms 189.538 ms
>189.9 ms
>15 f0-0.vienna1-cr5.bbnplanet.net (4.1.0.6) 189.654 ms 279.711 ms
>189.851 ms
>16 s0.csc6.bbnplanet.net (4.1.13.250) 199.493 ms * 189.903 ms
>17 * * *
>18 * * *
>19 * * *
>
> The source to ping already has the options you need.. just
>impliment them. :)
>
> BL.
>- --
>Brad Littlejohn | Email: [EMAIL PROTECTED]
>Unix Systems Administrator, | [EMAIL PROTECTED]
>Web + NewsMaster, BOFH.. Smeghead! :) | http://www.wizard.com/~tyketto
> PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569 F620 C819 199A E319 F0BF
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.1e (FreeBSD)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE5JQC7yBkZmuMZ8L8RAq3gAKDJKfV+5obmIvOqd17mhR6aDihDKACeJIAE
>BVdPJ2eXzQpYr2tuIA7wSgU=
>=cqBl
>-----END PGP SIGNATURE-----
>
>
Diego Betancor @ Duo Business Communications
for email: dbetancor is my userid and my company's domain is duocom.net
** Do not send me unsolicited commercial e-mail spam of any kind **
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Subject: Re: ping souce code
Date: 19 May 2000 14:21:10 GMT
On Thu, 18 May 2000 18:48:23 GMT, Diego Betancor <[EMAIL PROTECTED]> wrote:
>Hi,
>
> ping is great but when it fails it does not tell you like windows
>that says something about timeout. The only way that I know is
>counting the number of packets and looking for one that is missing.
> does anyone know where I can get the source for ping to change it?,
>or does anyone already done it?
Windows yielding an error message that is both comprehensible and
correct? It has never happened to me!
Perhaps this could be a case in point. Ping uses the icmp protocol,
and, to the best of my knowledge (and I will bow to the more
knowledgeable) icmp protocols don't time out. Timeouts are the domain
of tcp protocols where sessions are established.
Ping is supposed to send off a an echo request about once per second.
The packets are numbered, and when a given request is answered, it is
listed with facts like the time it took, etc. But it can and should
wait 'til kingdom come if the packet is not echoed or it is not
interputed.
Cheers,
Mike
--
My email address [EMAIL PROTECTED] above is a valid email address.
It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
Spammed aliases will be deleted. Currently, mike[25,26]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
From: "Dmitry A. Antipov" <[EMAIL PROTECTED]>
Subject: Checking for I'm swapped
Date: Fri, 19 May 2000 18:21:44 +0400
Hello all,
I have a PID of running process. How can I check for it's swapped or
not ?
--
Dmitry Antipov <[EMAIL PROTECTED]>
RosNet JSC +7 (095) 7558560 (ICQ UIN:70767592)
------------------------------
From: "Antony Holmes" <[EMAIL PROTECTED]>
Subject: POXIS Semaphores
Date: Fri, 19 May 2000 15:36:35 +0100
I'm trying to create named semaphores using the POSIX function sem_open().
Unfortunately whilst being defined in semaphore.h and included in
libpthread.a each time I use it I get an error returned "Function not
implemented"!
Does anyone know where I can get a copy of either the function or a pthread
library with the correct functionality included?
TIA
Antony
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: does linux support RAMDISK???
Date: Fri, 19 May 2000 10:48:15 +0200
Josef Moellers <[EMAIL PROTECTED]> writes:
>So it's not actually a RAMDISK, but it's a filesystem implemented in
>virtual memory, i.e. a combination of RAM and disk (swapspace).
Yes, it can be seen this way, ...
>So the
>RAM can be viewed as a cache for the filesystem residing on the swap
>device, replacing the (fast) access time of RAM by the mixed (on average
>slower) access time of RAM + disk. The buffer cache of Linux (and other
>Unices) also does this.
... it is locatet that much in RAM as every processes
memory. Everything in UNIX (except the kernel) is in VM, so it seems
to be reasonable fast enough.
>So the only advantage of a virtual memory based tmpfs would be the
>dynamicity of the size.
Would it have any disadvantages?
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: porting NT device drivers to linux
Date: Fri, 19 May 2000 11:16:43 +0200
[EMAIL PROTECTED] (Paul D. Smith) writes:
>%% [EMAIL PROTECTED] (Mario Klebsch) writes:
> mk> But in this case, I probably would not use a ahared libary at
> mk> all. I would use a static library instead. The benefits of shared
> mk> libraries are only gained, if you have lots of programs all linked
> mk> against the same library (this can save a lot of space on disk)
> mk> and a large subset of these programs is executing simultaniously
> mk> (this will save RAM usage).
>There's one other reason to use shared libs: you can swap out the shared
>library with a newer version (if the interface is sufficiently similar)
>without recompiling or re-installing any apps that use it.
Yes, this is right, but this often is the cause of serious trouble,
too. IMHO some Linux distribution try touse too much shared
libraries. I once had to restore a backup tape on a linux system. I
booted the sysstem from CDROM and tried to restore my tape. This
failes because trhee fu**ing shared libraries were missing.
About half a year later, I switched my system from libc5 to
glibc2.1.2. I did it by recompiling everything on my system, I
needed. So I stumbled across recompiling dump&restore and I also had
to deal with these three libraries. It seems, they were only linked to
mke2fs, fsck. dump, restore and some other even more unknown untility
programs. None of these programs is executing during normals system
operation, aln the disk space gained my linking only 4 applications
dynamically cannot justify the trouble, it brings. So i linked them
statically and got rid of all those problems. I never missed those
three shared libs.
I really would doubt, that it makes any sense to replace these libs,
without replacing the utility programs, too.
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: serial port RTS control ?
Date: Fri, 19 May 2000 11:18:48 +0200
"Fred" <[EMAIL PROTECTED]> writes:
>> OTOH, you cannot just use sleep, since very often, those systems do
>> not have anything like carrier or collision detection.
>Except that I am the only master on this line... so perhaps can I do a
>sleep() though
I would doubt this. If you were the only master, then there would be
no need to control RTS at all. Perhaps you are calling the other
participants slave, bat at the moment, they activate their line
driver, they are masters on the bus.
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: does linux support RAMDISK???
Date: Fri, 19 May 2000 11:01:52 +0200
Bernd Strieder <[EMAIL PROTECTED]> writes:
>Mario Klebsch wrote:
>>
>>[..]
>>
>> In fact, one of my favourite RAM disk implementation is tmpfs from
>> Solaris. tmpfs lives in virtual memory and, IMHO, the best thing about
>> tmpfs is, that you do not have to specify any size for it. If you
>Then is there any filesystem that is capable of adjusting its size on
>demand, without reformatting, or even without unmounting, or even on the
>fly?
You did not entirely understood the concept. The tmpfs is not resized
at all (this it not entirely true, it simply does not have the concept
of blocks). On the UNIX system, there is VM. VM is used to satisfy the
memory need of the running applications. Storing a file in tmpfs just
takes that memory to store the file. Some additional VM is needed to
store the filename.
However on a tmpfs, there is no superblock, no freelist, not cylinder
groups or anything like that. I even would doubt, there is an inode
table on a tmpfs volume.
>AFAICS linux followed another strategy with that /tmp issue. Since any
>io data is buffered anyway in RAM before writing it to disk, there is no
>reason to make this explicit, by creating that special tmpfs, that will
>be filled enough that it will have to be swapped out.
There are several good reasons to have it. IMHO the most important one
is having a root filesystem mounted read only. This happens e.g. when
booting from CDROM or on several ocasions when booting a pool of
diskless systems.
>That stuff would
>just be another highly special case in the kernel. So its why the
>hackers obviously didn't like it. Another issue is /tmp being wiped on
>shutdown, do you like that?
On my first UNIX system, there were commands executed upon startup
like:
rm -rf /tmp
nmdir /tmp
chmod 666 /tmp
So, I never cared much about loosing /tmp upon reboot. Loosing the
contents of /tmp upon reboot is not that uncommon or
historical. Solaris did that until the last version, I was in contact
with (2.5).
>Not that shutdown is that often, but it's
>against any intuition that untouched files disappear during a regular
>shutdown or a crash.
They are temporary files, the processes, that had to clean them up,
are gone. So why keep them around?
73, Mario
--
Mario Klebsch [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To:
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: 19 May 2000 09:56:27 -0500
In article <8g31si$6ri$[EMAIL PROTECTED]>,
Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>/opt is for independent packages. But there is a new fsstd coming up.
Oh good - we didn't have quite enough standard layouts already...
Are they finally going to abstract it out to a centralized
local configuration setting that controls where things land
when installed or do we have to look forward to another decade
of revisions whenever some committee feels like meeting?
>: feeling that his choice is more "logical." However, the benefits for
>: having a common directory structure would be large. In particular, people
>
>There is one.
More like 20 - and they still don't correctly address issues of
having local copies AND (perhaps multiple) network-mounted directories
of the same thing, or things where the config files should be
network-shared but not the binaries or vice-versa.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
** 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
******************************