Skip to content

Commit bb74d6b

Browse files
crosser-ionoscrosser
authored andcommitted
Typedef for __kernel_sa_family_t in _fake_typedefs.h
This typedef that exists in the real `linux/socket.h` is masked by the `fake_libc_include` hierarchy. Having it in place allows to successfully parse a large number of Linux kernel headers necessary for netlink operations. This is very useful for Python projects that communicate with the kernel over netlink socket. In particular, this project: https://github.com/ionos-cloud/netlinklib/tree/main/netlinklib plans to use pyparser for parsing strcts defined in the kernel headers. Signed-off-by: Eugene Crosser <crosser@average.org>
1 parent 90184f1 commit bb74d6b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

utils/fake_libc_include/_fake_typedefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,6 @@ typedef enum memory_order {
231231
memory_order_acq_rel,
232232
memory_order_seq_cst
233233
} memory_order;
234+
typedef unsigned short __kernel_sa_family_t;
234235

235236
#endif

0 commit comments

Comments
 (0)