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


Manual Reference Pages  -  PRIV_BIND (3)

NAME

priv_bind - bind a privileged port to a socket

CONTENTS

Synopsis
Description
Errors
Files
Bugs
Author

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)
Search for    or go to Top of page |  Section 3 |  Main Index


Unix PRIV_BIND (3) SEPTEMBER 2002

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.