|
1 |
| -From f76727cfa3db5f15b030a3cdc4535ea1eea31ac4 Mon Sep 17 00:00:00 2001 |
| 1 | +From 5d484b1a17191d7ce795a2d773e4a72d8fc7490e Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Andy-Python-Programmer < [email protected]>
|
3 | 3 | Date: Thu, 10 Feb 2022 19:12:25 +1100
|
4 | 4 | Subject: [PATCH] yes
|
|
10 | 10 | sysdeps/aero/generic/aero.cpp | 12 ++++-
|
11 | 11 | sysdeps/aero/generic/filesystem.cpp | 79 ++++++++++++++++++++++++++---
|
12 | 12 | sysdeps/aero/generic/signals.cpp | 8 ++-
|
13 |
| - sysdeps/aero/generic/sockets.cpp | 38 ++++++++++++++ |
| 13 | + sysdeps/aero/generic/sockets.cpp | 48 ++++++++++++++++++ |
14 | 14 | sysdeps/aero/include/aero/syscall.h | 12 +++++
|
15 |
| - 7 files changed, 141 insertions(+), 13 deletions(-) |
| 15 | + 7 files changed, 151 insertions(+), 13 deletions(-) |
16 | 16 |
|
17 | 17 | diff --git a/.gitignore b/.gitignore
|
18 | 18 | index dbb35e8b..20c8d4c3 100644
|
@@ -210,10 +210,10 @@ index 3527370c..a6f69fff 100644
|
210 | 210 | } // namespace mlibc
|
211 | 211 | \ No newline at end of file
|
212 | 212 | diff --git a/sysdeps/aero/generic/sockets.cpp b/sysdeps/aero/generic/sockets.cpp
|
213 |
| -index e69de29b..c1375859 100644 |
| 213 | +index e69de29b..4e6bd608 100644 |
214 | 214 | --- a/sysdeps/aero/generic/sockets.cpp
|
215 | 215 | +++ b/sysdeps/aero/generic/sockets.cpp
|
216 |
| -@@ -0,0 +1,38 @@ |
| 216 | +@@ -0,0 +1,48 @@ |
217 | 217 | +#include <mlibc/all-sysdeps.hpp>
|
218 | 218 | +#include <mlibc/thread-entry.hpp>
|
219 | 219 | +
|
@@ -251,6 +251,16 @@ index e69de29b..c1375859 100644
|
251 | 251 | +
|
252 | 252 | + return 0;
|
253 | 253 | +}
|
| 254 | ++ |
| 255 | ++int sys_listen(int fd, int backlog) { |
| 256 | ++ auto result = syscall(SYS_LISTEN, fd, backlog); |
| 257 | ++ |
| 258 | ++ if (result < 0) { |
| 259 | ++ return -result; |
| 260 | ++ } |
| 261 | ++ |
| 262 | ++ return 0; |
| 263 | ++} |
254 | 264 | +} // namespace mlibc
|
255 | 265 | diff --git a/sysdeps/aero/include/aero/syscall.h b/sysdeps/aero/include/aero/syscall.h
|
256 | 266 | index 07b1b51b..ef797e40 100644
|
|
0 commit comments