On GNU/Hurd systems, this error can happen for many calls when the object does not support the particular operation; it is a generic indication that the server knows nothing to do Use the up and down arrow keys to navigate. Macro: int EACCES Permission denied; the file permissions do not allow the attempted operation. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. have a peek here
See Creating a Socket. In BSD and GNU, the number of open files is controlled by a resource limit that can usually be increased. Macro: int EPFNOSUPPORT The socket communications protocol family you requested is not supported. This can mean that the device file was installed incorrectly, or that the physical device is missing or not correctly attached to the computer.
Every library function that returns this error code also generates a SIGPIPE signal; this signal terminates the program if not handled or blocked. Browse other questions tagged c linux sockets or ask your own question. Out-of-band data may also be transmitted as described in send(2) and received as described in recv(2).
Macro: int ENOTSUP Not supported. Generally used to mean that the network is down. 128 ENETUNREACH Network is unreachable. 129 ENETRESET Network dropped connection due to reset. 130 ECONNABORTED Software caused connection abort. 131 ECONNRESET Connection Macro: int ETIMEDOUT A socket operation with a specified timeout received no response during the timeout period. Errno.h Windows Lengthwise or widthwise.
Browse other questions tagged mysql solaris unix-domain-sockets or ask your own question. Posix Error Codes You can convert an errno value to a useful string with the strerror function. Macro: int ENOTTY Inappropriate I/O control operation, such as trying to set terminal modes on an ordinary file. http://www.gnu.org/s/libc/manual/html_node/Error-Codes.html When the network signals an error condition to the protocol module (e.g., using a ICMP message for IP) the pending error flag is set for the socket.
Macro: int EAGAIN Resource temporarily unavailable; the call might work if you try again later. Bad File Number Higher numbers diverge. Error occurred Loading... See Socket Options.
NOTES top POSIX.1 does not require the inclusion of
George Bailey confirms: On my system, the answer was in /usr/include/sys/errno.h: 2=ENOENT 95=ENOTSOCK 146=ECONNREFUSED Note that error numbers up to the mid-twenties tend to be consistent across systems as the error http://crimsonskysoftware.com/linux-errno/unix-socket-error-list.html Join them; it only takes a minute: Sign up Getting error code when creating a socket in Linux up vote 0 down vote favorite I'm doing some socket programming in Linux I have a specific question here, which is about the error code at the end. Using F_SETOWN is equivalent to an ioctl(2) call with the FIOSETOWN or SIOCSPGRP argument. Errno.h In C
Use packet(7) instead. Macro: int EPIPE Broken pipe; there is no process reading from the other end of a pipe. Macro: int ESPIPE Invalid seek operation (such as on a pipe). Check This Out Macro: int EWOULDBLOCK In the GNU C Library, this is another name for EAGAIN (above).
RETURN VALUE top On success, a file descriptor for the new socket is returned. Errno 0 Best way to repair rotted fuel line? However, already the BSD man page promises: "The protocol family generally is the same as the address family", and subsequent standards use AF_* everywhere.
Macro: int EFAULT Bad address; an invalid pointer was detected. Macro: int ETOOMANYREFS ??? Embed Embed this gist in your website. Ebadf PDF EPUB Login Please log in to export content.
The following error codes are defined by the Linux/i386 kernel. According to this: http://linux.die.net/man/2/socket the function returns -1 on failure, and sets errno to the appropriate error number. Macro: int ENOBUFS The kernel’s buffers for I/O operations are all in use. this contact form This error is never generated by GNU/Hurd systems, but it can result from an operation to an NFS server running another operating system.
The only difference is that read(2) calls will return only the amount of data requested, and any data remaining in the arriving packet will be discarded. See getprotoent(3) on how to map protocol name strings to protocol numbers. These options are defined in