ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



BINDRESVPORT(3)          BSD Library Functions Manual          BINDRESVPORT(3)

NAME
     bindresvport -- bind a socket to a privileged IP port

SYNOPSIS
     #include <sys/types.h>
     include <netinet/in.h>

     int
     bindresvport(int sd, struct sockaddr_in **sin);

DESCRIPTION
     bindresvport() is used to bind a socket descriptor to a privileged IP port, that is, a port number in
     the range 0-1023.  The routine returns 0 if it is successful, otherwise -1 is returned and errno set to
     reflect the cause of the error.

     Only root can bind to a privileged port; this call will fail for any other users.

BSD                            November 22, 1987                           BSD

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.