mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
d26d7ae0e4
Building o//third_party/python now takes 5 seconds on my PC This change works towards modifying Python to use runtime dispatching when appropriate. For example, when loading the magnums in the socket module, it's a good idea to check if the magnum is zero, because that means the local system platform doesn't support it.
29 lines
614 B
C
29 lines
614 B
C
#ifndef COSMOPOLITAN_LIBC_SOCK_ALG_H_
|
|
#define COSMOPOLITAN_LIBC_SOCK_ALG_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
struct sockaddr_alg {
|
|
uint16_t salg_family;
|
|
uint8_t salg_type[14];
|
|
uint32_t salg_feat;
|
|
uint32_t salg_mask;
|
|
uint8_t salg_name[64];
|
|
};
|
|
|
|
struct sockaddr_alg_new {
|
|
uint16_t salg_family;
|
|
uint8_t salg_type[14];
|
|
uint32_t salg_feat;
|
|
uint32_t salg_mask;
|
|
uint8_t salg_name[]; /* Linux v4.12+ */
|
|
};
|
|
|
|
struct af_alg_iv {
|
|
uint32_t ivlen;
|
|
uint8_t iv[0];
|
|
};
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_SOCK_ALG_H_ */
|