envvars.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * This file is part of Jehanne.
  3. *
  4. * Copyright (C) 2017 Giacomo Tesio <giacomo@tesio.it>
  5. *
  6. * Jehanne is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, version 2 of the License.
  9. *
  10. * Jehanne is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Jehanne. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* This file defines the names of a few environment variables shared
  19. * among the userspace tools provided by Jehanne.
  20. *
  21. * It must not provide defines for variables used by commonly installed
  22. * softwares, just the one used by the core tools, the one required
  23. * to boot a minimal system.
  24. */
  25. #define ENV_APID "APID"
  26. #define ENV_USER "USER"
  27. #define ENV_HOME "HOME"
  28. #define ENV_IFS "IFS"
  29. #define ENV_PATH "PATH"
  30. #define ENV_PID "PID"
  31. #define ENV_PROMPT "PROMPT"
  32. #define ENV_STATUS "STATUS"
  33. #define ENV_CDPATH "CDPATH"
  34. #define ENV_CPUTYPE "CPUTYPE"
  35. #define ENV_SERVICE "SERVICE"
  36. #define ENV_SYSNAME "SYSNAME"
  37. #define ENV_OBJTYPE "OBJTYPE"
  38. #define ENV_WSYS "wsys"
  39. extern char* jehanne_getenv(const char*);
  40. extern int jehanne_putenv(const char*, const char*);