summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/libsm/gen.html
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/libsm/gen.html')
-rw-r--r--contrib/sendmail/libsm/gen.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/contrib/sendmail/libsm/gen.html b/contrib/sendmail/libsm/gen.html
new file mode 100644
index 0000000..cf642ae
--- /dev/null
+++ b/contrib/sendmail/libsm/gen.html
@@ -0,0 +1,43 @@
+<html>
+<head>
+ <title>libsm : General Definitions</title>
+</head>
+<body>
+
+<a href="index.html">Back to libsm overview</a>
+
+<center>
+ <h1> libsm : General Definitions </h1>
+ <br> $Id: gen.html,v 1.5 2000/12/08 21:41:42 ca Exp $
+</center>
+
+<h2> Introduction </h2>
+
+The header file <tt>&lt;sm/gen.h&gt;</tt>
+contains general definitions that are used by every other
+header file in <b>libsm</b>.
+
+<h2> Synopsis </h2>
+
+<pre>
+#include &lt;sm/gen.h&gt;
+
+#define NULL ((void*)0)
+
+typedef int bool;
+#define false 0
+#define true 1
+
+#define SM_MAX(a, b) ((a) &gt; (b) ? (a) : (b))
+#define SM_MIN(a, b) ((a) &lt; (b) ? (a) : (b))
+
+/*
+** The following types can be accessed and updated atomically.
+** This is relevant in the context of signal handlers and threads.
+*/
+typedef <i>some signed integral type</i> SM_ATOMIC_INT_T;
+typedef <i>some unsigned integral type</i> SM_ATOMIC_UINT_T;
+</pre>
+
+</body>
+</html>
OpenPOWER on IntegriCloud