/* -*-C-*-
-$Id: dosio.c,v 1.3 1992/11/23 04:17:43 gjr Exp $
+$Id: dosio.c,v 1.4 1993/04/06 22:19:01 cph Exp $
-Copyright (c) 1992 Massachusetts Institute of Technology
+Copyright (c) 1992-93 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
}
}
-
/* No SELECT in DOS */
+CONST int OS_have_select_p = 0;
+
long
DEFUN (OS_channel_select_then_read, (channel, buffer, nbytes),
Tchannel channel AND
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/osio.h,v 1.7 1991/03/11 23:42:31 cph Exp $
+$Id: osio.h,v 1.8 1993/04/06 22:18:26 cph Exp $
-Copyright (c) 1990-91 Massachusetts Institute of Technology
+Copyright (c) 1990-93 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
Technology nor of any adaptation thereof in any advertising,
promotional, or sales literature without prior written consent from
MIT in each case. */
-
+\f
#ifndef SCM_OSIO_H
#define SCM_OSIO_H
extern void EXFUN (OS_channel_nonblocking, (Tchannel channel));
extern void EXFUN (OS_channel_blocking, (Tchannel channel));
+extern CONST int OS_have_select_p;
extern unsigned int OS_channels_registered;
extern int EXFUN (OS_channels_registered_p, (void));
extern void EXFUN (OS_channel_register, (Tchannel channel));
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/prosio.c,v 1.7 1992/02/04 04:36:56 cph Exp $
+$Id: prosio.c,v 1.8 1993/04/06 22:18:09 cph Exp $
-Copyright (c) 1987-92 Massachusetts Institute of Technology
+Copyright (c) 1987-93 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
}
}
+DEFINE_PRIMITIVE ("HAVE-SELECT?", Prim_have_select_p, 0, 0, 0)
+{
+ PRIMITIVE_HEADER (0);
+ PRIMITIVE_RETURN (BOOLEAN_TO_OBJECT (OS_have_select_p));
+}
+
DEFINE_PRIMITIVE ("CHANNEL-REGISTERED?", Prim_channel_registered_p, 1, 1,
"Return #F iff CHANNEL is registered for selection.")
{
/* -*-C-*-
-$Id: pruxio.c,v 1.2 1993/04/06 21:34:02 cph Exp $
+$Id: pruxio.c,v 1.3 1993/04/06 22:18:19 cph Exp $
Copyright (c) 1993 Massachusetts Institute of Technology
extern int EXFUN (UX_channel_descriptor, (Tchannel channel));
#endif
\f
-DEFINE_PRIMITIVE ("HAVE-SELECT?", Prim_have_select_p, 0, 0, 0)
-{
- PRIMITIVE_HEADER (0);
- PRIMITIVE_RETURN (BOOLEAN_TO_OBJECT (UX_have_select_p));
-}
-
DEFINE_PRIMITIVE ("SELECT-REGISTRY-SIZE", Prim_selreg_size, 0, 0, 0)
{
PRIMITIVE_HEADER (0);
/* -*-C-*-
-$Id: uxio.c,v 1.24 1993/03/15 18:36:18 cph Exp $
+$Id: uxio.c,v 1.25 1993/04/06 22:18:45 cph Exp $
Copyright (c) 1990-93 Massachusetts Institute of Technology
#endif
#ifdef HAVE_SELECT
-CONST int UX_have_select_p = 1;
+CONST int OS_have_select_p = 1;
extern int EXFUN (UX_process_any_status_change, (void));
#ifndef SELECT_DECLARED
extern int EXFUN (UX_select,
struct timeval *));
#endif /* not SELECT_DECLARED */
#else /* not HAVE_SELECT */
-CONST int UX_have_select_p = 0;
+CONST int OS_have_select_p = 0;
#endif /* not HAVE_SELECT */
unsigned int
/* -*-C-*-
-$Id: uxselect.h,v 1.3 1993/03/10 17:55:54 cph Exp $
+$Id: uxselect.h,v 1.4 1993/04/06 22:18:54 cph Exp $
Copyright (c) 1991-93 Massachusetts Institute of Technology
select_input_interrupt
};
-extern CONST int UX_have_select_p;
extern enum select_input EXFUN (UX_select_input, (int fd, int blockp));
extern unsigned int EXFUN (UX_select_registry_size, (void));
extern unsigned int EXFUN (UX_select_registry_lub, (void));
/* -*-C-*-
-$Id: version.h,v 11.129 1993/03/10 17:56:45 cph Exp $
+$Id: version.h,v 11.130 1993/04/06 22:23:35 cph Exp $
Copyright (c) 1988-1993 Massachusetts Institute of Technology
#define VERSION 11
#endif
#ifndef SUBVERSION
-#define SUBVERSION 129
+#define SUBVERSION 130
#endif
/* -*-C-*-
-$Id: x11base.c,v 1.47 1993/03/10 17:56:24 cph Exp $
+$Id: x11base.c,v 1.48 1993/04/06 22:18:36 cph Exp $
Copyright (c) 1989-93 Massachusetts Institute of Technology
#include "prims.h"
#include "ux.h"
#include "uxselect.h"
+#include "osio.h"
#include "x11.h"
#ifndef X_DEFAULT_FONT
{
Display * display = (XD_DISPLAY (xd));
unsigned int events_queued;
- if (!UX_have_select_p)
+ if (!OS_have_select_p)
use_select_p = 0;
if (XD_CACHED_EVENT_P (xd))
{
/* -*-C-*-
-$Id: version.h,v 11.129 1993/03/10 17:56:45 cph Exp $
+$Id: version.h,v 11.130 1993/04/06 22:23:35 cph Exp $
Copyright (c) 1988-1993 Massachusetts Institute of Technology
#define VERSION 11
#endif
#ifndef SUBVERSION
-#define SUBVERSION 129
+#define SUBVERSION 130
#endif