1BINDRESVPORT(3)            Library Functions Manual            BINDRESVPORT(3)
2
3
4

NAME

6       bindresvport - bind a socket to a privileged IP port
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <netinet/in.h>
11
12       int bindresvport(sd, sin)
13       int sd;
14       struct sockaddr_in ∗sin;
15

DESCRIPTION

17       bindresvport()  is  used to bind a socket descriptor to a privileged IP
18       port, that is, a port number in the range 0-1023.  The routine  returns
19       0  if  it  is  successful,  otherwise  -1  is returned and errno set to
20       reflect the cause of the error.
21
22       Only root can bind to a privileged port; this call will  fail  for  any
23       other users.
24
25
26
27                                  1987-11-22                   BINDRESVPORT(3)
Impressum