Reputation: 39034
In a vxWorks Real-Time process, you can pass environment variables as one of the parameter of the main routine.
How do you use the environment variables in the kernel context?
Upvotes: 1
Views: 6353
Reputation: 29401
Call this directly from the VxWorks shell:
putenv "<VARIABLE NAME>=<VALUE>"
replace with your environment variable name and with the value you want to set it to.
Upvotes: 2
Reputation: 39034
Vxworks environment variable support is provided by the envLib.
use putenv("VAR=value") to set the value of the environment variable.
use char* var = getenv("VAR") to retrieve the value.
Upvotes: 3