priv_bind man page on DragonFly

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

PRIV_BIND(3)			  Subroutines			  PRIV_BIND(3)

NAME
       priv_bind - bind a privileged port to a socket

SYNOPSIS
       #include <privman.h>

       int priv_bind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen);

DESCRIPTION
       priv_bind  gives	 the socket sockfd the local address my_addr.  my_addr
       is addrlen bytes long. Traditionally, this is called "assigning a  name
       to  a  socket."	See bind(2) for more details, as this method parallels
       bind(2).

RETURN VALUE
       On success, zero is returned.  On error, -1 is returned	and  errno  is
       set appropriately.

ERRORS
       See  bind(2)  for  more detail. In addition to the errors listed there,
       priv_bind may set errno to EPERM if the	port  is  not  listed  in  the
       application's Privman configuration file.

FILES
       ${prefix}/etc/privman.d/appname
	      The application's configuration file.  See privman_conf(5)

BUGS
       priv_bind only supports IPv4

AUTHOR
       Network Associates. Send email to <privman@nailabs.com>

SEE ALSO
       priv_daemon(3)  priv_execve(3) priv_fopen(3) priv_wait4(3) priv_fork(3)
       priv_init(3) privman_conf(5) priv_open(3)  priv_pam(3)  priv_rerunas(3)
       priv_respawn_as(3) privman(7)

Unix				SEPTEMBER 2002			  PRIV_BIND(3)
[top]

List of man pages available for DragonFly

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