Simple C Language Question

Jeremy Fowler jfowler at westrope.com
Tue Nov 19 16:05:51 CST 2002


Also, you shouldn't mess with the task table unless you really know what your
doing. If all you want is to get the current pid, use the getpid function
defined in the unistd.h file. See the getpid man file for more info.

> -----Original Message-----
> From: owner-kclug at marauder.illiana.net
> [mailto:owner-kclug at marauder.illiana.net]On Behalf Of Scott Bowling
> Sent: Monday, November 18, 2002 10:31 PM
> To: Kansas City Linux Users Group Mailing List
> Subject: Simple C Language Question
>
>
> Sorry if this is off topic but I figured it would be a simple question to
> answer.  My justification is because I have had the darnedest time trying to
> find a google answer
>
> I am fairly new to C Language and have picked up a few books.  I'm also
> using plenty of examples to do with what I'd like to do.  However there is
> one thing I cannot find an answer for.  I've seen source code that use the
> "current" structure.  For example, current->pid returns the current PID.
>
> I cannot find where this is defined anywhere.  I'd like to know what all the
> possible values I can call with this.
>
> If anyone can recommend a good C site, I'd love it.  I've current got "The
> Programming Language" 2nd Edition as my starting point.
>
> Thanks in advanced.
>
> Scott
>
>
>




More information about the Kclug mailing list