rresvport man page on OSF1

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

rresvport(3)							  rresvport(3)

NAME
       rresvport - Retrieve a socket with a privileged address

SYNOPSIS
       #include <unistd.h>

       int rresvport(
	       int *port );

LIBRARY
       Standard C Library (libc)

PARAMETERS
       Specifies the port to use for the connection.

DESCRIPTION
       The  rresvport()	 function  obtains  a socket with a privileged address
       bound to the socket.  A privileged Internet port is one that  falls  in
       the range of 0 to 1023.

       Only  processes	with  an  effective user ID of root can use the rresv‐
       port() function.	 An authentication scheme based on remote port numbers
       is used to verify permissions.

       If  the	connection  succeeds,  a socket in the Internet domain of type
       SOCK_STREAM is returned to the calling process.

RETURN VALUES
       Upon successful completion, the rresvport() function returns  a	valid,
       bound socket descriptor. Otherwise, a value of -1 is returned and errno
       is set to indicate the error.

ERRORS
       If the rresvport() function fails, errno may be set to one of the  fol‐
       lowing  values:	All  network  ports  are in use.  The addresses in the
       specified address family cannot be used with this socket.  Two  hundred
       (200)  file  descriptors	 are currently open.  The system file table is
       full.  Insufficient buffers are available in the system to complete the
       function.

FILES
       Contains the service names.

SEE ALSO
       Functions: rcmd(3), ruserok(3)

								  rresvport(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

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