Changes for new UNIX-specific built-in module 'select' and new header for

interfaces to variants of select() system call, "myselect.h".  This includes
adding fileno() methods to files, sockets and stdwin.
This commit is contained in:
Guido van Rossum 1992-06-23 09:07:03 +00:00
parent 5dc8eb0914
commit ed233a5696
7 changed files with 321 additions and 19 deletions

View file

@ -2102,11 +2102,27 @@ stdwin_getscrmm(self, args)
return makepoint(width, height);
}
#ifdef unix
static object *
stdwin_connectionnumber(self, args)
object *self;
object *args;
{
if (!getnoarg(args))
return NULL;
return newintobject((long) wconnectionnumber());
}
#endif
static struct methodlist stdwin_methods[] = {
{"askfile", stdwin_askfile},
{"askstr", stdwin_askstr},
{"askync", stdwin_askync},
{"fetchcolor", stdwin_fetchcolor},
#ifdef unix
{"fileno", stdwin_connectionnumber},
{"connectionnumber", stdwin_connectionnumber},
#endif
{"fleep", stdwin_fleep},
{"getactive", stdwin_getactive},
{"getcutbuffer", stdwin_getcutbuffer},