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
xt_get_user_name(3) FreeBSD Library Functions Manual xt_get_user_name(3)

xt_get_user_name() - Get username of process owner

#include <xtend/proc.h>
-lxtend

char   *xt_get_user_name(char *user_name, size_t maxlen)

user_name:  Character buffer to receive home directory path
maxlen:     Max characters to copy to dir, not including null byte

xt_get_user_name() determines the user name of the process owner. The information is retrieved using a call to getpwuid(3), and copied to the argument "dir".

The name is stored in user_name up to maxlen characters. Note that up to maxlen characters are stored, not including the null terminator, hence the buffer should be at least maxlen+1 bytes long.

A pointer to user_name, or NULL upon failure.

getuid(3), 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 ManDoc.