*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> cuserid (3)              
Title
Content
Arch
Section
 

CUSERID(3)

Contents


NAME    [Toc]    [Back]

     cuserid -- get user name associated with effective UID

LIBRARY    [Toc]    [Back]

     Compatibility Library (libcompat, -lcompat)

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>

     char *
     cuserid(char *s);

DESCRIPTION    [Toc]    [Back]

     The cuserid() function is made obsolete by getpwuid(3).

     The function cuserid() gets the user name associated with the effective
     UID of the current process.  If the argument s is non-NULL, the name is
     copied to the buffer it points to, and that address is being returned.
     This buffer must provide space for at least L_cuserid characters.	The
     L_cuserid constant is defined in <stdio.h>.

     If s is NULL, an internal array is used and its address will be returned.

RETURN VALUES    [Toc]    [Back]

     The cuserid() function returns the address of an array in which the name
     has been stored.

     If the name associated with the effective UID of the current process
     could not be found, either a null pointer will be returned, or (if s is
     non-NULL) the buffer s will be filled with a null string.

SEE ALSO    [Toc]    [Back]

      
      
     geteuid(2), getpwuid(3)


FreeBSD 5.2.1			April 10, 1995			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pxfgeteuid IRIX Gets effective user ID
whoami OpenBSD display effective user ID
setreuid OpenBSD set real and effective user IDs
geteuid Tru64 Get the real or effective user ID
whoami FreeBSD display effective user id
setreuid HP-UX set real and effective user IDs
seteuid Linux set effective user or group ID
getuid Tru64 Get the real or effective user ID
setreuid Tru64 Set real and effective user IDs
setreuid NetBSD set real and effective user ID's
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service