*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: bind | Section: 2 | Source: MINIX | File: bind.2
BIND(2) System Calls Manual BIND(2) NAME bind - binds an address to a socket SYNOPSIS #include <sys/socket.h> int bind(int sd, const struct sockaddr * addr, socklen_t addr_len); DESCRIPTION bind() specifies the addr (IP address and port for PF_INET or path for PF_UNIX) to assign to socket sd. RETURN VALUES On success, this function returns 0. On error, -1 is returned and errno is set. ERRORS [ENOSYS] The socket type is not supported by bind(). [EAFNOSUPPORT] The address family is not supported by bind(). [EADDRNOTAVAIL] The address is not available. [ENAMETOOLONG] The sun_path in struct sockaddr_un is too long. [EINVAL] The address is already bound to the socket. [EBADF] The argument sd is not a descriptor. [ENOTSOCK] The argument sd is a descriptor, but not a socket de- scriptor. [EFAULT] The address pointed to by addr is not in a valid part of the process address space. SEE ALSO accept(2), socket(2) BIND(2)

Navigation Options