diff options
Diffstat (limited to 'vms/unixlib.h')
-rw-r--r-- | vms/unixlib.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vms/unixlib.h b/vms/unixlib.h new file mode 100644 index 00000000..17d99706 --- /dev/null +++ b/vms/unixlib.h @@ -0,0 +1,24 @@ +/* "unixlib.h" -- limited substitute for VAX C V3.x's <unixlib.h>, + * for use with VAX C V2.x and/or GNU C when building gawk. + */ + + +/* declare the global environ[] array */ +#ifdef VAXC +extern char noshare **environ; +#else +# ifdef __GNUC__ +# define environ $$PsectAttributes_NOSHR$$environ +# endif +extern char **environ; +#endif + +/* miscellaneous Unix emulation routines available in VAXCRTL */ +char *getenv(), *getcwd(); + +char *ecvt(), *fcvt(), *gcvt(); + +int getpid(), getppid(); + +unsigned getgid(), getuid(), getegid(), geteuid(); +int setgid(), setuid(); /* no-ops */ |