*** 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: ypconnect | Section: 2 | Source: OpenBSD | File: ypconnect.2
YPCONNECT(2) FreeBSD System Calls Manual YPCONNECT(2) NAME ypconnect - create connected socket to a YP server SYNOPSIS #include <sys/socket.h> int ypconnect(int type); DESCRIPTION The ypconnect() system call creates a pre-connected SOCK_STREAM or SOCK_DGRAM socket to a YP server (either the original ypserv(8) or ypldap(8)) for use by internal library routines. It verifies that the domainname is set, that ypbind(8) has found a server and created an advisory locked binding file, and then creates the connected socket based upon the binding file. This type of socket is restricted in various ways and is not general purpose. ypconnect is only intended for use by internal libc YP functions. RETURN VALUES If successful, ypconnect() returns a non-negative integer, the socket file descriptor. Otherwise, a value of -1 is returned and errno is set to indicate the error. ERRORS ypconnect() will fail if: [EAFNOSUPPORT] The YP subsystem is not active. [EFTYPE] The YP binding file is strange. [EOWNERDEAD] The YP binding file is not locked. YP subsystem is not active. [EMFILE] The per-process descriptor table is full. [ENFILE] The system file table is full. [ENOBUFS] Insufficient resources were available in the system to perform the operation. SEE ALSO connect(2), socket(2), ypbind(8) HISTORY The ypconnect() function first appeared in OpenBSD 7.2. FreeBSD 14.1-RELEASE-p8 July 21, 2022 FreeBSD 14.1-RELEASE-p8

Navigation Options