Changeset f5f2768 for libcfa/src/concurrency/io/call.cfa.in
- Timestamp:
- Feb 16, 2023, 4:37:25 PM (17 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- fbdfcd8
- Parents:
- 1c80f20
- git-author:
- Peter A. Buhr <pabuhr@…> (02/16/23 16:34:37)
- git-committer:
- Peter A. Buhr <pabuhr@…> (02/16/23 16:37:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/call.cfa.in
r1c80f20 rf5f2768 31 31 Prelude = """#define __cforall_thread__ 32 32 33 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG 34 #include <unistd.h> 35 #include <errno.h> 36 #include <time.hfa> 37 33 38 #include "bits/defs.hfa" 34 39 #include "kernel.hfa" … … 43 48 #include <assert.h> 44 49 #include <stdint.h> 45 #include <errno.h>46 50 #include <linux/io_uring.h> 47 48 51 #include "kernel/fwd.hfa" 49 52 … … 82 85 // I/O Forwards 83 86 //============================================================================================= 84 #include <time.hfa>85 86 // Some forward declarations87 #include <errno.h>88 #include <unistd.h>89 87 90 88 extern "C" { 91 #include <asm/types.h>92 #include <sys/socket.h>93 #include <sys/syscall.h>94 95 89 #if defined(CFA_HAVE_PREADV2) 96 90 struct iovec; … … 118 112 extern ssize_t send(int sockfd, const void *buf, size_t len, int flags); 119 113 extern ssize_t recv(int sockfd, void *buf, size_t len, int flags); 120 extern int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);121 extern int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);122 114 123 115 extern int fallocate(int fd, int mode, off_t offset, off_t len); … … 292 284 }), 293 285 # CFA_HAVE_IORING_OP_ACCEPT 294 Call('ACCEPT', 'int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)', {286 Call('ACCEPT', 'int accept4(int sockfd, __SOCKADDR_ARG addr, socklen_t * restrict addrlen, int flags)', { 295 287 'fd': 'sockfd', 296 288 'addr': '(uintptr_t)addr', … … 299 291 }), 300 292 # CFA_HAVE_IORING_OP_CONNECT 301 Call('CONNECT', 'int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)', {293 Call('CONNECT', 'int connect(int sockfd, __CONST_SOCKADDR_ARG addr, socklen_t addrlen)', { 302 294 'fd': 'sockfd', 303 295 'addr': '(uintptr_t)addr',
Note: See TracChangeset
for help on using the changeset viewer.