Macro: int ENOTDIR A file that isn’t a directory was specified when a directory is required. This is used by the file locking facilities; see File Locks. Macro: int ENOTSOCK A file that isn’t a socket was specified when a socket is required. This operation may also be used to set the process or process group that receives the I/O and asynchronous notification of I/O events via SIGIO. http://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html
Macro: int ENOSPC No space left on device; write operation on a file failed because the disk is full. An out-of-band data transmission mechanism may be supported. For example, trying to mount an ordinary file as a file system in Unix gives this error. This message buffer is shared by all libexplain functions which do not supply a buffer in their argument list.
Only valid on SOCK_DGRAM and SOCK_RAW sockets and currently only implemented for IPv4 and IPv6. Packets are just silently dropped when a device queue overflows.) ENOMEM No memory available. See sendmmsg(2) for information about a Linux-specific system call that can be used to transmit multiple datagrams in a single call. Enxio NOTES top POSIX.1 does not require the inclusion of
mcp_achindra View Public Profile View LQ Blog View Review Entries View HCL Entries Visit mcp_achindra's homepage! Posix Error Codes Having a problem logging in? For sendmsg(), the message is pointed to by the elements of the array msg.msg_iov. http://www.thegeekstuff.com/2010/10/linux-error-codes perror function prints error description in standard error.
In GNU, this error is always synonymous with ENOMEM; you may get one or the other from network operations. Enotsup The maximum control buffer length the kernel can process is limited per socket by the value in /proc/sys/net/core/optmem_max; see socket(7). Return Value On success, these calls return the number of POSIX.1-2001 allows either error to be returned for this case, and does not require these constants to have the same value, so a portable application should check for both possibilities. Related 48Get IP address of an interface on Linux13Find original owning process of a Linux socket1Data is not received correctly from TCP socket using C8What socket error do I get when
In C programming language, return values represents success or failure. http://man7.org/linux/man-pages/man2/socket.2.html Macro: int EADDRINUSE The requested socket address is already in use. Linux Errno Example more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Linux Errno To String Macro: int ENETUNREACH A socket operation failed because the subnet containing the remote host was unreachable.
See Also fcntl(2), getsockopt(2), recv(2), select(2), sendfile(2), sendmmsg(2), shutdown(2), socket(2), write(2), cmsg(3), ip(7), socket(7), tcp(7), udp(7) Referenced By getifaddrs(3), if_nameindex(3), lwres_getaddrinfo(3), pth(3), rtime(3), socketcall(2) Site Search Library linux docs linux man have a peek at these guys infamous41md View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by infamous41md 03-19-2004, 06:15 PM #3 itsme86 Senior Member Registered: Jan 2004 Location: This error means you got lucky and the system noticed; it might just hang. They are recorded in:- /usr/include/asm/errno.h Here is a copy of that file as of Aug 2004 on RedHat 7.3 #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* Errno.h Linux Kernel
The perror function is infinitely useful when dealing with errno (but sadly renders the point of this huge table mute). The only difference between send() and write(2) is the presence of flags. I have been writing the client server code, but still I am unable to communicate. check over here Not the answer you're looking for?
for example for the "getaddrinfo" function i can do this: //Resolve the server address and port result = (struct addrinfo *) calloc(1, sizeof(struct addrinfo)); iResult = getaddrinfo("google.com", DEFAULT_PORT, &hints, &result); if Errno.h Windows The AF_ALG protocol type was added in Linux 2.6.38. Looking up error codes manually is ill advise IMO.
All of them expand into integer constant values. Macro: int ENOTCONN The socket is not connected to anything. Macro: int ENOTEMPTY Directory not empty, where an empty directory was expected. this content The protocol specifies a particular protocol to be used with the socket.
O_EXCL flag is used with O_CREAT, if the file is already exist open call will fail with the proper error number. $ cat fileopen.c #include
darkarcon2015 Linux - Software 4 12-21-2004 11:39 PM isolinux error codes deidre Linux - Newbie 7 02-06-2004 11:50 AM All times are GMT -5. Macro: int ENAMETOOLONG Filename too long (longer than PATH_MAX; see Limits for Files) or host name too long (in gethostname or sethostname; see Host Identification). Macro: int ERPCMISMATCH ??? On error, -1 is returned, and errno is set appropriately.
domain The original domain, exactly as passed to the socket(2) system call. Macro: int ECHILD There are no child processes. For a connectionless socket (for datagram protocols, such as UDP), you get EDESTADDRREQ instead. protocol The original protocol, exactly as passed to the socket(2) system call. explain_message_errno_socket void explain_message_errno_socket(char *message, int message_size, int errnum, int domain, int type, int protocol); The explain_message_errno_socket function may
Macro: int EROFS An attempt was made to modify something on a read-only file system. This error happens on operations that are supposed to manipulate child processes, when there aren’t any processes to manipulate. Macro: int ENOTSUP Not supported. ERRORS top EACCES Permission to create a socket of the specified type and/or protocol is denied.
Normally only a single protocol exists to support a particular socket type within a given protocol family, in which case protocol can be specified as 0. Macro: int EIO Input/output error; usually used for physical read or write errors. domain The original domain, exactly as passed to the socket(2) system call. They are not yet documented.
A temporary resource shortage made an operation impossible.