diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:11 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:31:06 +0200 |
commit | ce03504be83ef746720f0f0da3dee28cde9f60b9 (patch) | |
tree | 18347b116a803d357dd96cde34526aa811443002 /auth | |
parent | 12e2e281a5b3ed1c8594677d150c4f34381248a2 (diff) | |
download | hurd-ce03504be83ef746720f0f0da3dee28cde9f60b9.tar.gz hurd-ce03504be83ef746720f0f0da3dee28cde9f60b9.tar.bz2 hurd-ce03504be83ef746720f0f0da3dee28cde9f60b9.zip |
auth: Port to x86_64
Message-Id: <20230508213136.608575-17-bugaevc@gmail.com>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth.c | 29 |
1 files 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; |