mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-22 11:34:09 +02:00
deprecate cuserid
* libguile/posix.c: * libguile/posix.h: * libguile/deprecated.h: * libguile/deprecated.c (scm_cuserid): Deprecate cuserid, as it only returns 8 bytes of a user's login. * doc/ref/posix.texi: Remove cuserid from docs.
This commit is contained in:
parent
e75184d5d2
commit
cd28785f79
5 changed files with 35 additions and 37 deletions
|
@ -1112,18 +1112,7 @@ or getgrent respectively.
|
|||
@end deffn
|
||||
|
||||
In addition to the accessor procedures for the user database, the
|
||||
following shortcut procedures are also available.
|
||||
|
||||
@deffn {Scheme Procedure} cuserid
|
||||
@deffnx {C Function} scm_cuserid ()
|
||||
Return a string containing a user name associated with the
|
||||
effective user id of the process. Return @code{#f} if this
|
||||
information cannot be obtained.
|
||||
|
||||
This function has been removed from the latest POSIX specification,
|
||||
Guile provides it only if the system has it. Using @code{(getpwuid
|
||||
(geteuid))} may be a better idea.
|
||||
@end deffn
|
||||
following shortcut procedure is also available.
|
||||
|
||||
@deffn {Scheme Procedure} getlogin
|
||||
@deffnx {C Function} scm_getlogin ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue