aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-11-25 20:13:30 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-11-25 20:13:30 +0200
commit868a694807f0b0a617a47648910a7004b2b9ff97 (patch)
tree2f3156c1e617440ec7cd96ce1455126f9ea795fc /doc/gawktexi.in
parent19d38d292158e651c8c7175ae9bbd3e5855e2c94 (diff)
downloadegawk-868a694807f0b0a617a47648910a7004b2b9ff97.tar.gz
egawk-868a694807f0b0a617a47648910a7004b2b9ff97.tar.bz2
egawk-868a694807f0b0a617a47648910a7004b2b9ff97.zip
Add PROCINFO["platform"] to code and doc.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 8b0b219c..894fd559 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -15070,6 +15070,31 @@ The values indicate what @command{gawk} knows about the identifiers
after it has finished parsing the program; they are @emph{not} updated
while the program runs.
+@item PROCINFO["platform"]
+@cindex platform running on, @code{PROCINFO["platform"]}
+This element gives a string indicating the platform for which
+@command{gawk} was compiled. The value will be one of the following:
+
+@c nested table
+@table @code
+@item "vms"
+OpenVMS or Vax/VMS.
+
+@item "macosx"
+Mac OS X.
+
+@item "cygwin"
+@itemx "djgpp"
+@itemx "mingw"
+Microsoft Windows, using either Cygwin, DJGPP, or MinGW, respectively.
+
+@item "os2"
+OS/2.
+
+@item "posix"
+GNU/Linux and legacy Unix systems.
+@end table
+
@item PROCINFO["pgrpid"]
@cindex process group ID of @command{gawk} process
The process group ID of the current process.
@@ -37842,6 +37867,14 @@ Support for GNU/Linux on Alpha was removed.
@end itemize
+Version 5.0 added the following features:
+
+@itemize
+@item
+The @code{PROCINFO["platform"]} array element, which allows you
+to write code that takes the operating system / platform into account.
+@end itemize
+
@c XXX ADD MORE STUFF HERE
@end ifclear