mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Make improvements
- Clean up sigaction() code - Add a port scanner example - Introduce a ParseCidr() API - Clean up our futex abstraction code - Fix a harmless integer overflow in ParseIp() - Use kernel semaphores on NetBSD to make threads much faster
This commit is contained in:
parent
539bddce8c
commit
c995838e5c
107 changed files with 1085 additions and 492 deletions
|
@ -25,6 +25,13 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct Cidr {
|
||||
int64_t addr;
|
||||
int cidr;
|
||||
};
|
||||
|
||||
int64_t ParseIp(const char *, size_t);
|
||||
struct Cidr ParseCidr(const char *, size_t);
|
||||
bool IsDodIp(uint32_t);
|
||||
bool IsArinIp(uint32_t);
|
||||
bool IsRipeIp(uint32_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue