1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:37:35 +00:00

Ports: Format patches without numbering, commit hash or version number

This commit is contained in:
Tim Schumacher 2022-06-05 03:05:04 +02:00 committed by Linus Groh
parent d69a79b03b
commit d426c5a4b2
371 changed files with 806 additions and 1884 deletions

View file

@ -1,17 +1,17 @@
From 5ac8ded61c9bcddb7b1df3ad8a23b90a777349bc Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 04:44:26 +0430
Subject: [PATCH 1/7] unix: Stub out {get,set}priority for serenity
Subject: [PATCH] unix: Stub out {get,set}priority for serenity
---
src/unix/core.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/unix/core.c b/src/unix/core.c
index 71e9c52..004a589 100644
index def5b8f..3cdd5fa 100644
--- a/src/unix/core.c
+++ b/src/unix/core.c
@@ -1421,7 +1421,11 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) {
@@ -1423,7 +1423,11 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) {
return UV_EINVAL;
errno = 0;
@ -23,7 +23,7 @@ index 71e9c52..004a589 100644
if (r == -1 && errno != 0)
return UV__ERR(errno);
@@ -1435,8 +1439,10 @@ int uv_os_setpriority(uv_pid_t pid, int priority) {
@@ -1437,8 +1441,10 @@ int uv_os_setpriority(uv_pid_t pid, int priority) {
if (priority < UV_PRIORITY_HIGHEST || priority > UV_PRIORITY_LOW)
return UV_EINVAL;
@ -34,6 +34,3 @@ index 71e9c52..004a589 100644
return 0;
}
--
2.32.0

View file

@ -1,14 +1,14 @@
From a697c23403039b835526011561bbe4182e4d00fc Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 04:56:55 +0430
Subject: [PATCH 2/7] fs: Stub out unsupported syscalls
Subject: [PATCH] fs: Stub out unsupported syscalls
---
src/unix/fs.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/unix/fs.c b/src/unix/fs.c
index eb17fb4..cdc57a7 100644
index b3211ec..dc149e3 100644
--- a/src/unix/fs.c
+++ b/src/unix/fs.c
@@ -88,7 +88,8 @@
@ -21,7 +21,7 @@ index eb17fb4..cdc57a7 100644
# include <sys/statvfs.h>
#else
# include <sys/statfs.h>
@@ -655,7 +656,8 @@ static int uv__fs_statfs(uv_fs_t* req) {
@@ -656,7 +657,8 @@ static int uv__fs_statfs(uv_fs_t* req) {
defined(__MVS__) || \
defined(__NetBSD__) || \
defined(__HAIKU__) || \
@ -31,7 +31,7 @@ index eb17fb4..cdc57a7 100644
struct statvfs buf;
if (0 != statvfs(req->path, &buf))
@@ -677,7 +679,8 @@ static int uv__fs_statfs(uv_fs_t* req) {
@@ -678,7 +680,8 @@ static int uv__fs_statfs(uv_fs_t* req) {
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(__HAIKU__) || \
@ -41,7 +41,7 @@ index eb17fb4..cdc57a7 100644
stat_fs->f_type = 0; /* f_type is not supported. */
#else
stat_fs->f_type = buf.f_type;
@@ -1666,7 +1669,9 @@ static void uv__fs_work(struct uv__work* w) {
@@ -1718,7 +1721,9 @@ static void uv__fs_work(struct uv__work* w) {
X(COPYFILE, uv__fs_copyfile(req));
X(FCHMOD, fchmod(req->file, req->mode));
X(FCHOWN, fchown(req->file, req->uid, req->gid));
@ -51,7 +51,7 @@ index eb17fb4..cdc57a7 100644
X(FDATASYNC, uv__fs_fdatasync(req));
X(FSTAT, uv__fs_fstat(req->file, &req->statbuf));
X(FSYNC, uv__fs_fsync(req));
@@ -1805,7 +1810,9 @@ int uv_fs_lchown(uv_loop_t* loop,
@@ -1857,7 +1862,9 @@ int uv_fs_lchown(uv_loop_t* loop,
uv_uid_t uid,
uv_gid_t gid,
uv_fs_cb cb) {
@ -61,6 +61,3 @@ index eb17fb4..cdc57a7 100644
PATH;
req->uid = uid;
req->gid = gid;
--
2.34.1

View file

@ -1,17 +1,17 @@
From 774eb9413fb32bc3656ddcd9ccb22af3d2083278 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 04:57:31 +0430
Subject: [PATCH 3/7] stream: Don't use AF_INET6
Subject: [PATCH] stream: Don't use AF_INET6
---
src/unix/stream.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/unix/stream.c b/src/unix/stream.c
index f64c01c..96f6417 100644
index 619b625..10cd4f7 100644
--- a/src/unix/stream.c
+++ b/src/unix/stream.c
@@ -995,13 +995,19 @@ uv_handle_type uv__handle_type(int fd) {
@@ -994,13 +994,19 @@ uv_handle_type uv__handle_type(int fd) {
case AF_UNIX:
return UV_NAMED_PIPE;
case AF_INET:
@ -32,6 +32,3 @@ index f64c01c..96f6417 100644
return UV_UDP;
return UV_UNKNOWN_HANDLE;
--
2.32.0

View file

@ -1,14 +1,14 @@
From 91c2345d42459232d958eaf0eba5b10786ac3475 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 04:59:05 +0430
Subject: [PATCH 4/7] tcp: Don't use SO_LINGER
Subject: [PATCH] tcp: Don't use SO_LINGER
---
src/unix/tcp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/unix/tcp.c b/src/unix/tcp.c
index bc0fb66..e78259a 100644
index 789807f..f92af6b 100644
--- a/src/unix/tcp.c
+++ b/src/unix/tcp.c
@@ -313,15 +313,19 @@ int uv_tcp_getpeername(const uv_tcp_t* handle,
@ -31,6 +31,3 @@ index bc0fb66..e78259a 100644
uv_close((uv_handle_t*) handle, close_cb);
return 0;
--
2.32.0

View file

@ -1,17 +1,17 @@
From 1c95dc0ae7732d4389eac1688d3a13ba942f316d Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 05:01:05 +0430
Subject: [PATCH 5/7] build: Add SerenityOS platform definitions
Subject: [PATCH] build: Add SerenityOS platform definitions
---
CMakeLists.txt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de1272a..f30ec26 100644
index ac52412..d285ed9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -356,6 +356,21 @@ if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
@@ -378,6 +378,21 @@ if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
list(APPEND uv_libraries socket)
endif()
@ -33,6 +33,3 @@ index de1272a..f30ec26 100644
if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|Linux|NetBSD|OpenBSD")
list(APPEND uv_test_libraries util)
endif()
--
2.32.0

View file

@ -1,25 +1,22 @@
From b9992fdc37570ae7ca15b50c37ef431289cdc497 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 05:02:01 +0430
Subject: [PATCH 6/7] include: Teach the header about serenity
Subject: [PATCH] include: Teach the header about serenity
---
include/uv/unix.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/uv/unix.h b/include/uv/unix.h
index e3cf7bd..35f1433 100644
index ea37d78..65e3212 100644
--- a/include/uv/unix.h
+++ b/include/uv/unix.h
@@ -71,6 +71,8 @@
# include "uv/posix.h"
#elif defined(__QNX__)
@@ -69,6 +69,8 @@
defined(__QNX__) || \
defined(__GNU__)
# include "uv/posix.h"
+#elif defined(__serenity__)
+# include "uv/posix.h"
#endif
#ifndef NI_MAXHOST
--
2.32.0

View file

@ -1,19 +1,19 @@
From 5c53f32b401baffb4c6dc896ca07beff2add2a42 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Fri, 9 Jul 2021 05:32:00 +0430
Subject: [PATCH 7/7] build: Add platform-specific stubs and implementations
Subject: [PATCH] build: Add platform-specific stubs and implementations
---
CMakeLists.txt | 2 +
src/unix/serenity-core.c | 137 +++++++++++++++++++++++++++++++++++++++
2 files changed, 139 insertions(+)
src/unix/serenity-core.c | 112 +++++++++++++++++++++++++++++++++++++++
2 files changed, 114 insertions(+)
create mode 100644 src/unix/serenity-core.c
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f30ec26..6f0bf0c 100644
index d285ed9..10fbd7f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -365,9 +365,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SerenityOS")
@@ -387,9 +387,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SerenityOS")
src/unix/posix-poll.c
src/unix/no-fsevents.c
src/unix/no-proctitle.c
@ -27,7 +27,7 @@ index f30ec26..6f0bf0c 100644
diff --git a/src/unix/serenity-core.c b/src/unix/serenity-core.c
new file mode 100644
index 0000000..821cf37
index 0000000..4438d15
--- /dev/null
+++ b/src/unix/serenity-core.c
@@ -0,0 +1,112 @@
@ -143,6 +143,3 @@ index 0000000..821cf37
+ *rss = 0;
+ return 0;
+}
--
2.32.0