Raymond Toy pushed to branch issue-393-os-common-getpwuid at cmucl / cmucl
Commits:
-
52a47a38
by Raymond Toy at 2025-03-30T08:31:56-07:00
1 changed file:
Changes:
... | ... | @@ -2419,7 +2419,7 @@ |
2419 | 2419 | ;; The C structure that is returned by os_getpwuid containing the info
|
2420 | 2420 | ;; that we use to fill the user-info object.
|
2421 | 2421 | (def-alien-type nil
|
2422 | - (struct os-unix-info
|
|
2422 | + (struct os-user-info
|
|
2423 | 2423 | (pw-name (* char)) ; user's login name
|
2424 | 2424 | (pw-passwd (* char)) ; no longer used
|
2425 | 2425 | (pw-uid uid-t) ; user id
|
... | ... | @@ -2535,7 +2535,7 @@ |
2535 | 2535 | of the failure. In particular, if the second value is 0 (or
|
2536 | 2536 | ENONENT, ESRCH, EBADF, etc.), then the uid was not found."
|
2537 | 2537 | (declare (type unix-uid uid))
|
2538 | - (with-alien ((result (* (struct passwd))))
|
|
2538 | + (with-alien ((result (* (struct os-user-info))))
|
|
2539 | 2539 | (let (result)
|
2540 | 2540 | (unwind-protect
|
2541 | 2541 | (progn
|
... | ... | @@ -2547,7 +2547,7 @@ |
2547 | 2547 | (declare (optimize (ext:inhibit-warnings 3)))
|
2548 | 2548 | (alien-funcall
|
2549 | 2549 | (extern-alien "os_getpwuid"
|
2550 | - (function (* (struct passwd))
|
|
2550 | + (function (* (struct os-user-info))
|
|
2551 | 2551 | uid-t))
|
2552 | 2552 | uid)))
|
2553 | 2553 | (if (null-alien result)
|
... | ... | @@ -2573,7 +2573,7 @@ |
2573 | 2573 | (alien-funcall
|
2574 | 2574 | (extern-alien "os_free_getpwuid"
|
2575 | 2575 | (function c-call:void
|
2576 | - (* (struct passwd))))
|
|
2576 | + (* (struct os-user-info))))
|
|
2577 | 2577 | result))))))
|
2578 | 2578 | |
2579 | 2579 |