##// END OF EJS Templates
osutil: disable compilation of recvfds() on unsupported platforms...
Yuya Nishihara -
r27970:3d23700c stable
parent child Browse files
Show More
@@ -653,7 +653,11 b' bail:'
653 /*
653 /*
654 * recvfds() simply does not release GIL during blocking io operation because
654 * recvfds() simply does not release GIL during blocking io operation because
655 * command server is known to be single-threaded.
655 * command server is known to be single-threaded.
656 *
657 * Old systems such as Solaris don't provide CMSG_LEN, msg_control, etc.
658 * Currently, recvfds() is not supported on these platforms.
656 */
659 */
660 #ifdef CMSG_LEN
657
661
658 static ssize_t recvfdstobuf(int sockfd, int **rfds, void *cbuf, size_t cbufsize)
662 static ssize_t recvfdstobuf(int sockfd, int **rfds, void *cbuf, size_t cbufsize)
659 {
663 {
@@ -713,6 +717,7 b' bail:'
713 return NULL;
717 return NULL;
714 }
718 }
715
719
720 #endif /* CMSG_LEN */
716 #endif /* ndef _WIN32 */
721 #endif /* ndef _WIN32 */
717
722
718 static PyObject *listdir(PyObject *self, PyObject *args, PyObject *kwargs)
723 static PyObject *listdir(PyObject *self, PyObject *args, PyObject *kwargs)
@@ -881,9 +886,11 b' static PyMethodDef methods[] = {'
881 {"statfiles", (PyCFunction)statfiles, METH_VARARGS | METH_KEYWORDS,
886 {"statfiles", (PyCFunction)statfiles, METH_VARARGS | METH_KEYWORDS,
882 "stat a series of files or symlinks\n"
887 "stat a series of files or symlinks\n"
883 "Returns None for non-existent entries and entries of other types.\n"},
888 "Returns None for non-existent entries and entries of other types.\n"},
889 #ifdef CMSG_LEN
884 {"recvfds", (PyCFunction)recvfds, METH_VARARGS,
890 {"recvfds", (PyCFunction)recvfds, METH_VARARGS,
885 "receive list of file descriptors via socket\n"},
891 "receive list of file descriptors via socket\n"},
886 #endif
892 #endif
893 #endif
887 #ifdef __APPLE__
894 #ifdef __APPLE__
888 {
895 {
889 "isgui", (PyCFunction)isgui, METH_NOARGS,
896 "isgui", (PyCFunction)isgui, METH_NOARGS,
General Comments 0
You need to be logged in to leave comments. Login now