Jump to content

Host introspection: Difference between revisions

m
→‎{{header|REXX}}: added REXX code for parsing SOURCE to determine which operating system it's running under. -- ~~~~
m (→‎{{header|REXX}}: added REXX code for parsing SOURCE to determine which operating system it's running under. -- ~~~~)
Line 668:
programmer to look at (local) storage, and if there is an indicator stored anywhere
in the virtual address space, that it can be examined.
<lang rexx>/*REXX program to examine which operating system that REXX is running under. */
<br><br>
 
parse source opSys howInvoked pathName
 
/*where opSys will indicate which operating system REXX is running under, and */
/*from that, one could make assumptions what the wordsize is, etc. */</lang>
 
=={{header|Ruby}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.