GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CUSERID (3)

NAME

cuserid - get user name associated with effective UID

CONTENTS

Library
Synopsis
Description
Return Values
See Also

LIBRARY


.Lb libcompat

SYNOPSIS


.In stdio.h char * cuserid char *s

DESCRIPTION


.Bf -symbolic The cuserid function is made obsolete by getpwuid(3).
.Ef

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
.In stdio.h .

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

RETURN VALUES

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

geteuid(2), getpwuid(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.