Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
7ec64562
Kaydet (Commit)
7ec64562
authored
Eyl 14, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28153: Make kqueue()'s event filters optional
Patch by Ed Schouten.
üst
62a1f024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
selectmodule.c
Modules/selectmodule.c
+18
-0
No files found.
Modules/selectmodule.c
Dosyayı görüntüle @
7ec64562
...
@@ -2533,13 +2533,21 @@ PyInit_select(void)
...
@@ -2533,13 +2533,21 @@ PyInit_select(void)
/* event filters */
/* event filters */
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_READ"
,
EVFILT_READ
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_READ"
,
EVFILT_READ
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_WRITE"
,
EVFILT_WRITE
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_WRITE"
,
EVFILT_WRITE
);
#ifdef EVFILT_AIO
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_AIO"
,
EVFILT_AIO
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_AIO"
,
EVFILT_AIO
);
#endif
#ifdef EVFILT_VNODE
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_VNODE"
,
EVFILT_VNODE
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_VNODE"
,
EVFILT_VNODE
);
#endif
#ifdef EVFILT_PROC
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_PROC"
,
EVFILT_PROC
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_PROC"
,
EVFILT_PROC
);
#endif
#ifdef EVFILT_NETDEV
#ifdef EVFILT_NETDEV
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_NETDEV"
,
EVFILT_NETDEV
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_NETDEV"
,
EVFILT_NETDEV
);
#endif
#endif
#ifdef EVFILT_SIGNAL
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_SIGNAL"
,
EVFILT_SIGNAL
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_SIGNAL"
,
EVFILT_SIGNAL
);
#endif
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_TIMER"
,
EVFILT_TIMER
);
PyModule_AddIntConstant
(
m
,
"KQ_FILTER_TIMER"
,
EVFILT_TIMER
);
/* event flags */
/* event flags */
...
@@ -2550,16 +2558,23 @@ PyInit_select(void)
...
@@ -2550,16 +2558,23 @@ PyInit_select(void)
PyModule_AddIntConstant
(
m
,
"KQ_EV_ONESHOT"
,
EV_ONESHOT
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_ONESHOT"
,
EV_ONESHOT
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_CLEAR"
,
EV_CLEAR
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_CLEAR"
,
EV_CLEAR
);
#ifdef EV_SYSFLAGS
PyModule_AddIntConstant
(
m
,
"KQ_EV_SYSFLAGS"
,
EV_SYSFLAGS
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_SYSFLAGS"
,
EV_SYSFLAGS
);
#endif
#ifdef EV_FLAG1
PyModule_AddIntConstant
(
m
,
"KQ_EV_FLAG1"
,
EV_FLAG1
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_FLAG1"
,
EV_FLAG1
);
#endif
PyModule_AddIntConstant
(
m
,
"KQ_EV_EOF"
,
EV_EOF
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_EOF"
,
EV_EOF
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_ERROR"
,
EV_ERROR
);
PyModule_AddIntConstant
(
m
,
"KQ_EV_ERROR"
,
EV_ERROR
);
/* READ WRITE filter flag */
/* READ WRITE filter flag */
#ifdef NOTE_LOWAT
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_LOWAT"
,
NOTE_LOWAT
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_LOWAT"
,
NOTE_LOWAT
);
#endif
/* VNODE filter flags */
/* VNODE filter flags */
#ifdef EVFILT_VNODE
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_DELETE"
,
NOTE_DELETE
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_DELETE"
,
NOTE_DELETE
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_WRITE"
,
NOTE_WRITE
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_WRITE"
,
NOTE_WRITE
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_EXTEND"
,
NOTE_EXTEND
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_EXTEND"
,
NOTE_EXTEND
);
...
@@ -2567,8 +2582,10 @@ PyInit_select(void)
...
@@ -2567,8 +2582,10 @@ PyInit_select(void)
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_LINK"
,
NOTE_LINK
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_LINK"
,
NOTE_LINK
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_RENAME"
,
NOTE_RENAME
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_RENAME"
,
NOTE_RENAME
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_REVOKE"
,
NOTE_REVOKE
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_REVOKE"
,
NOTE_REVOKE
);
#endif
/* PROC filter flags */
/* PROC filter flags */
#ifdef EVFILT_PROC
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_EXIT"
,
NOTE_EXIT
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_EXIT"
,
NOTE_EXIT
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_FORK"
,
NOTE_FORK
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_FORK"
,
NOTE_FORK
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_EXEC"
,
NOTE_EXEC
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_EXEC"
,
NOTE_EXEC
);
...
@@ -2578,6 +2595,7 @@ PyInit_select(void)
...
@@ -2578,6 +2595,7 @@ PyInit_select(void)
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_TRACK"
,
NOTE_TRACK
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_TRACK"
,
NOTE_TRACK
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_CHILD"
,
NOTE_CHILD
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_CHILD"
,
NOTE_CHILD
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_TRACKERR"
,
NOTE_TRACKERR
);
PyModule_AddIntConstant
(
m
,
"KQ_NOTE_TRACKERR"
,
NOTE_TRACKERR
);
#endif
/* NETDEV filter flags */
/* NETDEV filter flags */
#ifdef EVFILT_NETDEV
#ifdef EVFILT_NETDEV
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment