chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*.pyx, defs.pxi, *.c: Fixes for 64-bit builds.
[mLib-python]
/
fdutils.pyx
diff --git
a/fdutils.pyx
b/fdutils.pyx
index 8e5d94a098e1daea9b2609e4f38243831989b5f9..68e05680a48913b73cacbf85c2171abac156e362 100644
(file)
--- a/
fdutils.pyx
+++ b/
fdutils.pyx
@@
-34,7
+34,7
@@
def fdflags(file,
def fdsend(sock, file, buffer):
cdef void *p
def fdsend(sock, file, buffer):
cdef void *p
- cdef
in
t len
+ cdef
Py_ssize_
t len
cdef int rc
PyObject_AsReadBuffer(buffer, &p, &len)
rc = fdpass_send(_getfd(sock), _getfd(file), p, len)
cdef int rc
PyObject_AsReadBuffer(buffer, &p, &len)
rc = fdpass_send(_getfd(sock), _getfd(file), p, len)
@@
-45,7
+45,7
@@
def fdsend(sock, file, buffer):
def fdrecv(sock, unsigned size):
cdef void *p
cdef buf
def fdrecv(sock, unsigned size):
cdef void *p
cdef buf
- cdef
in
t len
+ cdef
Py_ssize_
t len
cdef PyObject *obj
cdef int fd
buf = PyString_FromStringAndSize(NULL, size)
cdef PyObject *obj
cdef int fd
buf = PyString_FromStringAndSize(NULL, size)