- File:
-
- 1 edited
-
libcfa/src/concurrency/clib/cfathread.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.h
r5e4a830 rc457dc41 9 9 // Author : Thierry Delisle 10 10 // Created On : Tue Sep 22 15:31:20 2020 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Mar 13 23:48:40 202313 // Update Count : 711 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 14 14 // 15 15 16 #pragma once17 18 16 #if defined(__cforall) || defined(__cplusplus) 19 #include <unistd.h>20 #include <errno.h>21 #include <sys/socket.h>22 23 17 extern "C" { 24 18 #endif 19 #include <asm/types.h> 20 #include <errno.h> 21 #include <unistd.h> 22 23 25 24 //-------------------- 26 25 // Basic types … … 74 73 } cfathread_mutexattr_t; 75 74 typedef struct cfathread_mutex * cfathread_mutex_t; 76 int cfathread_mutex_init(cfathread_mutex_t * restrict mut, const cfathread_mutexattr_t *restrict attr) __attribute__((nonnull (1)));75 int cfathread_mutex_init(cfathread_mutex_t *restrict mut, const cfathread_mutexattr_t *restrict attr) __attribute__((nonnull (1))); 77 76 int cfathread_mutex_destroy(cfathread_mutex_t *mut) __attribute__((nonnull (1))); 78 77 int cfathread_mutex_lock(cfathread_mutex_t *mut) __attribute__((nonnull (1))); … … 92 91 //-------------------- 93 92 // IO operations 93 struct sockaddr; 94 struct msghdr; 94 95 int cfathread_socket(int domain, int type, int protocol); 95 int cfathread_bind(int socket, __CONST_SOCKADDR_ARGaddress, socklen_t address_len);96 int cfathread_bind(int socket, const struct sockaddr *address, socklen_t address_len); 96 97 int cfathread_listen(int socket, int backlog); 97 int cfathread_accept(int socket, __SOCKADDR_ARG address, socklen_t *restrict address_len);98 int cfathread_connect(int socket, __CONST_SOCKADDR_ARGaddress, socklen_t address_len);98 int cfathread_accept(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len); 99 int cfathread_connect(int socket, const struct sockaddr *address, socklen_t address_len); 99 100 int cfathread_dup(int fildes); 100 101 int cfathread_close(int fildes);
Note:
See TracChangeset
for help on using the changeset viewer.