Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Side by Side Diff: Modules/selectmodule.c

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/posixmodule.c ('k') | Modules/sha1module.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* select - Module containing unix select(2) call. 1 /* select - Module containing unix select(2) call.
2 Under Unix, the file descriptors are small integers. 2 Under Unix, the file descriptors are small integers.
3 Under Win32, select only exists for sockets, and sockets may 3 Under Win32, select only exists for sockets, and sockets may
4 have any value except INVALID_SOCKET. 4 have any value except INVALID_SOCKET.
5 */ 5 */
6 6
7 #include "Python.h" 7 #include "Python.h"
8 #include <structmember.h> 8 #include <structmember.h>
9 9
10 #ifdef __APPLE__ 10 #ifdef __APPLE__
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 &pfd, &events)) { 914 &pfd, &events)) {
915 return NULL; 915 return NULL;
916 } 916 }
917 917
918 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events); 918 return pyepoll_internal_ctl(self->epfd, EPOLL_CTL_ADD, pfd, events);
919 } 919 }
920 920
921 PyDoc_STRVAR(pyepoll_register_doc, 921 PyDoc_STRVAR(pyepoll_register_doc,
922 "register(fd[, eventmask]) -> None\n\ 922 "register(fd[, eventmask]) -> None\n\
923 \n\ 923 \n\
924 Registers a new fd or raises an IOError if the fd is already registered.\n\ 924 Registers a new fd or modifies an already registered fd.\n\
925 fd is the target file descriptor of the operation.\n\ 925 fd is the target file descriptor of the operation.\n\
926 events is a bit set composed of the various EPOLL constants; the default\n\ 926 events is a bit set composed of the various EPOLL constants; the default\n\
927 is EPOLL_IN | EPOLL_OUT | EPOLL_PRI.\n\ 927 is EPOLL_IN | EPOLL_OUT | EPOLL_PRI.\n\
928 \n\ 928 \n\
929 The epoll interface supports all file descriptors that support poll."); 929 The epoll interface supports all file descriptors that support poll.");
930 930
931 static PyObject * 931 static PyObject *
932 pyepoll_modify(pyEpoll_Object *self, PyObject *args, PyObject *kwds) 932 pyepoll_modify(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
933 { 933 {
934 PyObject *pfd; 934 PyObject *pfd;
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 /* NETDEV filter flags */ 1927 /* NETDEV filter flags */
1928 #ifdef EVFILT_NETDEV 1928 #ifdef EVFILT_NETDEV
1929 PyModule_AddIntConstant(m, "KQ_NOTE_LINKUP", NOTE_LINKUP); 1929 PyModule_AddIntConstant(m, "KQ_NOTE_LINKUP", NOTE_LINKUP);
1930 PyModule_AddIntConstant(m, "KQ_NOTE_LINKDOWN", NOTE_LINKDOWN); 1930 PyModule_AddIntConstant(m, "KQ_NOTE_LINKDOWN", NOTE_LINKDOWN);
1931 PyModule_AddIntConstant(m, "KQ_NOTE_LINKINV", NOTE_LINKINV); 1931 PyModule_AddIntConstant(m, "KQ_NOTE_LINKINV", NOTE_LINKINV);
1932 #endif 1932 #endif
1933 1933
1934 #endif /* HAVE_KQUEUE */ 1934 #endif /* HAVE_KQUEUE */
1935 return m; 1935 return m;
1936 } 1936 }
OLDNEW
« no previous file with comments | « Modules/posixmodule.c ('k') | Modules/sha1module.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+