Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Linux programming
       [not found] <19980226032654.25200.qmail@hotmail.com>
@ 1998-02-26  3:46 ` Keith Baker
  1998-02-26 11:45 ` Alpha/Linux 2.1.87 Stephane Casset
  1 sibling, 0 replies; 8+ messages in thread
From: Keith Baker @ 1998-02-26  3:46 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* 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; 8+ 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] 8+ messages in thread

* Re: Alpha/Linux 2.1.87
       [not found] <19980226032654.25200.qmail@hotmail.com>
  1998-02-26  3:46 ` Linux programming Keith Baker
@ 1998-02-26 11:45 ` Stephane Casset
  1 sibling, 0 replies; 8+ messages in thread
From: Stephane Casset @ 1998-02-26 11:45 UTC (permalink / raw)


Yeap,
You got it, I found that yesterday and add the VGA_CONSOLE (or some thing
like that) and it worked...
I think config, menuconfig and xconfig are broken for the alpha or at
least for the Jensen... I'll try to have a look into it...

regards,

Stephane

On Thu, 26 Feb 1998, s c wrote:

> Where is the SET CONSOLE entry?  Check your 2.1.62 config file.  I've 
> used VGA and TGA successfully.  Use make config rather than menuconfig 
> or xconfig, as they try make clever guesses based on your system type.  
> Personally I build with xconfig, and hand edit autoconf.h.
> 
> >Hi,
> >
> >Ok,today I decided to compile linux 2.1.87 for an alpha system (jensen)
> >I have to add :
> >#include <linux/errno.h>
> >in the file linux/arch/alpha/kernel/bios32.c
> >
> >then it compiles till near the end and stops on the linking :(
> >see attachemnt...
> >Seens it does'nt like the console stuff :(
> >See config file in attachement.
> >
> >Did I miss some thing.
> >I have the same compile options than kernel 2.1.62 that is working ok.

***************************************************************
 -----/ |  << L'essentiel est invisible a l'oeil,
     /  |       on ne voit bien qu'avec le coeur. >>
    /   |               St. Exupery
   /    |     Stephane Casset : sept@renass3.u-strasbg.fr, 
  /     |                       casset@inforezo.u-strasbg.fr
 /      |         http://inforezo.u-strasbg.fr/~casset
***************************************************************

-- 
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] 8+ messages in thread

* Re: Linux programming
@ 1998-02-26 16:02 David Tucker
  0 siblings, 0 replies; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread

* Re: Linux Programming...
       [not found] ` <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.ne t>
@ 1998-10-27 21:03   ` Alessio Sangalli
  0 siblings, 0 replies; 8+ messages in thread
From: Alessio Sangalli @ 1998-10-27 21:03 UTC (permalink / raw)
  To: axp-list

At 14.37 27/10/98 -0500, you 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.

check out the I/O port programming how to - it talks about how to make
precise delays.


ciao
as


Montare un pc in macchina...

http://members.xoom.com/autopc


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-10-27 23:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <19980226032654.25200.qmail@hotmail.com>
1998-02-26  3:46 ` Linux programming Keith Baker
1998-02-26 11:45 ` Alpha/Linux 2.1.87 Stephane Casset
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] <Pine.BSI.3.95.980225224400.10514A-100000@shell1.cybercom.net>
1998-02-26  3:59 ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox