Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
xt_get_pri..._group_name(3) Library Functions Manual xt_get_pri..._group_name(3)

NAME
     xt_get_primary_group_name() - Get primary groupname of process owner

LIBRARY
     #include <xtend/proc.h>
     -lxtend

SYNOPSIS
     char   *xt_get_primary_group_name(char *primary_group_name, size_t maxlen)

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

DESCRIPTION
     xt_get_primary_group_name()  determines  the  primary  group  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 primary_group_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.

RETURN VALUES
     A pointer to primary_group_name, or NULL upon failure.

SEE ALSO
     getuid(3), getpwuid(3)

						     xt_get_pri..._group_name(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_get_primary_group_name&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help