getnucred man page on Minix

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

GETNUCRED(2)							  GETNUCRED(2)

NAME
       getnucred  -  obtain  the credentials that correspond to the given end‐
       point.

SYNOPSIS
       #include <sys/socket.h>
       #include <unistd.h>

       int getnucred(endpoint_t proc_ep,  struct ucred * ucred);

DESCRIPTION
       Given an endpoint proc_ep, this function will fill in  ucred  with  the
       pid, uid, and gid that correspond to that endpoint.

RETURN VALUES
       On  success,  this  function returns 0 and ucred will be filled in.  On
       error, -1 is returned and errno is set.

ERRORS
       [EFAULT]	      The address pointed to by ucred is not in a  valid  part
		      of  the process address space.  [EPERM] The user calling
		      this function has insufficient privileges. Only  a  user
		      with  an	euid of 0 may call this function.  [ESRCH] The
		      endpoint was not found. This is  caused  by  an  invalid
		      endpoint	or  an	endpoint  for a process that no longer
		      exists.

SEE ALSO
       getpid(2), getuid(2), getgid(2), getnpid(2), getnuid(2), getngid(2)

HISTORY
       This function first appeared in Minix 3.1.8.

								  GETNUCRED(2)
[top]

List of man pages available for Minix

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]
Tweet
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