Skip to content

Commit 56454eb

Browse files
committed
all: Tighten up typecodes for FFI module.
1 parent 4016f06 commit 56454eb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fcntl/fcntl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
libc = ffi.open("libc.so.6")
55

66
fcntl_l = libc.func("i", "fcntl", "iil")
7-
fcntl_s = libc.func("i", "fcntl", "iis")
7+
fcntl_s = libc.func("i", "fcntl", "iip")
88
ioctl_l = libc.func("i", "ioctl", "iil")
9-
ioctl_s = libc.func("i", "ioctl", "iis")
9+
ioctl_s = libc.func("i", "ioctl", "iip")
1010

1111

1212
def fcntl(fd, op, arg):

os/os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
errno = libc.var("i", "errno")
77
mkdir_ = libc.func("i", "mkdir", "si")
8-
read_ = libc.func("i", "read", "iPi")
8+
read_ = libc.func("i", "read", "ipi")
99
write_ = libc.func("i", "write", "iPi")
1010

1111

re-pcre/re.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# int pcre_exec(const pcre *code, const pcre_extra *extra,
1313
# const char *subject, int length, int startoffset,
1414
# int options, int *ovector, int ovecsize);
15-
pcre_exec = pcre.func("i", "pcre_exec", "ppsiiipi")
15+
pcre_exec = pcre.func("i", "pcre_exec", "PPsiiipi")
1616

1717
# int pcre_fullinfo(const pcre *code, const pcre_extra *extra,
1818
# int what, void *where);
19-
pcre_fullinfo = pcre.func("i", "pcre_fullinfo", "ppip")
19+
pcre_fullinfo = pcre.func("i", "pcre_fullinfo", "PPip")
2020

2121

2222
IGNORECASE = I = 1

select/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#int epoll_create(int size);
1010
epoll_create = libc.func("i", "epoll_create", "i")
1111
#int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
12-
epoll_ctl = libc.func("i", "epoll_ctl", "iiip")
12+
epoll_ctl = libc.func("i", "epoll_ctl", "iiiP")
1313
#int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
1414
epoll_wait = libc.func("i", "epoll_wait", "ipii")
1515

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy