• C

cd and setenv in unix

How are setenv and cd coded in unix?
krnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhanceCommented:
Both are part of the shell and not unix itself as far as the commands themselves are concerned.   Download or buy one of the linux distribuitons and you'll have the source code to it.
0
Ernest022699Commented:
Do you mean how to USE them (embedded in a program) or how to WRITE them (to change / add functionality)?
0
krnAuthor Commented:
I want to be able to see how they were written so I can modify it the code.  So, code is what I want.  
0
codetenCommented:
www.openbsd.org has access to the source code online. If this doesn't work, then you can access it using anonymous CVS. chdir looks like its implemented in lint, not c.

SETENV
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/setenv.c?rev=1.3

CHDIR
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/sys/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
krnAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.