Linux-Development-Sys Digest #977, Volume #7 Mon, 26 Jun 00 18:13:16 EDT
Contents:
Re: Good Basic compiler for linux? (Brian J Luczkiewicz)
Re: Interrupt for parallel port on 4 pins? (Brian J Luczkiewicz)
Re: Dynamic linking shared library (Brian J Luczkiewicz)
2.4.0 test2 kernel qualms (Brian J Luczkiewicz)
Re: Multi-threaded Device drivers ?? (Mathias Waack)
Re: OT: Re: CodeWarrior for Linux. Comments ? (Mike Dowling)
Re: window managers ([EMAIL PROTECTED])
Re: nonblocking gethostbyname? ("Philip Pearl")
Re: how to make a RPM? ("Philip Pearl")
Monitering Paging Faults. (Todd Fraser)
Re: Add 4inches in length to your penis now!!! 4950 (mark)
IP_PKTINFO / in_pktinfo -- Code example? (David Ott)
Re: how to make a RPM? ([EMAIL PROTECTED])
Re: OT: Re: CodeWarrior for Linux. Comments ? (MWRon)
How to crerate a library (tabascox)
help (Gee)
Re: running remote untrusted code (Chetan Ahuja)
----------------------------------------------------------------------------
From: Brian J Luczkiewicz <[EMAIL PROTECTED]>
Subject: Re: Good Basic compiler for linux?
Date: Mon, 26 Jun 2000 02:14:19 -0400
If Basic were a worthwhile enough language that it were actually used for
linux application development then there would be hundreds of these
programs...Instead, we have extensively flexible and completely wonderful
tools for linux such as egcs/gcc,binutils,gdb,etc...and if you really need an
interface builder use glade....it's not so bad either....I gave up basic at 11
for Assembler and shortly after, C....I tried visual basic and decided that if
you an't have source to the compiler, it's not worth using....
Brian
dave wrote:
> I manage a small team of VB programmers and I am looking for a Basic
> Compiler and IDE for Linux. I have seen Xbasic and some others but they are
> quite the quality I am looking for. I need a complete commercial package
> with available support. Anyone know of such a product?
>
> thanks
> [EMAIL PROTECTED]
------------------------------
From: Brian J Luczkiewicz <[EMAIL PROTECTED]>
Subject: Re: Interrupt for parallel port on 4 pins?
Date: Mon, 26 Jun 2000 02:18:15 -0400
I could recommend, if you don't mind a possible security hole created by your
app, that you use a device in the /dev directory (or devfs if you use it) and
possibly use a system call such as poll or select on /dev/port or
/dev/parport....I'm all from memory and it's late here, so correct me if I'm
wrong...
Brian
fprintf wrote:
> I am looking at the various documentation I can find on
> programming for the parallel port about coding for interrupts.
> I have a slot car timing system that repeatedly polls the
> parallel port for "events". I have been told that if I could
> figure out a way to do so, using interrupts would be *far* more
> efficient. I can understand that it would be, however I am
> looking at the value of 4 pins on my parallel port, one of which
> is Pin 10 - which is the pin that generates the interrupt. I
> cannot just look at activity on Pin 10 to generate my interrupt
> - I need to look at any/all pins.
>
> Is it possible to designate activity on pins 10, 11, 12 and 15
> to generate an interrupt? If not, is there a better way to
> monitor activity on those pins other than a constantly cycling
> do loop?
>
> do
> {
> inb()
> if (activity) process function
> }
>
> Thanks!
> Stuart
>
> * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
> The fastest and easiest way to search and participate in Usenet - Free!
------------------------------
From: Brian J Luczkiewicz <[EMAIL PROTECTED]>
Subject: Re: Dynamic linking shared library
Date: Mon, 26 Jun 2000 02:20:25 -0400
it's dl here....dll brings back baaad memories.....I would reccommend
looking at the dlsym, dlopen, and dlclose manpages....the libdl interface
is very good and I am currently developing a modular embedded control
daemon using libdl to coordinate module loading. The concept is that you
have a library containing symbols which you want to access in your main
program. dlsym will return a pointer to a symbol by looking up the symbol
specified in the library's symbol table...
Brian
Nera wrote:
> Hello
>
> Can anyone tell me the concept of dll?
>
> Nera
>
> Markus <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > the concept is the same.
> > man dlopen, man dlsym
> >
> > Markus
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hello
> > >
> > > Can I load and link shared library (.so) dynamically the same way as
> > > using
> > > LoadLibrary and GetProcAddress
> > > under Win32?
> > >
> > > Thanks in advance
> > >
> > > Dmitry
> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
------------------------------
From: Brian J Luczkiewicz <[EMAIL PROTECTED]>
Subject: 2.4.0 test2 kernel qualms
Date: Mon, 26 Jun 2000 02:24:57 -0400
I just downloaded the test2 kernel (and as the holy penguin specter
said, it worked)...unfortunately I have two problems. my first is that
I can not seem to make pppd behave itself, it quits just after hooking
up ppp0 <--> /dev/modem.....the second is that I get a lot of "oops"
messages at startup and shutdown regarding the dereferencing of
NULL pointers by the kernel. Any ideas? the oops messages are nonfatal
and if i break into a shell i can go multiuser from there and have
basically full functionality, besides ppp.....it is annoying to have to
manually start up though....
Brian
------------------------------
From: Mathias Waack <[EMAIL PROTECTED]>
Subject: Re: Multi-threaded Device drivers ??
Date: 26 Jun 2000 09:30:00 +0200
"ELSID Software Systems LTD." <[EMAIL PROTECTED]> writes:
> Is it possible to create an independent thread within a device driver
> and if so can someone point me at an example.
Yes. Look for driver source files which call kernel_thread().
Mathias
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Subject: Re: OT: Re: CodeWarrior for Linux. Comments ?
Date: 26 Jun 2000 08:12:54 GMT
On Sat, 24 Jun 2000 15:46:48 -0400, MWRon <[EMAIL PROTECTED]> wrote:
>We do hear the requests for a Makefile import and export, if these are
>essential to your development then CodeWarrior is not the too for you at
>this time.
I would have thought that the most important issue for most programmers
is code portability through the use of established language standards.
(This of course excludes those whose programs are platform specific such
as kernel developers.)
The second most important issue is surely being able to port programs by
using established standards for building binaries, and that means using
make.
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[29,30]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: window managers
Date: Mon, 26 Jun 2000 08:34:48 GMT
Stephan Beyer <[EMAIL PROTECTED]> wrote:
> do you know good tutorials or help for writing
> window managers.
"UTSL" [1] is the standard reply for all these sorts of questions. There
are several free, very high-quality window managers out there. The most
obvious starting point is TWM which is the simplest (and original) X11
window manager, and the point of departure for most other free WMs.
If you are serious about writing X11 code, you will need to get to grips
with the Imake system. It's really not that hard -- most of the time you
just read the INSTALL file for a package which says "type xmkmf, make
config, make dep, make all, make install" or something similar. Take
the time to learn the bare minimum on such tools and it _will_ pay off.
Most window managers are written in C (C++ is still is not the de facto
language for UI code on UNIX yet, some might say `sadly' as it has much
to offer in this regard). There are probably WMs in Java, Smalltalk and
maybe even [incr Tcl].
The definitive books for X programming are the O'Reilly series (probably
volume 1, the blue one) "The X Window System". These will fill you in on
the theory of window managers etc. In all good bookshops and CS
libraries.
Happy hacking.
alan
[1] "Use the source, Luke"
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Philip Pearl" <[EMAIL PROTECTED]>
Subject: Re: nonblocking gethostbyname?
Date: Sun, 25 Jun 2000 23:18:17 +0100
I've looked into this a number of times on different UNIX platforms and have
been unable to find a non-blocking gethostbyname. Even if you dedicate a
thread to gethostbyname you still have problems since you can't time it out
with SIGALRM (pthreads and signals don't mix too well). The best solution
I've found is to spawn a process and communicate with it via a pipe. The
process keeps running and you send gethostbyname requests to it down the
pipe. You'll probably want to use async reads & writes with the pipe also
or it might just fill up and block.
If you get a good answer to this question can you please mail it to me?
Regards
Phil.
Damir Cosic <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Is there any way (except having a process or thread just
> for that) to get host by name in some kind of non blocking
> or interruptable mode? What is gethostbyname() time-out and
> can it be changed?
> Thanks.
>
> Damir
------------------------------
From: "Philip Pearl" <[EMAIL PROTECTED]>
Subject: Re: how to make a RPM?
Date: Sun, 25 Jun 2000 23:29:15 +0100
This is a multi-part message in MIME format.
=======_NextPart_000_00EE_01BFDEFD.2D62B900
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Untitled DocumentThere's a book called "Maximum RPM" that explains what =
to do. It is available to read on the Web, but I don't have the URL =
right now. Try searching...
Harold <[EMAIL PROTECTED]> wrote in message =
news:8iker5$1f03$[EMAIL PROTECTED]...
Is there some downloadable tools?
Thanks!
==========================================================================
=====
Welcome to my linux page:
Linux Paradise (under construction)
BTW: Because my job is so busy, I=20
want some friend to maintain this=20
site with me together, please give=20
me some suggestion.
Thanks.=20
=======_NextPart_000_00EE_01BFDEFD.2D62B900
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Untitled Document</TITLE>
<META content=3D"text/html; charset=3Dgb2312" =
http-equiv=3DContent-Type><BASE=20
href=3Dfile://C:\WIN98\Desktop\>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
<META content=3D"MSHTML 5.00.3017.2400" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>There's a book called "Maximum RPM" =
that explains=20
what to do. It is available to read on the Web, but I don't have =
the URL=20
right now. Try searching...</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>Harold <<A=20
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>> =
wrote in=20
message <A=20
=
href=3D"news:8iker5$1f03$[EMAIL PROTECTED]">news:8iker5$1f03$[EMAIL PROTECTED]=
n</A>...</DIV>
<DIV>
<DIV>Is there some downloadable tools?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks!</DIV>
<DIV>
<HR>
<BR></DIV></DIV>
<P>Welcome to my linux page:<BR><A href=3D"http://hyang.uhome.net"=20
target=3D_blank>Linux Paradise</A> (under construction)<BR>BTW: =
Because my job=20
is so busy, I <BR>want some friend to maintain this <BR>site with me =
together,=20
please give <BR>me some suggestion.<BR>Thanks. =
</P></BLOCKQUOTE></BODY></HTML>
=======_NextPart_000_00EE_01BFDEFD.2D62B900==
------------------------------
From: Todd Fraser <[EMAIL PROTECTED]>
Subject: Monitering Paging Faults.
Date: Mon, 26 Jun 2000 08:48:25 -0400
Hi,
I am working on a system utilitys that monitors system activities and I
cant find a way to monitor the number of Paging Faults per period of
time for the hole system, not just its own process. Is the information
hidded somewhere in the proc directory. Or in the dev directory. Or is
there some other way to retreave this informaion in Linux. If there is
no way I would like to know too.
Thanks
Todd
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (mark)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Add 4inches in length to your penis now!!! 4950
Date: Sun, 25 Jun 2000 18:23:14 +0100
In article <8iqsav$dnm$[EMAIL PROTECTED]>, bgeer wrote:
>"Larry Ebbitt " <[EMAIL PROTECTED]> writes:
>
> >On Sun, 18 Jun 2000 09:47:41 -0400, Lew Pitcher wrote:
>
> >>> you to can have the huge dick of your dreams!!!
>
> >Will I have to take time away from my PC?
>
>What good is a huge one if you don't??? :-)
Saves reaching down whilst surfing?
--
Mark - remove any ham to reply.
"A compiler is a program that takes the pseudo-English gibberish produced
by a programmer and turns it into the sort of binary gibberish understood
by a computer." Linux for the uninitiated ... by Paul Heinlein
------------------------------
From: [EMAIL PROTECTED] (David Ott)
Subject: IP_PKTINFO / in_pktinfo -- Code example?
Date: 26 Jun 2000 14:39:34 GMT
I'm looking for code examples and documentation showing how
to use IP_PKTINFO and in_pktinfo to get IP and interface info
on incoming UDP packets.
Thanks.
David Ott
UNC at Chapel Hill
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: how to make a RPM?
Date: Mon, 26 Jun 2000 15:08:50 GMT
Philip Pearl <[EMAIL PROTECTED]> wrote:
> Untitled DocumentThere's a book called "Maximum RPM" that explains
> what to do. It is available to read on the Web, but I don't have the
> URL right now. Try searching...
http://www.rpm.org. Unfortunatly, the rpm folks aren't quite vocal
enough warning you that the book is hopelessly out of date, like the
rest of the deplorable rpm documentation. It's a decent start, but be
prepared for alot of excursions into the source code and text files in
the rpm distribution.
--
Matt Gauthier <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (MWRon)
Subject: Re: OT: Re: CodeWarrior for Linux. Comments ?
Date: Mon, 26 Jun 2000 11:42:33 -0400
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Mike Dowling) wrote:
>On Sat, 24 Jun 2000 15:46:48 -0400, MWRon <[EMAIL PROTECTED]> wrote:
>>We do hear the requests for a Makefile import and export, if these are
>>essential to your development then CodeWarrior is not the too for you at
>>this time.
(darn I mistyped tool)
>I would have thought that the most important issue for most programmers
>is code portability through the use of established language standards.
>(This of course excludes those whose programs are platform specific such
>as kernel developers.)
In this regards we are one of if not the most portable libraries around.
However on Linux we use GNU tools so that wouldn't matter.
>The second most important issue is surely being able to port programs by
>using established standards for building binaries, and that means using
>make.
While I don't think this statement is true, I do understand why many
people feel this way. However, what is done is done, I can only try to
inform users of this and let them decide.
Metrowerks primary desire is to have satisfied customers, certainly
someone that feels there is a necessity for them to share their code and
projects in an open forum will not be statisfied with CodeWarrior. Those
that are not concerned with sharing their projects but are concerned with
ease of use and simplicity will be satisified with CodeWarrior.
I welcome this discussion so that people are able to judge our tools on
what they are (and what they are not) and decide.
I welcome this discussion so that I can gather information on what our
potential customers need, in order to broaden our market.
Metrowerks does understand that it is imperitive of them to have a means
of importing and exporting projects in a not proprietary method. If this
is XML or if this is gnu makefiles I can't say.
Ron
--
When it came time to show off Mac OS X applications
Steve Jobs chose those built with CodeWarrior
Metrowerks, a Motorola Company - Ron Liechty
"Software Starts Here" - [EMAIL PROTECTED]
------------------------------
Date: Mon, 26 Jun 2000 14:17:29 -0500
From: tabascox <[EMAIL PROTECTED]>
Subject: How to crerate a library
Hi Linux friends,
I am writing a set of math functions, in C++, and I would like to create
a simple library like, libXX.so libXX.a to link inside the program.
I have something like:
xmath.h (all my classes declarations + C++ templates),
xmath.c (all the code for functions, an so on)
Everytime I compile, xmath.c takes a long, since there are more than
350KB of sources,
so I would like to create a libXX.a (libXX.so) to link, and complile
only xmath.h every time.
How can I do ?? I am sure I need few parameters for g++ !!
Thanks
Stefano
------------------------------
From: Gee <[EMAIL PROTECTED]>
Subject: help
Date: Mon, 26 Jun 2000 17:15:06 -0400
hi, I'm porting code from Solaris 2.6 to linux 6.2, I'm missing two
header files
"conf.h" and "ioccom.h" please advise on what these do and/or where I
can find it for redhat 6.2
thanks
Gee
------------------------------
From: Chetan Ahuja <[EMAIL PROTECTED]>
Subject: Re: running remote untrusted code
Date: 26 Jun 2000 21:25:33 GMT
Brennan Cheung <[EMAIL PROTECTED]> spoke thusly:
> Hi. I am working on a project that I need a client to be able to upload
> code to my server and have it run securely. I want to limit all API
> access except the API I will provide (ie, no files, no networking, no
> libc, etc). I was wondering if this is even possible under Linux? I'm
> not sure if this is the right group to be asking under but it looked
> like the best choice I could find. Should I post this somewhere else?
> If so, where?
> What mechanism could I use to load and execute remote code. It is very
> much like a DLL but I don't want to have to write it to a file first.
> Would people be able to write code under a different platform such as
> Windows and have it run on my server. I was thinking that it shouldn't
> be too hard because it should be pure binary code with the exception of
> the library calls I will provide.
> What is the process for a client to link into the API that I will
> provide?
> The basic idea of what I am trying to do for those of you who are
> wondering why I want to do this is that I have a server and lots of
> clients that will connect to the server. These clients are AI units
> that interact in a virtual world (the server). I want anyone to be able
> to do this but I want to be able to run untrusted code or in other words
> restrict the client from executing any harmful code.
> Thanks in advance,
> Brennan
Brennen, what you're talking about is part of a currently popular
field in Comp. Sci. Run searches for words like "Smart agents",
"Mobile agents" etc on google and you'll come up with lots and lots
of stuff. If you want to write such a system with complete security
and for commercial purposes (so that anybody can write the agents
and upload on your servers), your best bets are Java or some other
scripting language (e.g. python, perl etc) which would work under
an interpreter provided by you. Then you will have to carefully
craft the interpreter to make it secure. Java already has an
intensive security infrastructure that could save you some time. But
on the other hand you could use an open source language like python
or perl and then customize the interpreter to eliminate security
hazards as well as (possibly) enhance performance.
In short, there's no short and easy way out here. You'll have to
do considerable amount of work to make such a system work at the
scale you want. If you really have a commercialy interest in it then
you'll probably have to find some way to get this done in a
distribute way (using some sort of distributed server farm).
You can get in touch with me over email if you want to discuss it
further.
Chetan Ahuja
------------------------------
** 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
******************************