public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] struct proc
@ 2001-08-30  8:49 David.Karlberg
  2001-08-30  8:56 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: David.Karlberg @ 2001-08-30  8:49 UTC (permalink / raw)
  To: andrew.lunn; +Cc: ecos-discuss

I am working on porting the openBSD PPP to eCos.

And some of the functions use the struct proc. 
Is there somthing I could use instead of struct proc, or should I just try 
to remove it? 

PS. Thank you Andrew for answering.

David

-----Original Message-----
From: Andrew Lunn [ mailto:andrew.lunn@ascom.ch ]
Sent: den 30 augusti 2001 17:39
To: Karlberg David
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] struct proc


On Thu, Aug 30, 2001 at 05:32:04PM +0200,
David.Karlberg@combitechsystems.com wrote:
> Hi,
> 
> I am working with the TCP/IP stack and I see a lot of
> 
> struct proc
> 
> but I cant seem to find where it is defined.

I don't think it is defined anywhere. We don't have processes in eCos,
only threads. Any code that tries to use proc should of been removed
thus:

#ifndef __ECOS
	struct proc *p = curproc;		/* XXX */
#endif

        Andrew

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

* Re: [ECOS] struct proc
  2001-08-30  8:49 [ECOS] struct proc David.Karlberg
@ 2001-08-30  8:56 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2001-08-30  8:56 UTC (permalink / raw)
  To: David.Karlberg; +Cc: ecos-discuss

On Thu, Aug 30, 2001 at 05:47:05PM +0200, David.Karlberg@combitechsystems.com wrote:
> 
> I am working on porting the openBSD PPP to eCos.
> 
> And some of the functions use the struct proc. 
> Is there somthing I could use instead of struct proc, or should I just try 
> to remove it? 

It will depend on what its trying to use within the proc structure. If
its just wanting to test is the user is a super user, disable the
code. If its trying to work out which tty the process has etc, you
have a bigger problem.

You will have to do a case by case evaluation.

        Andrew        

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

* Re: [ECOS] struct proc
  2001-08-30  8:32 David.Karlberg
@ 2001-08-30  8:39 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2001-08-30  8:39 UTC (permalink / raw)
  To: David.Karlberg; +Cc: ecos-discuss

On Thu, Aug 30, 2001 at 05:32:04PM +0200, David.Karlberg@combitechsystems.com wrote:
> Hi,
> 
> I am working with the TCP/IP stack and I see a lot of
> 
> struct proc
> 
> but I cant seem to find where it is defined.

I don't think it is defined anywhere. We don't have processes in eCos,
only threads. Any code that tries to use proc should of been removed
thus:

#ifndef __ECOS
	struct proc *p = curproc;		/* XXX */
#endif

        Andrew

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

* [ECOS] struct proc
@ 2001-08-30  8:32 David.Karlberg
  2001-08-30  8:39 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: David.Karlberg @ 2001-08-30  8:32 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I am working with the TCP/IP stack and I see a lot of

struct proc

but I cant seem to find where it is defined.

David

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

end of thread, other threads:[~2001-08-30  8:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-30  8:49 [ECOS] struct proc David.Karlberg
2001-08-30  8:56 ` Andrew Lunn
  -- strict thread matches above, loose matches on Subject: below --
2001-08-30  8:32 David.Karlberg
2001-08-30  8:39 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).