[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 30/41] startup: Port to x86_64
From: |
Sergey Bugaev |
Subject: |
[PATCH 30/41] startup: Port to x86_64 |
Date: |
Tue, 9 May 2023 00:31:25 +0300 |
---
startup/startup.c | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/startup/startup.c b/startup/startup.c
index fd7503f4..feb7d265 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -266,7 +266,7 @@ reboot_system (int flags)
if (fakeboot)
{
pid_t *pp;
- size_t npids = 0;
+ mach_msg_type_number_t npids = 0;
error_t err;
int ind;
@@ -296,9 +296,9 @@ reboot_system (int flags)
if (task != mach_task_self () && task != proctask)
{
struct procinfo *pi = 0;
- size_t pisize = 0;
+ mach_msg_type_number_t pisize = 0;
char *noise;
- size_t noise_len = 0;
+ mach_msg_type_number_t noise_len = 0;
int flags;
err = proc_getprocinfo (procserver, pp[ind], &flags,
(int **)&pi, &pisize,
@@ -1030,7 +1030,7 @@ dump_processes (void)
for (pid = 1; pid < 100; pid++)
{
char args[256], *buffer = args;
- size_t len = sizeof args;
+ mach_msg_type_number_t len = sizeof args;
if (proc_getprocargs (procserver, pid, &buffer, &len) == 0)
{
fprintf (stderr, "pid%d\t%s\n", (int) pid, buffer);
@@ -1877,8 +1877,10 @@ S_msg_report_wait (mach_port_t process, thread_t thread,
error_t
S_fsys_getroot (mach_port_t fsys_t,
mach_port_t dotdotnode,
- const id_t *uids, size_t nuids,
- const id_t *gids, size_t ngids,
+ const id_t *uids,
+ mach_msg_type_number_t nuids,
+ const id_t *gids,
+ mach_msg_type_number_t ngids,
int flags,
retry_type *do_retry,
string_t retry_name,
@@ -1943,8 +1945,10 @@ error_t
S_io_restrict_auth (mach_port_t server,
mach_port_t *newport,
mach_msg_type_name_t *newporttype,
- const uid_t *uids, size_t nuids,
- const uid_t *gids, size_t ngids)
+ const uid_t *uids,
+ mach_msg_type_number_t nuids,
+ const uid_t *gids,
+ mach_msg_type_number_t ngids)
{
struct idvec user = { (uid_t*) uids, (unsigned) nuids, (unsigned) nuids };
--
2.40.1
- [PATCH 26/41] boot: Fix use-after-realloc, (continued)
- [PATCH 26/41] boot: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 20/41] elfcore: Add support for saving x86_64 registers, Sergey Bugaev, 2023/05/08
- [PATCH 22/41] sutils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 35/41] procfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 41/41] Style tweaks, Sergey Bugaev, 2023/05/08
- [PATCH 34/41] ext2fs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 33/41] fatfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 21/41] sutils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 27/41] boot: Port to x64_64, Sergey Bugaev, 2023/05/08
- [PATCH 37/41] console-client: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 30/41] startup: Port to x86_64,
Sergey Bugaev <=
- [PATCH 15/41] utils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 18/41] proc: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 31/41] mach-defpager: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 38/41] trans: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 19/41] exec: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 25/41] daemons: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 40/41] Disable Linux-based pfinet on x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 23/41] storeio: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 24/41] devnode: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 39/41] Look for mach_i386 in mach/machine/, Sergey Bugaev, 2023/05/08