明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4489|回复: 6

errno 含义表集(期待中文翻译)

[复制链接]
发表于 2011-12-17 10:19:11 | 显示全部楼层 |阅读模式
errno.00 is: Success
errno.01 is: Operation not permitted
errno.02 is: No such file or directory
errno.03 is: No such process
errno.04 is: Interrupted system call
errno.05 is: Input/output error
errno.06 is: No such device or address
errno.07 is: Argument list too long
errno.08 is: Exec format error
errno.09 is: Bad file descriptor
errno.10 is: No child processes
errno.11 is: Resource temporarily unavailable
errno.12 is: Cannot allocate memory
errno.13 is: Permission denied
errno.14 is: Bad address
errno.15 is: Block device required
errno.16 is: Device or resource busy
errno.17 is: File exists
errno.18 is: Invalid cross-device link
errno.19 is: No such device
errno.20 is: Not a directory
errno.21 is: Is a directory
errno.22 is: Invalid argument
errno.23 is: Too many open files in system
errno.24 is: Too many open files
errno.25 is: Inappropriate ioctl for device
errno.26 is: Text file busy
errno.27 is: File too large
errno.28 is: No space left on device
errno.29 is: Illegal seek
errno.30 is: Read-only file system
errno.31 is: Too many links
errno.32 is: Broken pipe
errno.33 is: Numerical argument out of domain
errno.34 is: Numerical result out of range
errno.35 is: Resource deadlock avoided
errno.36 is: File name too long
errno.37 is: No locks available
errno.38 is: Function not implemented
errno.39 is: Directory not empty
errno.40 is: Too many levels of symbolic links
errno.41 is: Unknown error 41
errno.42 is: No message of desired type
errno.43 is: Identifier removed
errno.44 is: Channel number out of range
errno.45 is: Level 2 not synchronized
errno.46 is: Level 3 halted
errno.47 is: Level 3 reset
errno.48 is: Link number out of range
errno.49 is: Protocol driver not attached
errno.50 is: No CSI structure available
errno.51 is: Level 2 halted
errno.52 is: Invalid exchange
errno.53 is: Invalid request descriptor
errno.54 is: Exchange full
errno.55 is: No anode
errno.56 is: Invalid request code
errno.57 is: Invalid slot
errno.58 is: Unknown error 58
errno.59 is: Bad font file format
errno.60 is: Device not a stream
errno.61 is: No data available
errno.62 is: Timer expired
errno.63 is: Out of streams resources
errno.64 is: Machine is not on the network
errno.65 is: Package not installed
errno.66 is: Object is remote
errno.67 is: Link has been severed
errno.68 is: Advertise error
errno.69 is: Srmount error
errno.70 is: Communication error on send
errno.71 is: Protocol error
errno.72 is: Multihop attempted
errno.73 is: RFS specific error
errno.74 is: Bad message
errno.75 is: Value too large for defined data type
errno.76 is: Name not unique on network
errno.77 is: File descriptor in bad state
errno.78 is: Remote address changed
errno.79 is: Can not access a needed shared library
errno.80 is: Accessing a corrupted shared library
errno.81 is: .lib section in a.out corrupted
errno.82 is: Attempting to link in too many shared libraries
errno.83 is: Cannot exec a shared library directly
errno.84 is: Invalid or incomplete multibyte or wide character
errno.85 is: Interrupted system call should be restarted
errno.86 is: Streams pipe error
errno.87 is: Too many users
errno.88 is: Socket operation on non-socket
errno.89 is: Destination address required
errno.90 is: Message too long
errno.91 is: Protocol wrong type for socket
errno.92 is: Protocol not available
errno.93 is: Protocol not supported
errno.94 is: Socket type not supported
errno.95 is: Operation not supported
errno.96 is: Protocol family not supported
errno.97 is: Address family not supported by protocol
errno.98 is: Address already in use
errno.99 is: Cannot assign requested address
errno.100 is: Network is down
errno.101 is: Network is unreachable
errno.102 is: Network dropped connection on reset
errno.103 is: Software caused connection abort
errno.104 is: Connection reset by peer
errno.105 is: No buffer space available
errno.106 is: Transport endpoint is already connected
errno.107 is: Transport endpoint is not connected
errno.108 is: Cannot send after transport endpoint shutdown
errno.109 is: Too many references: cannot splice
errno.110 is: Connection timed out
errno.111 is: Connection refused
errno.112 is: Host is down
errno.113 is: No route to host
errno.114 is: Operation already in progress
errno.115 is: Operation now in progress
errno.116 is: Stale NFS file handle
errno.117 is: Structure needs cleaning
errno.118 is: Not a XENIX named type file
errno.119 is: No XENIX semaphores available
errno.120 is: Is a named type file
errno.121 is: Remote I/O error
errno.122 is: Disk quota exceeded
errno.123 is: No medium found
errno.124 is: Wrong medium type
errno.125 is: Operation canceled
errno.126 is: Required key not available
errno.127 is: Key has expired
errno.128 is: Key has been revoked
errno.129 is: Key was rejected by service
errno.130 is: Owner died
errno.131 is: State not recoverable
errno.132 is: Unknown error 132
132-255全是Unknown error

