user-grp.texi 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @node POSIX users and groups
  2. @section Users and groups
  3. @stindex posix-users
  4. @cindex user ids
  5. @cindex group ids
  6. @dfn{User ids} & @dfn{group ids} are boxed integers that represent Unix
  7. users & groups. Also, every user & group has a corresponding @dfn{user
  8. info} or @dfn{group info} record, which contains miscellaneous
  9. information about the user or group. The procedures in this section
  10. are exported by the structures @code{posix-users} & @code{posix}.
  11. @deffn procedure user-id? object @returns{} boolean
  12. @deffnx procedure user-id=? uid@suba{a} uid@suba{b} @returns{} boolean
  13. @deffnx procedure user-id->integer uid @returns{} integer
  14. @deffnx procedure integer->user-id integer @returns{} uid
  15. @deffnx procedure group-id? object @returns{} boolean
  16. @deffnx procedure group-id=? gid@suba{a} gid@suba{b} @returns{} boolean
  17. @deffnx procedure group-id->integer gid @returns{} integer
  18. @deffnx procedure integer->group-id integer @returns{} gid
  19. @code{User-id?} & @code{group-id?} are the disjoint type predicates for
  20. user & group ids. @code{User-id=?} & @code{group-id=?} test whether
  21. two user or group ids, respectively, are the same, @ie{} whether their
  22. numbers are equal. @code{User-id->integer}, @code{group-id->integer},
  23. @code{integer->user-id}, & @code{integer->group-id} convert between
  24. user or group ids and integers.
  25. @end deffn
  26. @cindex POSIX user info
  27. @cindex POSIX group info
  28. @deffn procedure user-id->user-info uid @returns{} user-info
  29. @deffnx procedure name->user-info string @returns{} user-info
  30. @deffnx procedure group-id->group-info gid @returns{} group-info
  31. @deffnx procedure name->group-info string @returns{} group-info
  32. These provide access for the user or group info records that correspond
  33. with the given user or group ids or names.
  34. @end deffn
  35. @deffn procedure user-info? object @returns{} boolean
  36. @deffnx procedure user-info-name user-info @returns{} string
  37. @deffnx procedure user-info-id user-info @returns{} user-id
  38. @deffnx procedure user-info-group user-info @returns{} group-id
  39. @deffnx procedure user-info-home-directory user-info @returns{} string
  40. @deffnx procedure user-info-shell user-info @returns{} string
  41. @deffnx procedure group-info? object @returns{} boolean
  42. @deffnx procedure group-info-name group-info @returns{} string
  43. @deffnx procedure group-info-id group-info @returns{} group-id
  44. @deffnx procedure group-info-members group-info @returns{} user-id-list
  45. @code{User-info?} & @code{group-info?} are the disjoint type predicates
  46. for user info & group info records. The others are accessors for the
  47. various data available in those records.
  48. @end deffn