[Ada] Use VxWorks 7 APIs for accessing environment variables in kernel mode

Pierre-Marie de Rodat derodat@adacore.com
Wed Oct 21 07:23:33 GMT 2020


VxWorks 7 provides newer APIs for kernel mode for accessing environment
variables that lead to smaller and more efficient code.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* env.c (__gnat_setenv): call setenv for VxWorks 7 kernel mode.
	(__gnat_environ): envGet takes an int instead of a NULL pointer.
	(__gnat_unsetenv): call unsetenv for VxWorks 7 kernel mode.
	(__gnat_clearenv): use __gnat_unsetenv to clear environment
	variables.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 3595 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201021/a5cb2ac2/attachment-0001.bin>


More information about the Gcc-patches mailing list