cuserid man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

CUSERID(3)		 BSD Library Functions Manual		    CUSERID(3)

     cuserid — get user name associated with effective UID

     Compatibility Library (libcompat, -lcompat)

     #include <stdio.h>

     char *
     cuserid(char *s);

     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.

     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.

     geteuid(2), getpwuid(3)

BSD				April 10, 1995				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net