syscalls: accept connect listen

This commit is contained in:
Matheus
2024-04-13 20:58:03 -03:00
parent 3e0926cba8
commit 5197cdba2a
12 changed files with 240 additions and 10 deletions
+6
View File
@@ -81,6 +81,7 @@ typedef struct {
#define AT_SYMLINK_NOFOLLOW 0x100
#define AT_EMPTY_PATH 0x1000
#define AF_LOCAL 1
#define AF_INET 2
#define SOCK_STREAM 1
@@ -103,6 +104,11 @@ typedef struct {
uint32_t sin_addr;
} __attribute__((packed)) inaddr_t;
typedef struct {
uint16_t sun_family;
char sun_path[108];
} __attribute__((packed)) unaddr_t;
typedef struct {
void *addr;
size_t len;