Linux-Development-Sys Digest #48, Volume #8      Wed, 26 Jul 00 18:13:16 EDT

Contents:
  IP Packet generation? (Sean)
  Re: ioctl porting problem (works under Solaris) (Cyrille Artho)
  Re: IP Packet generation? (Rick Ellis)
  JNI peer classes ("Rob Love")
  Re: kernel 2.2.12 - get_tty_driver() doesn't exist?? (Rick Ellis)
  Re: where is "clear" source?? (Rick Ellis)
  IP tunnel (BlueStone)
  Proc fs question (2.2.x kernels) (Cyrille Artho)
  Re: Problems with gdb and threads ([EMAIL PROTECTED])
  Re: JNI peer classes (Robert Lynch)
  Re: Problems with gdb and threads (Kaz Kylheku)
  Re: A good IDE (Mario Klebsch)
  Re: reentrant - explanation (John Reynolds)
  Re: kernel compiling and LILO.conf (gLiTcH)
  Re: Proc fs question (2.2.x kernels) (Rick Ellis)
  Re: Reproducable crashing linux-2.2.16 (Benny Andersen)
  Asynchronous I/O ("Norm Dresner")
  Re: Asynchronous I/O (Rick Ellis)
  Re: Installation of Oracle 8.1.16 for Linux (Ronald Cole)
  Re: Warning! -- SONY SUBSTANDARD SERVICE (Ronald Cole)
  Re: Warning! -- SONY SUBSTANDARD SERVICE (Dave Platt)
  Want to know update web site for updated valid kernel commands (Rob Morris)

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

From: Sean <[EMAIL PROTECTED]>
Subject: IP Packet generation?
Date: Wed, 26 Jul 2000 10:17:26 -0600

Hi, everybody:

I have just started to do Linux programming. The project I am working on
needs to generate standard IP packet to send it through network. I am
wodering whether there are some piece of code(C/C++) or library
available to do that. Please explain to me as detail as possible!

Thanks a lot!

Sean


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

From: Cyrille Artho <[EMAIL PROTECTED]>
Subject: Re: ioctl porting problem (works under Solaris)
Date: Wed, 26 Jul 2000 18:45:10 +0200

Hi all,
I got a message from the Uber guru himself (Alan) saying that streams
won't be implemented in Linux due to design considerations. 
While that kind of stream would have been useful for my application,
there's probably a good reason against using it, too. So I will try to
solve the problem in a different way.
--
Regards,
Cyrille Artho - http://artho.com
A classic is something that everyone wants to have read
and nobody wants to read.
                -- Mark Twain, "The Disappearance of Literature"

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: IP Packet generation?
Date: 26 Jul 2000 16:51:33 GMT

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

>I have just started to do Linux programming. The project I am working on
>needs to generate standard IP packet to send it through network. I am
>wodering whether there are some piece of code(C/C++) or library
>available to do that. Please explain to me as detail as possible!

Good starting point:

   man 2 socket

or get a good book on Linux programming.

--
http://www.fnet.net/~ellis/photo/linux.html

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

From: "Rob Love" <[EMAIL PROTECTED]>
Subject: JNI peer classes
Date: Wed, 26 Jul 2000 09:53:59 -0700

Hello,
    I am writing a communications program. I have C++ code that is platform
independent and I am going to run it through a JNI. I understand how to call
native C++ methods from the Java code, but I want to go farther. I want to
set up Java classes that correspond to native C++ classes, so that I can use
them from Java as if they were Java classes. I have been trying to research
this topic and have some rough examples, but nothing really usefull. Any
suggestions on how to do this or on where to look? Thanks...



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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: kernel 2.2.12 - get_tty_driver() doesn't exist??
Date: 26 Jul 2000 17:07:37 GMT

In article <8lkub1$3qo$[EMAIL PROTECTED]>,
A derelict Engineer <[EMAIL PROTECTED]> wrote:

>In my kernel 2.0.36 module, I used the following code to get the tty driver
>data for a tty driver, so I could link myself to it:
>
>   kdev_t tdev ;
>   struct tty_driver *dptr ;
>
>   tdev = (kdev_t) MKDEV(majorIdx, minorIdx) ;
>   dptr = (struct tty_driver *) get_tty_driver(tdev);
>   if (!dptr) {
>      return -ENODEV ;
>
>However, in kernel 2.2.12, I get "unresolved symbol" when I try to access
>that function.  Is there some equivalent method for accomplishing this task
>in the new kernel??

Looks like it still exists to me.  It's in drivers/char/tty_io.c.
Perhaps you have a kernel symbol versioning problem?

--
http://www.fnet.net/~ellis/photo/linux.html

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: where is "clear" source??
Date: 26 Jul 2000 17:38:06 GMT

In article <8lhrhm$gb9$[EMAIL PROTECTED]>,
A derelict Engineer <[EMAIL PROTECTED]> wrote:

>Can anyone tell me where the source code for the "clear" utility is
>included??  I'd like to find out how to execute a clear_screen() function,
>without having to link curses, which I don't otherwise use...  I've been
>using system("clear") up to now, and that works adequately, but I'd rather
>learn how to do it directly...

The one in util-linux-2.10k is just a shell script:

#! /bin/sh
tput clear

--
http://www.fnet.net/~ellis/photo/linux.html

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

Subject: IP tunnel
From: BlueStone <[EMAIL PROTECTED]>
Date: Wed, 26 Jul 2000 10:41:55 -0700

I have to develop ethernet stack to use IP tunnel under LINUX.
I am new to Linux, and don't know much about IP tunnel.

I wonder if it is true that I can use same socket library and
the system will automatically use IP tunnel if the virtual IP
address is being specified.

Thanks,


===========================================================

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com


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

From: Cyrille Artho <[EMAIL PROTECTED]>
Subject: Proc fs question (2.2.x kernels)
Date: Wed, 26 Jul 2000 19:53:54 +0200

>From the source code for "top", I found which field is which in
/proc/PID/stat.
However, the source code was less helpful when it came to finding out
about the *types* of the values returned.
All the values from the proc file are just numbers - however, are the
process sizes always bytes? Sometimes I get strange numbers. Also, what
kind of value is used in /proc/PID/stat for the process time? First, I
thought it was the number of jiffies a process got so far, but that
seems to be wrong, too.
Anybody knows some good documentation about the 2.2.x proc file system?
--
Regards,
Cyrille Artho - http://artho.com
A classic is something that everyone wants to have read
and nobody wants to read.
                -- Mark Twain, "The Disappearance of Literature"

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

From: [EMAIL PROTECTED]
Subject: Re: Problems with gdb and threads
Date: Wed, 26 Jul 2000 17:45:48 GMT

In article <[EMAIL PROTECTED]>,
  Bryan Hackney <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> >
> > Hi all
> >
> > Just wondering...has anyone out there had lots of problems trying to
use
> > gdb in an application which is multi-threaded and running on a
> > multi-processor system?
> >
>
> Or uni-processor system. Make sure to use gdb 5.x. 4.17 has problems
> with threads.
>
> --
Bryan

Thanks, but no luck. I just downloaded gdb 5.0, built it and it still
exhibits the
behavior of causeing the pthread_cond_timedwait to return with EINTR.
5.0 did
seem to fix the problem of trying to quit out of gdb and having that
fail with
an unable to access memory error.

Any other ideas?

Ed Friedman

>                                  Bryan Hackney / BHC /
[EMAIL PROTECTED]
>                                         http://www.FreeClassAds.com/
>                                         http://bhconsult.com/
>
http://bhconsult.com/bh/pgp.key
>


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

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

From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: JNI peer classes
Date: Wed, 26 Jul 2000 11:17:05 -0700
Reply-To: [EMAIL PROTECTED]

Rob Love wrote:
> 
> Hello,
>     I am writing a communications program. I have C++ code that is platform
> independent and I am going to run it through a JNI. I understand how to call
> native C++ methods from the Java code, but I want to go farther. I want to
> set up Java classes that correspond to native C++ classes, so that I can use
> them from Java as if they were Java classes. I have been trying to research
> this topic and have some rough examples, but nothing really usefull. Any
> suggestions on how to do this or on where to look? Thanks...

Have you looked at the ACE project C++ -> Java "experiences" page:

http://www.cs.wustl.edu/~schmidt/C++2java.html

Might at least get you started.

HTH. Bob L.
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Problems with gdb and threads
Reply-To: [EMAIL PROTECTED]
Date: Wed, 26 Jul 2000 18:58:37 GMT

On Wed, 26 Jul 2000 17:45:48 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>Thanks, but no luck. I just downloaded gdb 5.0, built it and it still
>exhibits the
>behavior of causeing the pthread_cond_timedwait to return with EINTR.

This is caused by a compliance bug in the library that has been fixed.
The Single UNIX Specification allows for two behaviors: 

    ``If a signal is delivered to a thread waiting for a condition
    variable, upon return from the signal handler the thread resumes
    waiting for the condition variable as if it was not interrupted,
    or it returns zero due to spurious wakeup.''

The pthread_cond_timedwait in glibc-2.1.3 takes the first approach: the thread
resumes waiting. 

If you are writing multithreaded software for Linux, you should upgrade to
glibc-2.1.3, for this and other reasons (and recommend that all users running
the software do the same, of course).

-- 
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.hardware
Subject: Re: A good IDE
Date: Wed, 26 Jul 2000 19:44:11 +0200

[EMAIL PROTECTED] (cLIeNUX user) writes:

>>Well, emacs can do that too.  Even better, you can do M-x compile,
>>and C-x ` (that's a backquote) takes you to the next error in the
>>output, opening files as necessary.

>IFF your code is all set up right for emacs. Mine isn't. 

How can your code be setup wrong for emacs? You could have a different
formatting, but it should be not problem to turn off emacs auto
formatting option, or to customize them to suit your needs.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
 Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518

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

From: John Reynolds <[EMAIL PROTECTED]>
Subject: Re: reentrant - explanation
Date: Wed, 26 Jul 2000 19:02:23 GMT

In article <8lksji$kgg$[EMAIL PROTECTED]>,
  "Norman Black" <[EMAIL PROTECTED]> wrote:
> > Like a semaphore I suppose.
>
> Yes a semaphore with at most a count of one. Better is a mutex, or a
> spinlock.
>

Thanks!


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

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

Date: Wed, 26 Jul 2000 15:18:34 -0500
From: gLiTcH <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: kernel compiling and LILO.conf

the system won't boot if ELF support isn't built-in.  A user posted a message a
few days ago about taking out ELF support and the system wouldn't boot anymore.
I believe one reason is that the kernel itself is an ELF binary but I could be
wrong.


Brandon

[EMAIL PROTECTED] wrote:

> Hi,
>
>  2 questions
>
>         1. I am adding some code to the ELF section of the kernel and am just
> exploring some options about recompilaion of the kernel. I've heard that
> you can have sections of the kernel as modules and just compile and add
> them to a running kernel. is this possible with the ELF bianry format
> code? Would there be any issues involved with running executables when I
> unload the ELF module from the kernel?
>
>         2. All the discussions I see say religiously " make a emergeny boot
> floppy disk with the old kernel image" when compiling and running a new
> kernel. I would like to know if it is posible just to use the lilo.conf
> file and specify two boot options. ne for the old kernel and one for the
> new kernel. That way if the new kernel stuffs up then I can jsut reboot
> and use the old kernel by pressing TAB at the boot prompt.
>
> eg.
>         A sample section from a lilo.conf file... would this work?
>
>
>                         image=/boot/vmlinuz-2.0.36
>                            label=linux
>                            root=/dev/hda2
>                            read-only
>                         image=/boot/vmlinuz-2.0.1
>                                    label=old-kernel
>                                    root=/dev/hda2
>                                    read-only
>                         other=/dev/hda1
>                            label=win
>
> thanks in advance
>
>         dan.
>
> ps. could you post replies to my email as well please
> ([EMAIL PROTECTED])
>
> pps. If this is bad ettiquette asking people to do this then please
> advise me so. cheers.


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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Proc fs question (2.2.x kernels)
Date: 26 Jul 2000 19:15:35 GMT

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

>Anybody knows some good documentation about the 2.2.x proc file system?

Have you looked at /usr/src/linux/Documentation/proc.txt?

--
http://www.fnet.net/~ellis/photo/linux.html

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

From: [EMAIL PROTECTED] (Benny Andersen)
Subject: Re: Reproducable crashing linux-2.2.16
Date: Wed, 26 Jul 2000 19:29:41 GMT

I think you have to release, what you have allocated from the heap,
before terminating.

-- Benny Andersen

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

Reply-To: "Norm Dresner" <[EMAIL PROTECTED]>
From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Asynchronous I/O
Date: Wed, 26 Jul 2000 19:39:38 GMT

I have a need to create an asynchronous I/O device from a device that is
currently synchronous and only allows one process at a time to open it so
there's no need for complex queues.  I've read Rubini's write-up on this and
I was hoping that there is a simpler solution by which I can send a single
process a single signal without having to go the fasync_queue route.
    Thanks
        Norm



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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Asynchronous I/O
Date: 26 Jul 2000 19:43:13 GMT

In article <_7Hf5.9974$[EMAIL PROTECTED]>,
Norm Dresner <[EMAIL PROTECTED]> wrote:

>I have a need to create an asynchronous I/O device from a device that is
>currently synchronous and only allows one process at a time to open it so
>there's no need for complex queues.  I've read Rubini's write-up on this and
>I was hoping that there is a simpler solution by which I can send a single
>process a single signal without having to go the fasync_queue route.

Could you use IPC to a process that serializes the requests?

--
http://www.fnet.net/~ellis/photo/linux.html

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

From: Ronald Cole <[EMAIL PROTECTED]>
Subject: Re: Installation of Oracle 8.1.16 for Linux
Date: 26 Jul 2000 14:32:32 -0700

[EMAIL PROTECTED] writes:
> I've installed Oracle too.
> I've got no problem with RedHat 6.2 and Oracle.
> You only must set the enviroment variable ORACLE_HOME=/usr/local/oracle
> and the ORACLE_SID should be your password.
> Then install.
> I've installed it on to PC's and there was no problem.
> I hope it helps.

Having used Unify 2000 and Informix IDS 7.x, I was expecting Oracle to
install similarly, like in /usr/oracle, and to be able to create the
database on a partition like /dev/sda11.  Yes, I read the install
notes about the three partition thingies (to use a technical term),
but I already have a 1-gig partition all ready for my Oracle database.
I don't think I care to "guess" how big my indexes are going to be and
assign separate "filesystems" for the binaries, the database, and the
indexes.

Anyone have a way to install Oracle like Informix is installed?

-- 
Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412
Ronald Cole <[EMAIL PROTECTED]>      Phone: (760) 499-9142
President, CEO                             Fax: (760) 499-9152
My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084  4A88 8851 E6C8 69E3 B00B

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

From: Ronald Cole <[EMAIL PROTECTED]>
Subject: Re: Warning! -- SONY SUBSTANDARD SERVICE
Date: 26 Jul 2000 14:43:30 -0700

[EMAIL PROTECTED] (Tom Daley) writes:
> I have had bad service with Sony service as well.  I bought a Sony
> factory refurbished monitor.  The image on the screen jitters from 
> side to side.  I can't watch it for any length of time.  I sent it 
> back for service (shipping at my expense).  When it came back it
> still had the problem.

Might be bad power in your wall.  Do you have the monitor on a power
conditioner?

-- 
Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412
Ronald Cole <[EMAIL PROTECTED]>      Phone: (760) 499-9142
President, CEO                             Fax: (760) 499-9152
My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084  4A88 8851 E6C8 69E3 B00B

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

From: [EMAIL PROTECTED] (Dave Platt)
Subject: Re: Warning! -- SONY SUBSTANDARD SERVICE
Date: Wed, 26 Jul 2000 21:58:06 GMT

>> I have had bad service with Sony service as well.  I bought a Sony
>> factory refurbished monitor.  The image on the screen jitters from 
>> side to side.  I can't watch it for any length of time.  I sent it 
>> back for service (shipping at my expense).  When it came back it
>> still had the problem.
>
>Might be bad power in your wall.  Do you have the monitor on a power
>conditioner?

Any time I see a monitor with a side-to-side jitter, I suspect
magnetic interference.  Do you by any chance have an electric clock,
or TV set, or another monitor anywhere nearby? 

-- 
Dave Platt                                           [EMAIL PROTECTED]
Visit the Jade Warrior home page:  http://www.radagast.org/jade-warrior/
  I do _not_ wish to receive unsolicited commercial email, and I will
     boycott any company which has the gall to send me such ads!

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

From: Rob Morris <[EMAIL PROTECTED]>
Subject: Want to know update web site for updated valid kernel commands
Date: Wed, 26 Jul 2000 15:11:54 -0700
Reply-To: [EMAIL PROTECTED]

We have been writing a simple character device driver.  We have been
using memcpy_tofs command, which apparently is not defined under kernel
version 2.2.14.  I am new to the area and discovered there was a huge
change in the kernel commands when version 2.1 came out.  The long and
the short of it is we FINALLY figured this out and are now using the
appropriate command copy_to_user command.

My question is......does anyone know a good web source for the nitty
gritty details of all the changes to the available kernel commands?

By the way for those of you interested, we are profile the kernel, one
file at a time.  If anyone has interest in this type of work, email me
and perhaps we can correspond and exchange code, ideas,
thoughts....et.al.

Thanks,

Rob Morris


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


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