Changeset 640b3df for libcfa/src/concurrency/clib/cfathread.cfa
- Timestamp:
- Feb 21, 2023, 4:24:34 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 257a8f5, ce44c5f
- Parents:
- 1180175 (diff), 9a533ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
r1180175 r640b3df 16 16 // #define EPOLL_FOR_SOCKETS 17 17 18 #include <sys/socket.h> // first include because of anonymous types __SOCKADDR_ARG, __CONST_SOCKADDR_ARG 19 #include <string.h> 20 #include <errno.h> 21 18 22 #include "fstream.hfa" 19 23 #include "locks.hfa" … … 26 30 #include "cfathread.h" 27 31 28 extern "C" {29 #include <string.h>30 #include <errno.h>31 }32 33 32 extern void ?{}(processor &, const char[], cluster &, thread$ *); 34 33 extern "C" { 35 extern void __cfactx_invoke_thread(void (*main)(void *), void * this); 36 extern int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags); 34 extern void __cfactx_invoke_thread(void (*main)(void *), void * this); 37 35 } 38 36 … … 472 470 } 473 471 472 #include <unistd.h> 473 474 474 #include <iofwd.hfa> 475 475 476 476 extern "C" { 477 #include <unistd.h>478 #include <sys/types.h>479 #include <sys/socket.h>480 481 477 //-------------------- 482 478 // IO operations … … 488 484 , protocol); 489 485 } 490 int cfathread_bind(int socket, const struct sockaddr *address, socklen_t address_len) {486 int cfathread_bind(int socket, __CONST_SOCKADDR_ARG address, socklen_t address_len) { 491 487 return bind(socket, address, address_len); 492 488 } … … 496 492 } 497 493 498 int cfathread_accept(int socket, struct sockaddr *restrictaddress, socklen_t *restrict address_len) {494 int cfathread_accept(int socket, __SOCKADDR_ARG address, socklen_t *restrict address_len) { 499 495 #if defined(EPOLL_FOR_SOCKETS) 500 496 int ret; … … 513 509 } 514 510 515 int cfathread_connect(int socket, const struct sockaddr *address, socklen_t address_len) {511 int cfathread_connect(int socket, __CONST_SOCKADDR_ARG address, socklen_t address_len) { 516 512 #if defined(EPOLL_FOR_SOCKETS) 517 513 int ret;
Note:
See TracChangeset
for help on using the changeset viewer.