*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> cap_bind (3n)              
Title
Content
Arch
Section
 

Contents


CAP_BIND(3N)							  CAP_BIND(3N)


NAME    [Toc]    [Back]

     cap_bind -	bind a privileged name to a socket

SYNOPSIS    [Toc]    [Back]

     #include <cap_net.h>

     int cap_bind(int s, const struct sockaddr *name,
		  int namelen);

DESCRIPTION    [Toc]    [Back]

     cap_bind asserts appropriate privilege when assigning a name to a socket.
     This is necessary when a process wishes to	bind an	Internet Domain	socket
     to	a port whose numeric value is less than	1024, for example.

     If	_POSIX_CAP is in effect, a process calling this	function should	have
     CAP_PRIV_PORT capability in the permitted vector of its capability	set.

RETURN VALUES    [Toc]    [Back]

     cap_bind returns 0	if successful, -1 otherwise.

ERRORS    [Toc]    [Back]

     cap_bind has the same error codes as bind(2).

SEE ALSO    [Toc]    [Back]

      
      
     capability(4), bind(2), sysconf(3c).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
bindresvport_sa FreeBSD bind a socket to a privileged IP port
bindresvport OpenBSD bind a socket to a privileged IP port
bindresvport Tru64 Bind a socket to a privileged IP port
bindresvport Linux bind a socket to a privileged IP port
bindresvport_sa OpenBSD bind a socket to a privileged IP port
bindresvport_sa NetBSD bind a socket to a privileged IP port
bindresvport FreeBSD bind a socket to a privileged IP port
bindresvport NetBSD bind a socket to a privileged IP port
rresvport_af Tru64 Retrieve a socket with a privileged address
rresvport Tru64 Retrieve a socket with a privileged address
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service