Next: posix job, Previous: posix socket, Up: posix [Index]
Interface to the C function getuid(), (libc)getuid. Return a fixnum representing the real user ID of the process.
Interface to the C function getgid(), (libc)getgid. Return a fixnum representing the real group ID of the process.
Interface to the C function geteuid(), (libc)geteuid. Return a fixnum representing the effective user ID of the
process.
Interface to the C function getegid(), (libc)getegid. Return a fixnum representing the effective group ID of the
process.
Interface to the C function getgroups(), (libc)getgroups. Return a list of fixnums representing the
supplementary group IDs of the process; if an error occurs an exception
is raised.
Interface to the C function seteuid(), (libc)seteuid. Set the effective user ID to new-uid, which must be a
fixnum. If successful return unspecified values, else raise an
exception.
Interface to the C function setuid(), (libc)setuid. Set both the real and effective user IDs to new-uid,
which must be a fixnum. If successful return unspecified values, else
raise an exception.
Interface to the C function setreuid(), (libc)setreuid. Set the real user ID to real_uid and the effective
user ID to effective_uid, both the arguments must be fixnums. If
successful return unspecified values, else raise an exception.
Interface to the C function setegid(), (libc)setegid. Set the effective group ID to new-gid, which must be a
fixnum. If successful return unspecified values, else raise an
exception.
Interface to the C function setgid(), (libc)setgid. Set both the real and effective group IDs to new-gid,
which must be a fixnum. If successful return unspecified values, else
raise an exception.
Interface to the C function setregid(), (libc)setregid. Set the real group ID to real_gid and the effective
group ID to effective_gid, both the arguments must be fixnums. If
successful return unspecified values, else raise an exception.
Interface to the C function getlogin(), (libc)getlogin. getlogin returns a bytevector holding the ASCII
coding of the name of the user logged in on the controlling terminal of
the process; getlogin/string returns a string; if the name cannot
be determined: return false.
Scheme level representation of struct passwd. It has the
following fields:
pw_nameBytevector, user login name.
pw_passwdBytevector, encrypted password.
pw_uidFixnum, user ID.
pw_gidFixnum, group ID.
pw_gecosBytevector, user data.
pw_dirBytevector, user’s home directory.
pw_shellBytevector, user’s default shell.
Build and return a new instance of struct-passwd.
Return #t if obj is an instance of struct-passwd.
Accessors for the fields of struct-passwd.
Interface to the C function getpwuid(), (libc)getpwuid. Retrieve informations on the user with identifier uid,
which must be a fixnum. If successful return an instance of
struct-passwd; if a user with such an ID does not exists: return
false.
Interface to the C function getpwnam(), (libc)getpwnam. Retrieve informations on the user with name represented in
ASCII coding in the string or bytevector name. If successful
return an instance of struct-passwd; if a user with such an ID
does not exists: return false.
Interface to the C functions setpwent(), getpwent() and
endpwent(), (libc)setpwent. Iterate the
database of users and return a list of struct-passwd representing
the entries.
Scheme level representation of struct group. It has the
following fields:
gr_nameBytevector, group name.
gr_gidFixnum, group ID.
gr_memList of bytevectors, user names.
Build and return a new instance of struct-group.
Accessors for the fields of struct-group.
Interface to the C function getgrgid(), (libc)getgrgid. Retrieve informations on the group with identifier
gid, which must be a fixnum. If successful return an instance of
struct-group; if a group with such an ID does not exists: return
false.
Interface to the C function getgrnam(), (libc)getgrnam. Retrieve informations on the group with name represented in
ASCII coding in the string or bytevector name. If successful
return an instance of struct-group; if a group with such an ID
does not exists: return false.
Interface to the C functions setgrent(), getgrent() and
endgrent(), (libc)setgrent. Iterate the
database of groups and return a list of struct-group representing
the entries.
Next: posix job, Previous: posix socket, Up: posix [Index]