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
fe8d9666
Kaydet (Commit)
fe8d9666
authored
Tem 19, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27567: Expose the POLLRDHUP constant in the select module
üst
a1ea9c81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
select.rst
Doc/library/select.rst
+3
-0
NEWS
Misc/NEWS
+2
-1
selectmodule.c
Modules/selectmodule.c
+8
-0
No files found.
Doc/library/select.rst
Dosyayı görüntüle @
fe8d9666
...
@@ -391,6 +391,9 @@ linearly scanned again. :c:func:`select` is O(highest file descriptor), while
...
@@ -391,6 +391,9 @@ linearly scanned again. :c:func:`select` is O(highest file descriptor), while
+-------------------+------------------------------------------+
+-------------------+------------------------------------------+
| :const:`POLLHUP` | Hung up |
| :const:`POLLHUP` | Hung up |
+-------------------+------------------------------------------+
+-------------------+------------------------------------------+
| :const:`POLLRDHUP`| Stream socket peer closed connection, or |
| | shut down writing half of connection |
+-------------------+------------------------------------------+
| :const:`POLLNVAL` | Invalid request: descriptor not open |
| :const:`POLLNVAL` | Invalid request: descriptor not open |
+-------------------+------------------------------------------+
+-------------------+------------------------------------------+
...
...
Misc/NEWS
Dosyayı görüntüle @
fe8d9666
...
@@ -28,7 +28,8 @@ Library
...
@@ -28,7 +28,8 @@ Library
- Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select module.
- Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select module.
- Issue #27567: Expose the EPOLLRDHUP constant in the select module.
- Issue #27567: Expose the EPOLLRDHUP and POLLRDHUP constants in the select
module.
- Issue #1621: Avoid signed int negation overflow in the "audioop" module.
- Issue #1621: Avoid signed int negation overflow in the "audioop" module.
...
...
Modules/selectmodule.c
Dosyayı görüntüle @
fe8d9666
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
have any value except INVALID_SOCKET.
have any value except INVALID_SOCKET.
*/
*/
#if defined(HAVE_POLL_H) && !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#include "Python.h"
#include "Python.h"
#include <structmember.h>
#include <structmember.h>
...
@@ -2451,6 +2455,10 @@ PyInit_select(void)
...
@@ -2451,6 +2455,10 @@ PyInit_select(void)
#endif
#endif
#ifdef POLLMSG
#ifdef POLLMSG
PyModule_AddIntMacro
(
m
,
POLLMSG
);
PyModule_AddIntMacro
(
m
,
POLLMSG
);
#endif
#ifdef POLLRDHUP
/* Kernel 2.6.17+ */
PyModule_AddIntMacro
(
m
,
POLLRDHUP
);
#endif
#endif
}
}
#endif
/* HAVE_POLL */
#endif
/* HAVE_POLL */
...
...
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