[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/41] auth: Port to x86_64
From: |
Sergey Bugaev |
Subject: |
[PATCH 16/41] auth: Port to x86_64 |
Date: |
Tue, 9 May 2023 00:31:11 +0300 |
---
auth/auth.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/auth/auth.c b/auth/auth.c
index 925f790f..761185a8 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -79,7 +79,8 @@ destroy_authhandle (void *p)
/* id management. */
static inline void
-idvec_copyout (struct idvec *idvec, uid_t **ids, size_t *nids)
+idvec_copyout (struct idvec *idvec, uid_t **ids,
+ mach_msg_type_number_t *nids)
{
if (idvec->num > *nids)
*ids = idvec->ids;
@@ -96,13 +97,13 @@ idvec_copyout (struct idvec *idvec, uid_t **ids, size_t
*nids)
kern_return_t
S_auth_getids (struct authhandle *auth,
uid_t **euids,
- size_t *neuids,
+ mach_msg_type_number_t *neuids,
uid_t **auids,
- size_t *nauids,
+ mach_msg_type_number_t *nauids,
uid_t **egids,
- size_t *negids,
+ mach_msg_type_number_t *negids,
uid_t **agids,
- size_t *nagids)
+ mach_msg_type_number_t *nagids)
{
if (! auth)
return EOPNOTSUPP;
@@ -115,11 +116,11 @@ S_auth_getids (struct authhandle *auth,
/* Implement auth_makeauth as described in <hurd/auth.defs>. */
kern_return_t
S_auth_makeauth (struct authhandle *auth,
- const mach_port_t *authpts, size_t nauths,
- const uid_t *euids, size_t neuids,
- const uid_t *auids, size_t nauids,
- const uid_t *egids, size_t negids,
- const uid_t *agids, size_t nagids,
+ const mach_port_t *authpts, mach_msg_type_number_t nauths,
+ const uid_t *euids, mach_msg_type_number_t neuids,
+ const uid_t *auids, mach_msg_type_number_t nauids,
+ const uid_t *egids, mach_msg_type_number_t negids,
+ const uid_t *agids, mach_msg_type_number_t nagids,
mach_port_t *newhandle)
{
struct authhandle *newauth, *auths[1 + nauths];
@@ -366,13 +367,13 @@ S_auth_server_authenticate (struct authhandle *serverauth,
mach_port_t newport,
mach_msg_type_name_t newport_type,
uid_t **euids,
- size_t *neuids,
+ mach_msg_type_number_t *neuids,
uid_t **auids,
- size_t *nauids,
+ mach_msg_type_number_t *nauids,
uid_t **egids,
- size_t *negids,
+ mach_msg_type_number_t *negids,
uid_t **agids,
- size_t *nagids)
+ mach_msg_type_number_t *nagids)
{
struct pending_user *u;
struct authhandle *user;
--
2.40.1
- [PATCH 10/41] libpipe: Fix use-after-realloc, (continued)
- [PATCH 11/41] libps: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 32/41] tmpfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 29/41] pflocal: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 14/41] utils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 17/41] proc: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 16/41] auth: Port to x86_64,
Sergey Bugaev <=
- [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