* Re: Linux programming
[not found] <Pine.BSI.3.95.980225224400.10514A-100000@shell1.cybercom.net>
@ 1998-02-26 3:59 ` Michal Jaegermann
0 siblings, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 1998-02-26 3:59 UTC (permalink / raw)
>
> Where can I get extensive linux programming info?
Wrox Press a while ago had a book which looked quite decent.
Try www.wrox.com.
> I am trying to write
> some pretty basic stuff and haven't been able to find a good source. I
> know my basic linear programming, but not threaded stuff.
Eh? "Linear programming" is about optimizing solution to a set
of linear inequalities with constraints and computers are used there
only as calculation tools tools.
> I just tried to
> read about "pipes" and they talked about fork() and never explained it...
This is not a threaded stuff either. Any book on advanced Unix
programming will do. Stevens is a classical reference.
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: NIC's
@ 1998-10-27 17:56 Michal Jaegermann
1998-10-27 19:37 ` Linux Programming Keith Baker
[not found] ` <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.ne t>
0 siblings, 2 replies; 7+ messages in thread
From: Michal Jaegermann @ 1998-10-27 17:56 UTC (permalink / raw)
To: axp-list
Steve G wrote:
>
> I have heard of people using the netgear cards, but don't recall seeing that
> driver in the kernel... Is there a "netgear" element, or is it enabled by
> some other driver?
Last time I tried they worked just fine both with current tulip and
de4x5 drivers.
You have to look at a chip used (the latest D-Link cards need "VIA
Rhine" driver - included in 2.0.36pre - for example).
--mj
^ permalink raw reply [flat|nested] 7+ messages in thread* Linux Programming...
1998-10-27 17:56 NIC's Michal Jaegermann
@ 1998-10-27 19:37 ` Keith Baker
1998-10-27 20:02 ` Jeff Noxon
1998-10-27 20:07 ` Paul Tomblin
[not found] ` <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.ne t>
1 sibling, 2 replies; 7+ messages in thread
From: Keith Baker @ 1998-10-27 19:37 UTC (permalink / raw)
To: axp-list
I have a basic knowledge of C and C++ programming. What I would like to
get is some links/information on interrupts,threads, and parallel ports.
I can't even find a way to pause my machine for a certail period of time
without doing a loop to slow it down... Where is all of this wonderfull
info... I'd like to have a process which "wakes up" every 1/30 of a
second or so, does its task which is simple i/o and then goes back to
sleep. Oh yeah... one catch... The data to output needs to be shared
with another process. Is two seperate processes really the way to go? If
not, how do I create this non-linear time based jumping?
Should I just go jump off a bridge instead? Do I know to little to
attempt thease things? Oh yeah... How do I use the parallel port in
linux... I know I could use a setuid root program and ioperm but I'd like
to be able to access my device from joe shmoe user... it is a simple box
which takes two different inputs... its a small DMX interface (A lighting
protocol).. you strobe a pin to make it klisten for dimmer info and
strobe another to make it listen for level info... do I need to write a
kernel driver for this? If so, what resources should I look at?
Keith
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Linux Programming...
1998-10-27 19:37 ` Linux Programming Keith Baker
@ 1998-10-27 20:02 ` Jeff Noxon
1998-10-27 20:07 ` Paul Tomblin
1 sibling, 0 replies; 7+ messages in thread
From: Jeff Noxon @ 1998-10-27 20:02 UTC (permalink / raw)
To: axp-list
Egads! A delay loop on a multitasking system!
What you want to do is not difficult.
This will provide some instant enilghtenment and gratificaion:
Unix Programming FAQ
http://www.cis.ohio-state.edu/text/faq/usenet/unix-faq/programmer/faq/faq.html
For the parallel port, there are Linux HOWTO's on the subject. Search for
the Linux Documentation Project.
For Unix programming in general, run (don't walk) out and buy W. Richard
Steven's books on the topic. IIRC, Advanced Programming In The Unix
Environment is the title of the one you want to buy right away. He also
has excellent books on network programming.
One last word of advice: Writing setuid programs is not for the novice
if security is a concern at all.
Regards,
Jeff
On Tue, Oct 27, 1998 at 02:37:50PM -0500, Keith Baker wrote:
> I have a basic knowledge of C and C++ programming. What I would like to
> get is some links/information on interrupts,threads, and parallel ports.
> I can't even find a way to pause my machine for a certail period of time
> without doing a loop to slow it down... Where is all of this wonderfull
> info... I'd like to have a process which "wakes up" every 1/30 of a
> second or so, does its task which is simple i/o and then goes back to
> sleep. Oh yeah... one catch... The data to output needs to be shared
> with another process. Is two seperate processes really the way to go? If
> not, how do I create this non-linear time based jumping?
> Should I just go jump off a bridge instead? Do I know to little to
> attempt thease things? Oh yeah... How do I use the parallel port in
> linux... I know I could use a setuid root program and ioperm but I'd like
> to be able to access my device from joe shmoe user... it is a simple box
> which takes two different inputs... its a small DMX interface (A lighting
> protocol).. you strobe a pin to make it klisten for dimmer info and
> strobe another to make it listen for level info... do I need to write a
> kernel driver for this? If so, what resources should I look at?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Linux Programming...
1998-10-27 19:37 ` Linux Programming Keith Baker
1998-10-27 20:02 ` Jeff Noxon
@ 1998-10-27 20:07 ` Paul Tomblin
1 sibling, 0 replies; 7+ messages in thread
From: Paul Tomblin @ 1998-10-27 20:07 UTC (permalink / raw)
To: axp-list
Quoting Keith Baker (toaster@cybercom.net):
> without doing a loop to slow it down... Where is all of this wonderfull
> info... I'd like to have a process which "wakes up" every 1/30 of a
> second or so, does its task which is simple i/o and then goes back to
> sleep. Oh yeah... one catch... The data to output needs to be shared
> with another process. Is two seperate processes really the way to go? If
> not, how do I create this non-linear time based jumping?
99.99% of this stuff is NOT linux specific. Get a copy of "Advanced
Programming in the Unix Environment" by Stevens. This book (and his other
books "Unix Network Programming" and "TCP/IP Illustrated") were my bibles when
I was doing C and C++. Although you might want to start with something a
little less heavy, like Marc Rochind's "Advanced Unix Programming".
> linux... I know I could use a setuid root program and ioperm but I'd like
> to be able to access my device from joe shmoe user... it is a simple box
> which takes two different inputs... its a small DMX interface (A lighting
The program is setuid root, which means that anybody who runs it is
running it with all the permissions of root. Not a problem - you don't need a
kernel patch for this. However, you need to be DAMN sure that there aren't
any security holes in your program - no unbound reads into fixed buffers, no
use of gets() or scanf, no stack smashing, etc. Also make sure the sysadmin
on any system you install this in knows what you're doing - they get pretty
nervous about setuid programs from unknown origins.
--
Paul Tomblin, ptomblin@xcski.com.
"The Windows NT workstations locked up every 2.58 minutes...The Linux
workstations [which replaced them] haven't had a problem"
- Randy Kessell, SBC Communications Inc.
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.ne t>]
* Re: Linux programming
@ 1998-02-26 16:02 David Tucker
0 siblings, 0 replies; 7+ messages in thread
From: David Tucker @ 1998-02-26 16:02 UTC (permalink / raw)
From My book shelf:
"Advanced programming in the UNIX environment" by Richard Stevens
ISBN 0-201-56317-7
Dave
-----Original Message-----
From: Keith Baker <toaster@cybercom.net>
To: axp-list@redhat.com <axp-list@redhat.com>
Date: Wednesday, February 25, 1998 7:46 PM
Subject: Linux programming
>Where can I get extensive linux programming info? I am trying to write
>some pretty basic stuff and haven't been able to find a good source. I
>know my basic linear programming, but not threaded stuff. I just tried to
>read about "pipes" and they talked about fork() and never explained it...
>What am I to do?
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread[parent not found: <19980226032654.25200.qmail@hotmail.com>]
end of thread, other threads:[~1998-10-27 23:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.BSI.3.95.980225224400.10514A-100000@shell1.cybercom.net>
1998-02-26 3:59 ` Linux programming Michal Jaegermann
1998-10-27 17:56 NIC's Michal Jaegermann
1998-10-27 19:37 ` Linux Programming Keith Baker
1998-10-27 20:02 ` Jeff Noxon
1998-10-27 20:07 ` Paul Tomblin
[not found] ` <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.ne t>
1998-10-27 21:03 ` Alessio Sangalli
-- strict thread matches above, loose matches on Subject: below --
1998-02-26 16:02 Linux programming David Tucker
[not found] <19980226032654.25200.qmail@hotmail.com>
1998-02-26 3:46 ` Keith Baker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox