aboutsummaryrefslogtreecommitdiff
path: root/doc/mailfromd.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mailfromd.texi')
-rw-r--r--doc/mailfromd.texi51
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi
index 0d171ab0..3d2e43c5 100644
--- a/doc/mailfromd.texi
+++ b/doc/mailfromd.texi
@@ -7730,2 +7730,16 @@ The function @code{revip} is defined in @ref{revip}.
+@deftypefn {Built-in Function} string gethostname ()
+Return the host name of this machine.
+@end deftypefn
+
+@deftypefn {Built-in Function} string getdomainname ()
+Return the domain name of this machine. Note, that it does not
+necessarily coincide with the actual machine name in @acronym{DNS}.
+
+Depending on the underlying @samp{libc} implementation, this call may
+return empty string or the string @samp{(none)}. Do not rely on it to
+get the real hostname of the box @command{mailfromd} runs on, use
+@acronym{DNS} functions instead.
+@end deftypefn
+
@deftypefn {Built-in Function} number time ()
@@ -7765,2 +7779,39 @@ strftime('%Y-%m-%d %H:%M:%S %Z', 1164477564, 1)
+@deftypefn {Built-in Function} uname (string @var{format})
+This function returns system information formatted according to
+the format specification @var{format}. Ordinary characters placed
+in the format string are copied to the output without conversion.
+Conversion specifiers are introduced by a @samp{%} character.
+The following conversions are defined:
+
+@table @asis
+@item %s
+Name of this system.
+
+@item %n
+Name of this node within the communications network to which this node
+is attached. Note, that it does not necessarily coincide with the
+actual machine name in @acronym{DNS}.
+
+@item %r
+Kernel release.
+
+@item %v
+Kernel version.
+
+@item %m
+Name of the hardware type on which the system is running.
+@end table
+
+For example:
+
+@smallexample
+ uname('%n runs %s, release %r on %m')
+ @result{} "Trurl runs Linux, release 2.6.26 on i686"
+@end smallexample
+
+Notice the use of single quotes.
+
+@end deftypefn
+
@deftypefn {Built-in Function} number system (string @var{str})

Return to:

Send suggestions and report system problems to the System administrator.