错误取自man bind
ENOTSOCK // sockfd is a descriptor for a file, not a socket. The following errors are specific to UNIX domain (AF_UNIX) sockets:
EFAULT // addr points outside the user's accessible address space.
ELOOP // Too many symbolic links were encountered in resolving addr.
ENOENT // The file does not exist.
ENOTDIR // A component of the path prefix is not a directory.
EROFS// The socket inode would reside on a read-only file system.
特别是我无法理解 ELOOP、ENOENT、ENOTDIR、EROFS 何时会发生。这是否与一些特殊的文件系统(如 nfs 等)有关?