linux - sendmsg 失败,错误代码为 9

标签 linux ldap

在 Linux 中运行 ldapsearch 实用程序时,“sendmsg”函数失败并出现错误代码 9。错误代码 9 代表什么?手册页未提供有关错误代码的信息。

最佳答案

您可以在此页面中找到所有错误代码。 http://www.virtsync.com/c-error-codes-include-errno .目前我正在采取相同的结果。 “发送”方法有效,但 sendmsg 返回 -1 并且 errno 为 9,这意味着文件编号错误。我仍然不知道问题出在哪里。

#define EBADF        9  /* Bad file number */

关于linux - sendmsg 失败,错误代码为 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10878614/

相关文章:

javax.naming.OperationNotSupportedException 具有 Active Directory 的 Java 应用程序

linux - 解释 shell 脚本代码 "for loop"

c - Windows 注册表解密 (CryptUnprotectData) WPA key

linux - 仅当先前命令成功或仅存在某些文件时才运行的 Shell 脚本

java - 如何删除 ldap java 的所有条目

Grails OpenLDAP 登录失败 : Sorry, 我们无法找到具有该用户名和密码的用户

active-directory - ASP.NET MVC 身份和事件目录

php - ipmitool : get user password

linux - 如何刷新原始 AF_PACKET 套接字以获取正确的过滤数据包

python - 使用 ldap python 启用 Active Directory 用户帐户