f-stack/adapter/syscall/ff_adapter.h

24 lines
534 B
C
Raw Normal View History

2023-04-06 07:02:39 +00:00
#ifndef _FF_ADAPTER_H
#define _FF_ADAPTER_H
/* socket.h */
//#define SOCK_CLOEXEC 0x10000000
//#define SOCK_NONBLOCK 0x20000000
#define SOCK_FSTACK 0x01000000
#define SOCK_KERNEL 0x02000000
int ff_adapter_init();
//int __attribute__((constructor)) ff_adapter_init(int argc, char * const argv[]);
void alarm_event_sem();
2023-04-06 07:02:39 +00:00
/*-
* Verify whether the socket is supported by fstack or not.
*/
int fstack_territory(int domain, int type, int protocol);
/* Tell whether a 'sockfd' belongs to fstack. */
int is_fstack_fd(int fd);
#endif