summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2002-09-18 20:35:51 +0000
committerKen Raeburn <raeburn@mit.edu>2002-09-18 20:35:51 +0000
commit23bdd8671c2af875749396949f47d126b5eb211e (patch)
tree91c2e69109050f5b9dc88f02492e56f41ddd2d9d /src/include
parentef744990e13fc996105b74f56e45949649481b8d (diff)
downloadkrb5-23bdd8671c2af875749396949f47d126b5eb211e.tar.gz
krb5-23bdd8671c2af875749396949f47d126b5eb211e.tar.xz
krb5-23bdd8671c2af875749396949f47d126b5eb211e.zip
* cm.h: New file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14874 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog2
-rw-r--r--src/include/cm.h39
2 files changed, 41 insertions, 0 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index 2c4c0e3c1..c1c8a865a 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -2,6 +2,8 @@
* configure.in: Check for sys/filio.h.
+ * cm.h: New file.
+
2002-09-13 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (maybe-make-db.h-sys, maybe-make-db.h-k5): New
diff --git a/src/include/cm.h b/src/include/cm.h
new file mode 100644
index 000000000..a04f271d5
--- /dev/null
+++ b/src/include/cm.h
@@ -0,0 +1,39 @@
+/*
+ * include/cm.h
+ *
+ * Copyright 2002 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * Export of this software from the United States of America may
+ * require a specific license from the United States Government.
+ * It is the responsibility of any person or organization contemplating
+ * export to obtain such a license before exporting.
+ *
+ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
+ * distribute this software and its documentation for any purpose and
+ * without fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission. Furthermore if you modify this software you must label
+ * your software as modified software and not distribute it in such a
+ * fashion that it might be confused with the original M.I.T. software.
+ * M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ */
+
+struct select_state {
+ int max, nfds;
+ fd_set rfds, wfds, xfds;
+ struct timeval end_time;
+};
+
+/* Select state flags. */
+#define SSF_READ 0x01
+#define SSF_WRITE 0x02
+#define SSF_EXCEPTION 0x04
+
+krb5_error_code krb5int_cm_call_select (const struct select_state *,
+ struct select_state *, int *);