2 /* SGI module -- random SGI-specific things */
12 sgi_nap(PyObject
*self
, PyObject
*args
)
15 if (!PyArg_Parse(args
, "l", &ticks
))
17 Py_BEGIN_ALLOW_THREADS
24 extern char *_getpty(int *, int, mode_t
, int);
27 sgi__getpty(PyObject
*self
, PyObject
*args
)
34 if (!PyArg_Parse(args
, "(iii)", &oflag
, &mode
, &nofork
))
37 name
= _getpty(&fildes
, oflag
, (mode_t
)mode
, nofork
);
39 PyErr_SetFromErrno(PyExc_IOError
);
42 return Py_BuildValue("(si)", name
, fildes
);
45 static PyMethodDef sgi_methods
[] = {
47 {"_getpty", sgi__getpty
},
48 {NULL
, NULL
} /* sentinel */
55 Py_InitModule("sgi", sgi_methods
);