From: Ken Raeburn Date: Wed, 18 Sep 2002 20:35:51 +0000 (+0000) Subject: * cm.h: New file X-Git-Tag: krb5-1.3-alpha1~377 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23bdd8671c2af875749396949f47d126b5eb211e;p=krb5.git * cm.h: New file git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14874 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 * 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 *);