该贴已经同步到 【KAIXIN】的微博
"觉得好,就打赏"
还没有人打赏,支持一下
 楼主| 发表于 2011-12-17 10:20:23 | 显示全部楼层
下面是狂刀程序的启发
  1.     ;;ERRNO变量的使用源自狂刀程序的启发
  2. (defun C:KKK (/ TXTEN ERN ENT)
  3.   (while (not TXTEN)
  4.     (setvar 'ERRNO 0)
  5.     (setq TXTEN (entsel "\n选择单行文字: ")
  6.           ERN   (getvar 'ERRNO)
  7.     )
  8.     (cond
  9.       ((= ERN 7)   ;选择为空
  10.        (princ "\n未选择对象。")
  11.       )
  12.       ((= ERN 52)   ;用户输入ENTER
  13.        (setq TXTEN T)   ;满足while退出条件
  14.       )
  15.       ((if (and (setq TXTEN (car TXTEN)
  16.                       ENT   (entget TXTEN)
  17.                 )
  18.                 (/= (cdr (assoc 0 ENT)) "TEXT")
  19.            )
  20.          (progn
  21.            (princ "\n选定的对象不是单行文字。")
  22.            (setq TXTEN nil)   ;确保while继续
  23.          )
  24.        )
  25.       )
  26.     )
  27.   )
  28.   (if (and TXTEN (/= TXTEN T))
  29.     (alert "\n单行文字选择完成")
  30.   ))
发表于 2011-12-17 10:27:11 | 显示全部楼层
看不懂~~~~~~~~~~~~
发表于 2011-12-17 10:36:11 | 显示全部楼层
我是来顶“开心”的
发表于 2011-12-17 10:40:52 | 显示全部楼层
本帖最后由 Gu_xl 于 2011-12-17 10:41 编辑

以下是中文翻译:
  1. ERRNO
  2. (只读)
  3. 类型:整数
  4. 不被保存
  5. 初始值: 0
  6. 当 AutoCAD 探测出一个 AutoLISP 函数访问导致的错误时,显示其适当的错误编号。AutoLISP 应用程序可用 (getar “errno”) 来检验 ERRNO 的当前值。
  7. ERRNO 系统变量并不总是被清为零。除非在 AutoLISP 函数发现错误之后立即检查该变量,否则代码值所指示的错误可能会引起误解。在启动或打开一个图形时,该变量被清为零。

  8. 注意 变量 ERRNO 的可能值及其含义,在 AutoCAD 的后续版本中可能会发生变化。
  9. 联机程序错误代码
  10. 值含义
  11. 0 没有错误
  12. 1 符号表名称无效
  13. 2 图元或选择集名称无效
  14. 3 超出选择集的最大数目
  15. 4 选择集无效
  16. 5 块定义的用法错误
  17. 6 xref 的用法错误
  18. 7对象选择时拾取失败
  19. 8 图元文件结束
  20. 9 块定义文件结束
  21. 10 未找到最新图元
  22. 11 非法操作:试图删除视口对象
  23. 12 绘制 PLINE 时,操作非法
  24. 13 句柄无效
  25. 14 句柄未启用
  26. 15 坐标转换中要求的参数无效
  27. 16 坐标转换中要求的空间非法
  28. 17 非法使用已删除的图元
  29. 18 表名无效
  30. 19 表函数的参数无效
  31. 20 试图设置只读变量
  32. 21 不允许输入 0 值
  33. 22 数值越界
  34. 23 正在进行复杂的图形重生成
  35. 24 试图改变图元类型
  36. 25 图层名称错误
  37. 26 线型名称错误
  38. 27 颜色名称错误
  39. 28 文本样式名错误
  40. 29 型名称错误
  41. 30 图元类型字段错误
  42. 31 试图修改已删除的图元
  43. 32 试图修改子图元 SEQEND
  44. 33 试图修改句柄
  45. 34 试图修改视口的可见性
  46. 35 图元所在图层被锁定
  47. 36 图元类型错误
  48. 37 多段线图元错误
  49. 38 块中的复杂图元不完整
  50. 39 块的名称字段无效
  51. 40 块的标志字段重复
  52. 41 块的名称字段重复
  53. 42 法线矢量错误
  54. 43 缺少块名称
  55. 44 缺少块标志
  56. 45 无名块非法
  57. 46 块定义无效
  58. 47 缺少必需的字段
  59. 48 未知的扩展数据 (XDATA) 类型
  60. 49 XDATA 中序列的嵌套错误
  61. 50 APPID 字段的位置错误
  62. 51 XDATA 数据容量溢出
  63. 52 图元选择时,响应为空
  64. 53 APPID 重复
  65. 54 试图新建或修改视口图元
  66. 55 试图新建或修改 xref、xdef 或 xdep
  67. 56 ssget 过滤器:序列错误结束
  68. 57 ssget 过滤器:缺少测试运算符
  69. 58 ssget 过滤器:操作码 (-4) 字符串无效
  70. 59 ssget 过滤器:条件序列嵌套错误或内容为空
  71. 60 ssget 过滤器:条件序列的开始和结束不匹配
  72. 61 ssget 过滤器:条件序列中参数的数目错误(对于 NOT 或 XOR 而言)
  73. 62 ssget 过滤器:超出最大嵌套层数限制
  74. 63 ssget 过滤器:组码无效
  75. 64 ssget 过滤器:字符串测试无效
  76. 65 ssget 过滤器:矢量测试无效
  77. 66 ssget 过滤器:实数测试无效
  78. 67 ssget 过滤器:整数测试无效
  79. 68 定点设备不是数字化仪
  80. 69 数字化仪尚未校准
  81. 70 数字化仪参数无效
  82. 71 ADS 错误:不能分配新的结果缓存区
  83. 72 ADS 错误:检测到空指针
  84. 73 无法打开可执行文件
  85. 74 应用程序已经加载
  86. 75 加载的应用程序数目越界
  87. 76 无法执行应用程序
  88. 77 版本号不兼容
  89. 78 无法卸载被嵌套的应用程序
  90. 79 应用程序拒绝卸载
  91. 80 应用程序尚未加载
  92. 81 内存不足,无法加载应用程序
  93. 82 ADS 错误:变换矩阵非法
  94. 83 ADS 错误:符号名称无效
  95. 84 ADS 错误:符号值无效
  96. 85显示对话框时,AutoLISP/ADS 操作被禁止

 楼主| 发表于 2011-12-17 10:42:53 | 显示全部楼层
Gu_xl 发表于 2011-12-17 10:40
以下是中文翻译:

谢谢版主翻译了前85个,受益匪浅!
发表于 2021-10-6 17:30:48 | 显示全部楼层
多谢版主的翻译
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-16 15:07 , Processed in 0.182467 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表