errlist.c 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495
  1. /* This file is generated from errno.texi by errlist.awk. */
  2. #include <errno.h>
  3. #include <libintl.h>
  4. #ifndef ERR_REMAP
  5. # define ERR_REMAP(n) n
  6. #endif
  7. #if !defined EMIT_ERR_MAX && !defined ERRLIST_NO_COMPAT
  8. # include <errlist-compat.h>
  9. #endif
  10. #ifdef ERR_MAX
  11. # define ERRLIST_SIZE ERR_MAX + 1
  12. #else
  13. # define ERR_MAX 0
  14. # define ERRLIST_SIZE
  15. #endif
  16. const char *const _sys_errlist_internal[ERRLIST_SIZE] =
  17. {
  18. [0] = N_("Success"),
  19. #ifdef EPERM
  20. /*
  21. TRANS Only the owner of the file (or other resource)
  22. TRANS or processes with special privileges can perform the operation. */
  23. [ERR_REMAP (EPERM)] = N_("Operation not permitted"),
  24. # if EPERM > ERR_MAX
  25. # undef ERR_MAX
  26. # define ERR_MAX EPERM
  27. # endif
  28. #endif
  29. #ifdef ENOENT
  30. /*
  31. TRANS This is a ``file doesn't exist'' error
  32. TRANS for ordinary files that are referenced in contexts where they are
  33. TRANS expected to already exist. */
  34. [ERR_REMAP (ENOENT)] = N_("No such file or directory"),
  35. # if ENOENT > ERR_MAX
  36. # undef ERR_MAX
  37. # define ERR_MAX ENOENT
  38. # endif
  39. #endif
  40. #ifdef ESRCH
  41. /*
  42. TRANS No process matches the specified process ID. */
  43. [ERR_REMAP (ESRCH)] = N_("No such process"),
  44. # if ESRCH > ERR_MAX
  45. # undef ERR_MAX
  46. # define ERR_MAX ESRCH
  47. # endif
  48. #endif
  49. #ifdef EINTR
  50. /*
  51. TRANS An asynchronous signal occurred and prevented
  52. TRANS completion of the call. When this happens, you should try the call
  53. TRANS again.
  54. TRANS
  55. TRANS You can choose to have functions resume after a signal that is handled,
  56. TRANS rather than failing with @code{EINTR}; see @ref{Interrupted
  57. TRANS Primitives}. */
  58. [ERR_REMAP (EINTR)] = N_("Interrupted system call"),
  59. # if EINTR > ERR_MAX
  60. # undef ERR_MAX
  61. # define ERR_MAX EINTR
  62. # endif
  63. #endif
  64. #ifdef EIO
  65. /*
  66. TRANS Usually used for physical read or write errors. */
  67. [ERR_REMAP (EIO)] = N_("Input/output error"),
  68. # if EIO > ERR_MAX
  69. # undef ERR_MAX
  70. # define ERR_MAX EIO
  71. # endif
  72. #endif
  73. #ifdef ENXIO
  74. /*
  75. TRANS The system tried to use the device
  76. TRANS represented by a file you specified, and it couldn't find the device.
  77. TRANS This can mean that the device file was installed incorrectly, or that
  78. TRANS the physical device is missing or not correctly attached to the
  79. TRANS computer. */
  80. [ERR_REMAP (ENXIO)] = N_("No such device or address"),
  81. # if ENXIO > ERR_MAX
  82. # undef ERR_MAX
  83. # define ERR_MAX ENXIO
  84. # endif
  85. #endif
  86. #ifdef E2BIG
  87. /*
  88. TRANS Used when the arguments passed to a new program
  89. TRANS being executed with one of the @code{exec} functions (@pxref{Executing a
  90. TRANS File}) occupy too much memory space. This condition never arises on
  91. TRANS @gnuhurdsystems{}. */
  92. [ERR_REMAP (E2BIG)] = N_("Argument list too long"),
  93. # if E2BIG > ERR_MAX
  94. # undef ERR_MAX
  95. # define ERR_MAX E2BIG
  96. # endif
  97. #endif
  98. #ifdef ENOEXEC
  99. /*
  100. TRANS Invalid executable file format. This condition is detected by the
  101. TRANS @code{exec} functions; see @ref{Executing a File}. */
  102. [ERR_REMAP (ENOEXEC)] = N_("Exec format error"),
  103. # if ENOEXEC > ERR_MAX
  104. # undef ERR_MAX
  105. # define ERR_MAX ENOEXEC
  106. # endif
  107. #endif
  108. #ifdef EBADF
  109. /*
  110. TRANS For example, I/O on a descriptor that has been
  111. TRANS closed or reading from a descriptor open only for writing (or vice
  112. TRANS versa). */
  113. [ERR_REMAP (EBADF)] = N_("Bad file descriptor"),
  114. # if EBADF > ERR_MAX
  115. # undef ERR_MAX
  116. # define ERR_MAX EBADF
  117. # endif
  118. #endif
  119. #ifdef ECHILD
  120. /*
  121. TRANS This error happens on operations that are
  122. TRANS supposed to manipulate child processes, when there aren't any processes
  123. TRANS to manipulate. */
  124. [ERR_REMAP (ECHILD)] = N_("No child processes"),
  125. # if ECHILD > ERR_MAX
  126. # undef ERR_MAX
  127. # define ERR_MAX ECHILD
  128. # endif
  129. #endif
  130. #ifdef EDEADLK
  131. /*
  132. TRANS Allocating a system resource would have resulted in a
  133. TRANS deadlock situation. The system does not guarantee that it will notice
  134. TRANS all such situations. This error means you got lucky and the system
  135. TRANS noticed; it might just hang. @xref{File Locks}, for an example. */
  136. [ERR_REMAP (EDEADLK)] = N_("Resource deadlock avoided"),
  137. # if EDEADLK > ERR_MAX
  138. # undef ERR_MAX
  139. # define ERR_MAX EDEADLK
  140. # endif
  141. #endif
  142. #ifdef ENOMEM
  143. /*
  144. TRANS The system cannot allocate more virtual memory
  145. TRANS because its capacity is full. */
  146. [ERR_REMAP (ENOMEM)] = N_("Cannot allocate memory"),
  147. # if ENOMEM > ERR_MAX
  148. # undef ERR_MAX
  149. # define ERR_MAX ENOMEM
  150. # endif
  151. #endif
  152. #ifdef EACCES
  153. /*
  154. TRANS The file permissions do not allow the attempted operation. */
  155. [ERR_REMAP (EACCES)] = N_("Permission denied"),
  156. # if EACCES > ERR_MAX
  157. # undef ERR_MAX
  158. # define ERR_MAX EACCES
  159. # endif
  160. #endif
  161. #ifdef EFAULT
  162. /*
  163. TRANS An invalid pointer was detected.
  164. TRANS On @gnuhurdsystems{}, this error never happens; you get a signal instead. */
  165. [ERR_REMAP (EFAULT)] = N_("Bad address"),
  166. # if EFAULT > ERR_MAX
  167. # undef ERR_MAX
  168. # define ERR_MAX EFAULT
  169. # endif
  170. #endif
  171. #ifdef ENOTBLK
  172. /*
  173. TRANS A file that isn't a block special file was given in a situation that
  174. TRANS requires one. For example, trying to mount an ordinary file as a file
  175. TRANS system in Unix gives this error. */
  176. [ERR_REMAP (ENOTBLK)] = N_("Block device required"),
  177. # if ENOTBLK > ERR_MAX
  178. # undef ERR_MAX
  179. # define ERR_MAX ENOTBLK
  180. # endif
  181. #endif
  182. #ifdef EBUSY
  183. /*
  184. TRANS A system resource that can't be shared is already in use.
  185. TRANS For example, if you try to delete a file that is the root of a currently
  186. TRANS mounted filesystem, you get this error. */
  187. [ERR_REMAP (EBUSY)] = N_("Device or resource busy"),
  188. # if EBUSY > ERR_MAX
  189. # undef ERR_MAX
  190. # define ERR_MAX EBUSY
  191. # endif
  192. #endif
  193. #ifdef EEXIST
  194. /*
  195. TRANS An existing file was specified in a context where it only
  196. TRANS makes sense to specify a new file. */
  197. [ERR_REMAP (EEXIST)] = N_("File exists"),
  198. # if EEXIST > ERR_MAX
  199. # undef ERR_MAX
  200. # define ERR_MAX EEXIST
  201. # endif
  202. #endif
  203. #ifdef EXDEV
  204. /*
  205. TRANS An attempt to make an improper link across file systems was detected.
  206. TRANS This happens not only when you use @code{link} (@pxref{Hard Links}) but
  207. TRANS also when you rename a file with @code{rename} (@pxref{Renaming Files}). */
  208. [ERR_REMAP (EXDEV)] = N_("Invalid cross-device link"),
  209. # if EXDEV > ERR_MAX
  210. # undef ERR_MAX
  211. # define ERR_MAX EXDEV
  212. # endif
  213. #endif
  214. #ifdef ENODEV
  215. /*
  216. TRANS The wrong type of device was given to a function that expects a
  217. TRANS particular sort of device. */
  218. [ERR_REMAP (ENODEV)] = N_("No such device"),
  219. # if ENODEV > ERR_MAX
  220. # undef ERR_MAX
  221. # define ERR_MAX ENODEV
  222. # endif
  223. #endif
  224. #ifdef ENOTDIR
  225. /*
  226. TRANS A file that isn't a directory was specified when a directory is required. */
  227. [ERR_REMAP (ENOTDIR)] = N_("Not a directory"),
  228. # if ENOTDIR > ERR_MAX
  229. # undef ERR_MAX
  230. # define ERR_MAX ENOTDIR
  231. # endif
  232. #endif
  233. #ifdef EISDIR
  234. /*
  235. TRANS You cannot open a directory for writing,
  236. TRANS or create or remove hard links to it. */
  237. [ERR_REMAP (EISDIR)] = N_("Is a directory"),
  238. # if EISDIR > ERR_MAX
  239. # undef ERR_MAX
  240. # define ERR_MAX EISDIR
  241. # endif
  242. #endif
  243. #ifdef EINVAL
  244. /*
  245. TRANS This is used to indicate various kinds of problems
  246. TRANS with passing the wrong argument to a library function. */
  247. [ERR_REMAP (EINVAL)] = N_("Invalid argument"),
  248. # if EINVAL > ERR_MAX
  249. # undef ERR_MAX
  250. # define ERR_MAX EINVAL
  251. # endif
  252. #endif
  253. #ifdef EMFILE
  254. /*
  255. TRANS The current process has too many files open and can't open any more.
  256. TRANS Duplicate descriptors do count toward this limit.
  257. TRANS
  258. TRANS In BSD and GNU, the number of open files is controlled by a resource
  259. TRANS limit that can usually be increased. If you get this error, you might
  260. TRANS want to increase the @code{RLIMIT_NOFILE} limit or make it unlimited;
  261. TRANS @pxref{Limits on Resources}. */
  262. [ERR_REMAP (EMFILE)] = N_("Too many open files"),
  263. # if EMFILE > ERR_MAX
  264. # undef ERR_MAX
  265. # define ERR_MAX EMFILE
  266. # endif
  267. #endif
  268. #ifdef ENFILE
  269. /*
  270. TRANS There are too many distinct file openings in the entire system. Note
  271. TRANS that any number of linked channels count as just one file opening; see
  272. TRANS @ref{Linked Channels}. This error never occurs on @gnuhurdsystems{}. */
  273. [ERR_REMAP (ENFILE)] = N_("Too many open files in system"),
  274. # if ENFILE > ERR_MAX
  275. # undef ERR_MAX
  276. # define ERR_MAX ENFILE
  277. # endif
  278. #endif
  279. #ifdef ENOTTY
  280. /*
  281. TRANS Inappropriate I/O control operation, such as trying to set terminal
  282. TRANS modes on an ordinary file. */
  283. [ERR_REMAP (ENOTTY)] = N_("Inappropriate ioctl for device"),
  284. # if ENOTTY > ERR_MAX
  285. # undef ERR_MAX
  286. # define ERR_MAX ENOTTY
  287. # endif
  288. #endif
  289. #ifdef ETXTBSY
  290. /*
  291. TRANS An attempt to execute a file that is currently open for writing, or
  292. TRANS write to a file that is currently being executed. Often using a
  293. TRANS debugger to run a program is considered having it open for writing and
  294. TRANS will cause this error. (The name stands for ``text file busy''.) This
  295. TRANS is not an error on @gnuhurdsystems{}; the text is copied as necessary. */
  296. [ERR_REMAP (ETXTBSY)] = N_("Text file busy"),
  297. # if ETXTBSY > ERR_MAX
  298. # undef ERR_MAX
  299. # define ERR_MAX ETXTBSY
  300. # endif
  301. #endif
  302. #ifdef EFBIG
  303. /*
  304. TRANS The size of a file would be larger than allowed by the system. */
  305. [ERR_REMAP (EFBIG)] = N_("File too large"),
  306. # if EFBIG > ERR_MAX
  307. # undef ERR_MAX
  308. # define ERR_MAX EFBIG
  309. # endif
  310. #endif
  311. #ifdef ENOSPC
  312. /*
  313. TRANS Write operation on a file failed because the
  314. TRANS disk is full. */
  315. [ERR_REMAP (ENOSPC)] = N_("No space left on device"),
  316. # if ENOSPC > ERR_MAX
  317. # undef ERR_MAX
  318. # define ERR_MAX ENOSPC
  319. # endif
  320. #endif
  321. #ifdef ESPIPE
  322. /*
  323. TRANS Invalid seek operation (such as on a pipe). */
  324. [ERR_REMAP (ESPIPE)] = N_("Illegal seek"),
  325. # if ESPIPE > ERR_MAX
  326. # undef ERR_MAX
  327. # define ERR_MAX ESPIPE
  328. # endif
  329. #endif
  330. #ifdef EROFS
  331. /*
  332. TRANS An attempt was made to modify something on a read-only file system. */
  333. [ERR_REMAP (EROFS)] = N_("Read-only file system"),
  334. # if EROFS > ERR_MAX
  335. # undef ERR_MAX
  336. # define ERR_MAX EROFS
  337. # endif
  338. #endif
  339. #ifdef EMLINK
  340. /*
  341. TRANS The link count of a single file would become too large.
  342. TRANS @code{rename} can cause this error if the file being renamed already has
  343. TRANS as many links as it can take (@pxref{Renaming Files}). */
  344. [ERR_REMAP (EMLINK)] = N_("Too many links"),
  345. # if EMLINK > ERR_MAX
  346. # undef ERR_MAX
  347. # define ERR_MAX EMLINK
  348. # endif
  349. #endif
  350. #ifdef EPIPE
  351. /*
  352. TRANS There is no process reading from the other end of a pipe.
  353. TRANS Every library function that returns this error code also generates a
  354. TRANS @code{SIGPIPE} signal; this signal terminates the program if not handled
  355. TRANS or blocked. Thus, your program will never actually see @code{EPIPE}
  356. TRANS unless it has handled or blocked @code{SIGPIPE}. */
  357. [ERR_REMAP (EPIPE)] = N_("Broken pipe"),
  358. # if EPIPE > ERR_MAX
  359. # undef ERR_MAX
  360. # define ERR_MAX EPIPE
  361. # endif
  362. #endif
  363. #ifdef EDOM
  364. /*
  365. TRANS Used by mathematical functions when an argument value does
  366. TRANS not fall into the domain over which the function is defined. */
  367. [ERR_REMAP (EDOM)] = N_("Numerical argument out of domain"),
  368. # if EDOM > ERR_MAX
  369. # undef ERR_MAX
  370. # define ERR_MAX EDOM
  371. # endif
  372. #endif
  373. #ifdef ERANGE
  374. /*
  375. TRANS Used by mathematical functions when the result value is
  376. TRANS not representable because of overflow or underflow. */
  377. [ERR_REMAP (ERANGE)] = N_("Numerical result out of range"),
  378. # if ERANGE > ERR_MAX
  379. # undef ERR_MAX
  380. # define ERR_MAX ERANGE
  381. # endif
  382. #endif
  383. #ifdef EAGAIN
  384. /*
  385. TRANS The call might work if you try again
  386. TRANS later. The macro @code{EWOULDBLOCK} is another name for @code{EAGAIN};
  387. TRANS they are always the same in @theglibc{}.
  388. TRANS
  389. TRANS This error can happen in a few different situations:
  390. TRANS
  391. TRANS @itemize @bullet
  392. TRANS @item
  393. TRANS An operation that would block was attempted on an object that has
  394. TRANS non-blocking mode selected. Trying the same operation again will block
  395. TRANS until some external condition makes it possible to read, write, or
  396. TRANS connect (whatever the operation). You can use @code{select} to find out
  397. TRANS when the operation will be possible; @pxref{Waiting for I/O}.
  398. TRANS
  399. TRANS @strong{Portability Note:} In many older Unix systems, this condition
  400. TRANS was indicated by @code{EWOULDBLOCK}, which was a distinct error code
  401. TRANS different from @code{EAGAIN}. To make your program portable, you should
  402. TRANS check for both codes and treat them the same.
  403. TRANS
  404. TRANS @item
  405. TRANS A temporary resource shortage made an operation impossible. @code{fork}
  406. TRANS can return this error. It indicates that the shortage is expected to
  407. TRANS pass, so your program can try the call again later and it may succeed.
  408. TRANS It is probably a good idea to delay for a few seconds before trying it
  409. TRANS again, to allow time for other processes to release scarce resources.
  410. TRANS Such shortages are usually fairly serious and affect the whole system,
  411. TRANS so usually an interactive program should report the error to the user
  412. TRANS and return to its command loop.
  413. TRANS @end itemize */
  414. [ERR_REMAP (EAGAIN)] = N_("Resource temporarily unavailable"),
  415. # if EAGAIN > ERR_MAX
  416. # undef ERR_MAX
  417. # define ERR_MAX EAGAIN
  418. # endif
  419. #endif
  420. #if defined (EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
  421. /*
  422. TRANS In @theglibc{}, this is another name for @code{EAGAIN} (above).
  423. TRANS The values are always the same, on every operating system.
  424. TRANS
  425. TRANS C libraries in many older Unix systems have @code{EWOULDBLOCK} as a
  426. TRANS separate error code. */
  427. [ERR_REMAP (EWOULDBLOCK)] = N_("Operation would block"),
  428. # if EWOULDBLOCK > ERR_MAX
  429. # undef ERR_MAX
  430. # define ERR_MAX EWOULDBLOCK
  431. # endif
  432. #endif
  433. #ifdef EINPROGRESS
  434. /*
  435. TRANS An operation that cannot complete immediately was initiated on an object
  436. TRANS that has non-blocking mode selected. Some functions that must always
  437. TRANS block (such as @code{connect}; @pxref{Connecting}) never return
  438. TRANS @code{EAGAIN}. Instead, they return @code{EINPROGRESS} to indicate that
  439. TRANS the operation has begun and will take some time. Attempts to manipulate
  440. TRANS the object before the call completes return @code{EALREADY}. You can
  441. TRANS use the @code{select} function to find out when the pending operation
  442. TRANS has completed; @pxref{Waiting for I/O}. */
  443. [ERR_REMAP (EINPROGRESS)] = N_("Operation now in progress"),
  444. # if EINPROGRESS > ERR_MAX
  445. # undef ERR_MAX
  446. # define ERR_MAX EINPROGRESS
  447. # endif
  448. #endif
  449. #ifdef EALREADY
  450. /*
  451. TRANS An operation is already in progress on an object that has non-blocking
  452. TRANS mode selected. */
  453. [ERR_REMAP (EALREADY)] = N_("Operation already in progress"),
  454. # if EALREADY > ERR_MAX
  455. # undef ERR_MAX
  456. # define ERR_MAX EALREADY
  457. # endif
  458. #endif
  459. #ifdef ENOTSOCK
  460. /*
  461. TRANS A file that isn't a socket was specified when a socket is required. */
  462. [ERR_REMAP (ENOTSOCK)] = N_("Socket operation on non-socket"),
  463. # if ENOTSOCK > ERR_MAX
  464. # undef ERR_MAX
  465. # define ERR_MAX ENOTSOCK
  466. # endif
  467. #endif
  468. #ifdef EMSGSIZE
  469. /*
  470. TRANS The size of a message sent on a socket was larger than the supported
  471. TRANS maximum size. */
  472. [ERR_REMAP (EMSGSIZE)] = N_("Message too long"),
  473. # if EMSGSIZE > ERR_MAX
  474. # undef ERR_MAX
  475. # define ERR_MAX EMSGSIZE
  476. # endif
  477. #endif
  478. #ifdef EPROTOTYPE
  479. /*
  480. TRANS The socket type does not support the requested communications protocol. */
  481. [ERR_REMAP (EPROTOTYPE)] = N_("Protocol wrong type for socket"),
  482. # if EPROTOTYPE > ERR_MAX
  483. # undef ERR_MAX
  484. # define ERR_MAX EPROTOTYPE
  485. # endif
  486. #endif
  487. #ifdef ENOPROTOOPT
  488. /*
  489. TRANS You specified a socket option that doesn't make sense for the
  490. TRANS particular protocol being used by the socket. @xref{Socket Options}. */
  491. [ERR_REMAP (ENOPROTOOPT)] = N_("Protocol not available"),
  492. # if ENOPROTOOPT > ERR_MAX
  493. # undef ERR_MAX
  494. # define ERR_MAX ENOPROTOOPT
  495. # endif
  496. #endif
  497. #ifdef EPROTONOSUPPORT
  498. /*
  499. TRANS The socket domain does not support the requested communications protocol
  500. TRANS (perhaps because the requested protocol is completely invalid).
  501. TRANS @xref{Creating a Socket}. */
  502. [ERR_REMAP (EPROTONOSUPPORT)] = N_("Protocol not supported"),
  503. # if EPROTONOSUPPORT > ERR_MAX
  504. # undef ERR_MAX
  505. # define ERR_MAX EPROTONOSUPPORT
  506. # endif
  507. #endif
  508. #ifdef ESOCKTNOSUPPORT
  509. /*
  510. TRANS The socket type is not supported. */
  511. [ERR_REMAP (ESOCKTNOSUPPORT)] = N_("Socket type not supported"),
  512. # if ESOCKTNOSUPPORT > ERR_MAX
  513. # undef ERR_MAX
  514. # define ERR_MAX ESOCKTNOSUPPORT
  515. # endif
  516. #endif
  517. #ifdef EOPNOTSUPP
  518. /*
  519. TRANS The operation you requested is not supported. Some socket functions
  520. TRANS don't make sense for all types of sockets, and others may not be
  521. TRANS implemented for all communications protocols. On @gnuhurdsystems{}, this
  522. TRANS error can happen for many calls when the object does not support the
  523. TRANS particular operation; it is a generic indication that the server knows
  524. TRANS nothing to do for that call. */
  525. [ERR_REMAP (EOPNOTSUPP)] = N_("Operation not supported"),
  526. # if EOPNOTSUPP > ERR_MAX
  527. # undef ERR_MAX
  528. # define ERR_MAX EOPNOTSUPP
  529. # endif
  530. #endif
  531. #ifdef EPFNOSUPPORT
  532. /*
  533. TRANS The socket communications protocol family you requested is not supported. */
  534. [ERR_REMAP (EPFNOSUPPORT)] = N_("Protocol family not supported"),
  535. # if EPFNOSUPPORT > ERR_MAX
  536. # undef ERR_MAX
  537. # define ERR_MAX EPFNOSUPPORT
  538. # endif
  539. #endif
  540. #ifdef EAFNOSUPPORT
  541. /*
  542. TRANS The address family specified for a socket is not supported; it is
  543. TRANS inconsistent with the protocol being used on the socket. @xref{Sockets}. */
  544. [ERR_REMAP (EAFNOSUPPORT)] = N_("Address family not supported by protocol"),
  545. # if EAFNOSUPPORT > ERR_MAX
  546. # undef ERR_MAX
  547. # define ERR_MAX EAFNOSUPPORT
  548. # endif
  549. #endif
  550. #ifdef EADDRINUSE
  551. /*
  552. TRANS The requested socket address is already in use. @xref{Socket Addresses}. */
  553. [ERR_REMAP (EADDRINUSE)] = N_("Address already in use"),
  554. # if EADDRINUSE > ERR_MAX
  555. # undef ERR_MAX
  556. # define ERR_MAX EADDRINUSE
  557. # endif
  558. #endif
  559. #ifdef EADDRNOTAVAIL
  560. /*
  561. TRANS The requested socket address is not available; for example, you tried
  562. TRANS to give a socket a name that doesn't match the local host name.
  563. TRANS @xref{Socket Addresses}. */
  564. [ERR_REMAP (EADDRNOTAVAIL)] = N_("Cannot assign requested address"),
  565. # if EADDRNOTAVAIL > ERR_MAX
  566. # undef ERR_MAX
  567. # define ERR_MAX EADDRNOTAVAIL
  568. # endif
  569. #endif
  570. #ifdef ENETDOWN
  571. /*
  572. TRANS A socket operation failed because the network was down. */
  573. [ERR_REMAP (ENETDOWN)] = N_("Network is down"),
  574. # if ENETDOWN > ERR_MAX
  575. # undef ERR_MAX
  576. # define ERR_MAX ENETDOWN
  577. # endif
  578. #endif
  579. #ifdef ENETUNREACH
  580. /*
  581. TRANS A socket operation failed because the subnet containing the remote host
  582. TRANS was unreachable. */
  583. [ERR_REMAP (ENETUNREACH)] = N_("Network is unreachable"),
  584. # if ENETUNREACH > ERR_MAX
  585. # undef ERR_MAX
  586. # define ERR_MAX ENETUNREACH
  587. # endif
  588. #endif
  589. #ifdef ENETRESET
  590. /*
  591. TRANS A network connection was reset because the remote host crashed. */
  592. [ERR_REMAP (ENETRESET)] = N_("Network dropped connection on reset"),
  593. # if ENETRESET > ERR_MAX
  594. # undef ERR_MAX
  595. # define ERR_MAX ENETRESET
  596. # endif
  597. #endif
  598. #ifdef ECONNABORTED
  599. /*
  600. TRANS A network connection was aborted locally. */
  601. [ERR_REMAP (ECONNABORTED)] = N_("Software caused connection abort"),
  602. # if ECONNABORTED > ERR_MAX
  603. # undef ERR_MAX
  604. # define ERR_MAX ECONNABORTED
  605. # endif
  606. #endif
  607. #ifdef ECONNRESET
  608. /*
  609. TRANS A network connection was closed for reasons outside the control of the
  610. TRANS local host, such as by the remote machine rebooting or an unrecoverable
  611. TRANS protocol violation. */
  612. [ERR_REMAP (ECONNRESET)] = N_("Connection reset by peer"),
  613. # if ECONNRESET > ERR_MAX
  614. # undef ERR_MAX
  615. # define ERR_MAX ECONNRESET
  616. # endif
  617. #endif
  618. #ifdef ENOBUFS
  619. /*
  620. TRANS The kernel's buffers for I/O operations are all in use. In GNU, this
  621. TRANS error is always synonymous with @code{ENOMEM}; you may get one or the
  622. TRANS other from network operations. */
  623. [ERR_REMAP (ENOBUFS)] = N_("No buffer space available"),
  624. # if ENOBUFS > ERR_MAX
  625. # undef ERR_MAX
  626. # define ERR_MAX ENOBUFS
  627. # endif
  628. #endif
  629. #ifdef EISCONN
  630. /*
  631. TRANS You tried to connect a socket that is already connected.
  632. TRANS @xref{Connecting}. */
  633. [ERR_REMAP (EISCONN)] = N_("Transport endpoint is already connected"),
  634. # if EISCONN > ERR_MAX
  635. # undef ERR_MAX
  636. # define ERR_MAX EISCONN
  637. # endif
  638. #endif
  639. #ifdef ENOTCONN
  640. /*
  641. TRANS The socket is not connected to anything. You get this error when you
  642. TRANS try to transmit data over a socket, without first specifying a
  643. TRANS destination for the data. For a connectionless socket (for datagram
  644. TRANS protocols, such as UDP), you get @code{EDESTADDRREQ} instead. */
  645. [ERR_REMAP (ENOTCONN)] = N_("Transport endpoint is not connected"),
  646. # if ENOTCONN > ERR_MAX
  647. # undef ERR_MAX
  648. # define ERR_MAX ENOTCONN
  649. # endif
  650. #endif
  651. #ifdef EDESTADDRREQ
  652. /*
  653. TRANS No default destination address was set for the socket. You get this
  654. TRANS error when you try to transmit data over a connectionless socket,
  655. TRANS without first specifying a destination for the data with @code{connect}. */
  656. [ERR_REMAP (EDESTADDRREQ)] = N_("Destination address required"),
  657. # if EDESTADDRREQ > ERR_MAX
  658. # undef ERR_MAX
  659. # define ERR_MAX EDESTADDRREQ
  660. # endif
  661. #endif
  662. #ifdef ESHUTDOWN
  663. /*
  664. TRANS The socket has already been shut down. */
  665. [ERR_REMAP (ESHUTDOWN)] = N_("Cannot send after transport endpoint shutdown"),
  666. # if ESHUTDOWN > ERR_MAX
  667. # undef ERR_MAX
  668. # define ERR_MAX ESHUTDOWN
  669. # endif
  670. #endif
  671. #ifdef ETOOMANYREFS
  672. /* */
  673. [ERR_REMAP (ETOOMANYREFS)] = N_("Too many references: cannot splice"),
  674. # if ETOOMANYREFS > ERR_MAX
  675. # undef ERR_MAX
  676. # define ERR_MAX ETOOMANYREFS
  677. # endif
  678. #endif
  679. #ifdef ETIMEDOUT
  680. /*
  681. TRANS A socket operation with a specified timeout received no response during
  682. TRANS the timeout period. */
  683. [ERR_REMAP (ETIMEDOUT)] = N_("Connection timed out"),
  684. # if ETIMEDOUT > ERR_MAX
  685. # undef ERR_MAX
  686. # define ERR_MAX ETIMEDOUT
  687. # endif
  688. #endif
  689. #ifdef ECONNREFUSED
  690. /*
  691. TRANS A remote host refused to allow the network connection (typically because
  692. TRANS it is not running the requested service). */
  693. [ERR_REMAP (ECONNREFUSED)] = N_("Connection refused"),
  694. # if ECONNREFUSED > ERR_MAX
  695. # undef ERR_MAX
  696. # define ERR_MAX ECONNREFUSED
  697. # endif
  698. #endif
  699. #ifdef ELOOP
  700. /*
  701. TRANS Too many levels of symbolic links were encountered in looking up a file name.
  702. TRANS This often indicates a cycle of symbolic links. */
  703. [ERR_REMAP (ELOOP)] = N_("Too many levels of symbolic links"),
  704. # if ELOOP > ERR_MAX
  705. # undef ERR_MAX
  706. # define ERR_MAX ELOOP
  707. # endif
  708. #endif
  709. #ifdef ENAMETOOLONG
  710. /*
  711. TRANS Filename too long (longer than @code{PATH_MAX}; @pxref{Limits for
  712. TRANS Files}) or host name too long (in @code{gethostname} or
  713. TRANS @code{sethostname}; @pxref{Host Identification}). */
  714. [ERR_REMAP (ENAMETOOLONG)] = N_("File name too long"),
  715. # if ENAMETOOLONG > ERR_MAX
  716. # undef ERR_MAX
  717. # define ERR_MAX ENAMETOOLONG
  718. # endif
  719. #endif
  720. #ifdef EHOSTDOWN
  721. /*
  722. TRANS The remote host for a requested network connection is down. */
  723. [ERR_REMAP (EHOSTDOWN)] = N_("Host is down"),
  724. # if EHOSTDOWN > ERR_MAX
  725. # undef ERR_MAX
  726. # define ERR_MAX EHOSTDOWN
  727. # endif
  728. #endif
  729. #ifdef EHOSTUNREACH
  730. /*
  731. TRANS The remote host for a requested network connection is not reachable. */
  732. [ERR_REMAP (EHOSTUNREACH)] = N_("No route to host"),
  733. # if EHOSTUNREACH > ERR_MAX
  734. # undef ERR_MAX
  735. # define ERR_MAX EHOSTUNREACH
  736. # endif
  737. #endif
  738. #ifdef ENOTEMPTY
  739. /*
  740. TRANS Directory not empty, where an empty directory was expected. Typically,
  741. TRANS this error occurs when you are trying to delete a directory. */
  742. [ERR_REMAP (ENOTEMPTY)] = N_("Directory not empty"),
  743. # if ENOTEMPTY > ERR_MAX
  744. # undef ERR_MAX
  745. # define ERR_MAX ENOTEMPTY
  746. # endif
  747. #endif
  748. #ifdef EPROCLIM
  749. /*
  750. TRANS This means that the per-user limit on new process would be exceeded by
  751. TRANS an attempted @code{fork}. @xref{Limits on Resources}, for details on
  752. TRANS the @code{RLIMIT_NPROC} limit. */
  753. [ERR_REMAP (EPROCLIM)] = N_("Too many processes"),
  754. # if EPROCLIM > ERR_MAX
  755. # undef ERR_MAX
  756. # define ERR_MAX EPROCLIM
  757. # endif
  758. #endif
  759. #ifdef EUSERS
  760. /*
  761. TRANS The file quota system is confused because there are too many users.
  762. TRANS @c This can probably happen in a GNU system when using NFS. */
  763. [ERR_REMAP (EUSERS)] = N_("Too many users"),
  764. # if EUSERS > ERR_MAX
  765. # undef ERR_MAX
  766. # define ERR_MAX EUSERS
  767. # endif
  768. #endif
  769. #ifdef EDQUOT
  770. /*
  771. TRANS The user's disk quota was exceeded. */
  772. [ERR_REMAP (EDQUOT)] = N_("Disk quota exceeded"),
  773. # if EDQUOT > ERR_MAX
  774. # undef ERR_MAX
  775. # define ERR_MAX EDQUOT
  776. # endif
  777. #endif
  778. #ifdef ESTALE
  779. /*
  780. TRANS This indicates an internal confusion in the
  781. TRANS file system which is due to file system rearrangements on the server host
  782. TRANS for NFS file systems or corruption in other file systems.
  783. TRANS Repairing this condition usually requires unmounting, possibly repairing
  784. TRANS and remounting the file system. */
  785. [ERR_REMAP (ESTALE)] = N_("Stale file handle"),
  786. # if ESTALE > ERR_MAX
  787. # undef ERR_MAX
  788. # define ERR_MAX ESTALE
  789. # endif
  790. #endif
  791. #ifdef EREMOTE
  792. /*
  793. TRANS An attempt was made to NFS-mount a remote file system with a file name that
  794. TRANS already specifies an NFS-mounted file.
  795. TRANS (This is an error on some operating systems, but we expect it to work
  796. TRANS properly on @gnuhurdsystems{}, making this error code impossible.) */
  797. [ERR_REMAP (EREMOTE)] = N_("Object is remote"),
  798. # if EREMOTE > ERR_MAX
  799. # undef ERR_MAX
  800. # define ERR_MAX EREMOTE
  801. # endif
  802. #endif
  803. #ifdef EBADRPC
  804. /* */
  805. [ERR_REMAP (EBADRPC)] = N_("RPC struct is bad"),
  806. # if EBADRPC > ERR_MAX
  807. # undef ERR_MAX
  808. # define ERR_MAX EBADRPC
  809. # endif
  810. #endif
  811. #ifdef ERPCMISMATCH
  812. /* */
  813. [ERR_REMAP (ERPCMISMATCH)] = N_("RPC version wrong"),
  814. # if ERPCMISMATCH > ERR_MAX
  815. # undef ERR_MAX
  816. # define ERR_MAX ERPCMISMATCH
  817. # endif
  818. #endif
  819. #ifdef EPROGUNAVAIL
  820. /* */
  821. [ERR_REMAP (EPROGUNAVAIL)] = N_("RPC program not available"),
  822. # if EPROGUNAVAIL > ERR_MAX
  823. # undef ERR_MAX
  824. # define ERR_MAX EPROGUNAVAIL
  825. # endif
  826. #endif
  827. #ifdef EPROGMISMATCH
  828. /* */
  829. [ERR_REMAP (EPROGMISMATCH)] = N_("RPC program version wrong"),
  830. # if EPROGMISMATCH > ERR_MAX
  831. # undef ERR_MAX
  832. # define ERR_MAX EPROGMISMATCH
  833. # endif
  834. #endif
  835. #ifdef EPROCUNAVAIL
  836. /* */
  837. [ERR_REMAP (EPROCUNAVAIL)] = N_("RPC bad procedure for program"),
  838. # if EPROCUNAVAIL > ERR_MAX
  839. # undef ERR_MAX
  840. # define ERR_MAX EPROCUNAVAIL
  841. # endif
  842. #endif
  843. #ifdef ENOLCK
  844. /*
  845. TRANS This is used by the file locking facilities; see
  846. TRANS @ref{File Locks}. This error is never generated by @gnuhurdsystems{}, but
  847. TRANS it can result from an operation to an NFS server running another
  848. TRANS operating system. */
  849. [ERR_REMAP (ENOLCK)] = N_("No locks available"),
  850. # if ENOLCK > ERR_MAX
  851. # undef ERR_MAX
  852. # define ERR_MAX ENOLCK
  853. # endif
  854. #endif
  855. #ifdef EFTYPE
  856. /*
  857. TRANS The file was the wrong type for the
  858. TRANS operation, or a data file had the wrong format.
  859. TRANS
  860. TRANS On some systems @code{chmod} returns this error if you try to set the
  861. TRANS sticky bit on a non-directory file; @pxref{Setting Permissions}. */
  862. [ERR_REMAP (EFTYPE)] = N_("Inappropriate file type or format"),
  863. # if EFTYPE > ERR_MAX
  864. # undef ERR_MAX
  865. # define ERR_MAX EFTYPE
  866. # endif
  867. #endif
  868. #ifdef EAUTH
  869. /* */
  870. [ERR_REMAP (EAUTH)] = N_("Authentication error"),
  871. # if EAUTH > ERR_MAX
  872. # undef ERR_MAX
  873. # define ERR_MAX EAUTH
  874. # endif
  875. #endif
  876. #ifdef ENEEDAUTH
  877. /* */
  878. [ERR_REMAP (ENEEDAUTH)] = N_("Need authenticator"),
  879. # if ENEEDAUTH > ERR_MAX
  880. # undef ERR_MAX
  881. # define ERR_MAX ENEEDAUTH
  882. # endif
  883. #endif
  884. #ifdef ENOSYS
  885. /*
  886. TRANS This indicates that the function called is
  887. TRANS not implemented at all, either in the C library itself or in the
  888. TRANS operating system. When you get this error, you can be sure that this
  889. TRANS particular function will always fail with @code{ENOSYS} unless you
  890. TRANS install a new version of the C library or the operating system. */
  891. [ERR_REMAP (ENOSYS)] = N_("Function not implemented"),
  892. # if ENOSYS > ERR_MAX
  893. # undef ERR_MAX
  894. # define ERR_MAX ENOSYS
  895. # endif
  896. #endif
  897. #if defined (ENOTSUP) && ENOTSUP != EOPNOTSUPP
  898. /*
  899. TRANS A function returns this error when certain parameter
  900. TRANS values are valid, but the functionality they request is not available.
  901. TRANS This can mean that the function does not implement a particular command
  902. TRANS or option value or flag bit at all. For functions that operate on some
  903. TRANS object given in a parameter, such as a file descriptor or a port, it
  904. TRANS might instead mean that only @emph{that specific object} (file
  905. TRANS descriptor, port, etc.) is unable to support the other parameters given;
  906. TRANS different file descriptors might support different ranges of parameter
  907. TRANS values.
  908. TRANS
  909. TRANS If the entire function is not available at all in the implementation,
  910. TRANS it returns @code{ENOSYS} instead. */
  911. [ERR_REMAP (ENOTSUP)] = N_("Not supported"),
  912. # if ENOTSUP > ERR_MAX
  913. # undef ERR_MAX
  914. # define ERR_MAX ENOTSUP
  915. # endif
  916. #endif
  917. #ifdef EILSEQ
  918. /*
  919. TRANS While decoding a multibyte character the function came along an invalid
  920. TRANS or an incomplete sequence of bytes or the given wide character is invalid. */
  921. [ERR_REMAP (EILSEQ)] = N_("Invalid or incomplete multibyte or wide character"),
  922. # if EILSEQ > ERR_MAX
  923. # undef ERR_MAX
  924. # define ERR_MAX EILSEQ
  925. # endif
  926. #endif
  927. #ifdef EBACKGROUND
  928. /*
  929. TRANS On @gnuhurdsystems{}, servers supporting the @code{term} protocol return
  930. TRANS this error for certain operations when the caller is not in the
  931. TRANS foreground process group of the terminal. Users do not usually see this
  932. TRANS error because functions such as @code{read} and @code{write} translate
  933. TRANS it into a @code{SIGTTIN} or @code{SIGTTOU} signal. @xref{Job Control},
  934. TRANS for information on process groups and these signals. */
  935. [ERR_REMAP (EBACKGROUND)] = N_("Inappropriate operation for background process"),
  936. # if EBACKGROUND > ERR_MAX
  937. # undef ERR_MAX
  938. # define ERR_MAX EBACKGROUND
  939. # endif
  940. #endif
  941. #ifdef EDIED
  942. /*
  943. TRANS On @gnuhurdsystems{}, opening a file returns this error when the file is
  944. TRANS translated by a program and the translator program dies while starting
  945. TRANS up, before it has connected to the file. */
  946. [ERR_REMAP (EDIED)] = N_("Translator died"),
  947. # if EDIED > ERR_MAX
  948. # undef ERR_MAX
  949. # define ERR_MAX EDIED
  950. # endif
  951. #endif
  952. #ifdef ED
  953. /*
  954. TRANS The experienced user will know what is wrong.
  955. TRANS @c This error code is a joke. Its perror text is part of the joke.
  956. TRANS @c Don't change it. */
  957. [ERR_REMAP (ED)] = N_("?"),
  958. # if ED > ERR_MAX
  959. # undef ERR_MAX
  960. # define ERR_MAX ED
  961. # endif
  962. #endif
  963. #ifdef EGREGIOUS
  964. /*
  965. TRANS You did @strong{what}? */
  966. [ERR_REMAP (EGREGIOUS)] = N_("You really blew it this time"),
  967. # if EGREGIOUS > ERR_MAX
  968. # undef ERR_MAX
  969. # define ERR_MAX EGREGIOUS
  970. # endif
  971. #endif
  972. #ifdef EIEIO
  973. /*
  974. TRANS Go home and have a glass of warm, dairy-fresh milk.
  975. TRANS @c Okay. Since you are dying to know, I'll tell you.
  976. TRANS @c This is a joke, obviously. There is a children's song which begins,
  977. TRANS @c "Old McDonald had a farm, e-i-e-i-o." Every time I see the (real)
  978. TRANS @c errno macro EIO, I think about that song. Probably most of my
  979. TRANS @c compatriots who program on Unix do, too. One of them must have stayed
  980. TRANS @c up a little too late one night and decided to add it to Hurd or Glibc.
  981. TRANS @c Whoever did it should be castigated, but it made me laugh.
  982. TRANS @c --jtobey@channel1.com
  983. TRANS @c
  984. TRANS @c "bought the farm" means "died". -jtobey
  985. TRANS @c
  986. TRANS @c Translators, please do not translate this litteraly, translate it into
  987. TRANS @c an idiomatic funny way of saying that the computer died. */
  988. [ERR_REMAP (EIEIO)] = N_("Computer bought the farm"),
  989. # if EIEIO > ERR_MAX
  990. # undef ERR_MAX
  991. # define ERR_MAX EIEIO
  992. # endif
  993. #endif
  994. #ifdef EGRATUITOUS
  995. /*
  996. TRANS This error code has no purpose. */
  997. [ERR_REMAP (EGRATUITOUS)] = N_("Gratuitous error"),
  998. # if EGRATUITOUS > ERR_MAX
  999. # undef ERR_MAX
  1000. # define ERR_MAX EGRATUITOUS
  1001. # endif
  1002. #endif
  1003. #ifdef EBADMSG
  1004. /* */
  1005. [ERR_REMAP (EBADMSG)] = N_("Bad message"),
  1006. # if EBADMSG > ERR_MAX
  1007. # undef ERR_MAX
  1008. # define ERR_MAX EBADMSG
  1009. # endif
  1010. #endif
  1011. #ifdef EIDRM
  1012. /* */
  1013. [ERR_REMAP (EIDRM)] = N_("Identifier removed"),
  1014. # if EIDRM > ERR_MAX
  1015. # undef ERR_MAX
  1016. # define ERR_MAX EIDRM
  1017. # endif
  1018. #endif
  1019. #ifdef EMULTIHOP
  1020. /* */
  1021. [ERR_REMAP (EMULTIHOP)] = N_("Multihop attempted"),
  1022. # if EMULTIHOP > ERR_MAX
  1023. # undef ERR_MAX
  1024. # define ERR_MAX EMULTIHOP
  1025. # endif
  1026. #endif
  1027. #ifdef ENODATA
  1028. /* */
  1029. [ERR_REMAP (ENODATA)] = N_("No data available"),
  1030. # if ENODATA > ERR_MAX
  1031. # undef ERR_MAX
  1032. # define ERR_MAX ENODATA
  1033. # endif
  1034. #endif
  1035. #ifdef ENOLINK
  1036. /* */
  1037. [ERR_REMAP (ENOLINK)] = N_("Link has been severed"),
  1038. # if ENOLINK > ERR_MAX
  1039. # undef ERR_MAX
  1040. # define ERR_MAX ENOLINK
  1041. # endif
  1042. #endif
  1043. #ifdef ENOMSG
  1044. /* */
  1045. [ERR_REMAP (ENOMSG)] = N_("No message of desired type"),
  1046. # if ENOMSG > ERR_MAX
  1047. # undef ERR_MAX
  1048. # define ERR_MAX ENOMSG
  1049. # endif
  1050. #endif
  1051. #ifdef ENOSR
  1052. /* */
  1053. [ERR_REMAP (ENOSR)] = N_("Out of streams resources"),
  1054. # if ENOSR > ERR_MAX
  1055. # undef ERR_MAX
  1056. # define ERR_MAX ENOSR
  1057. # endif
  1058. #endif
  1059. #ifdef ENOSTR
  1060. /* */
  1061. [ERR_REMAP (ENOSTR)] = N_("Device not a stream"),
  1062. # if ENOSTR > ERR_MAX
  1063. # undef ERR_MAX
  1064. # define ERR_MAX ENOSTR
  1065. # endif
  1066. #endif
  1067. #ifdef EOVERFLOW
  1068. /* */
  1069. [ERR_REMAP (EOVERFLOW)] = N_("Value too large for defined data type"),
  1070. # if EOVERFLOW > ERR_MAX
  1071. # undef ERR_MAX
  1072. # define ERR_MAX EOVERFLOW
  1073. # endif
  1074. #endif
  1075. #ifdef EPROTO
  1076. /* */
  1077. [ERR_REMAP (EPROTO)] = N_("Protocol error"),
  1078. # if EPROTO > ERR_MAX
  1079. # undef ERR_MAX
  1080. # define ERR_MAX EPROTO
  1081. # endif
  1082. #endif
  1083. #ifdef ETIME
  1084. /* */
  1085. [ERR_REMAP (ETIME)] = N_("Timer expired"),
  1086. # if ETIME > ERR_MAX
  1087. # undef ERR_MAX
  1088. # define ERR_MAX ETIME
  1089. # endif
  1090. #endif
  1091. #ifdef ECANCELED
  1092. /*
  1093. TRANS An asynchronous operation was canceled before it
  1094. TRANS completed. @xref{Asynchronous I/O}. When you call @code{aio_cancel},
  1095. TRANS the normal result is for the operations affected to complete with this
  1096. TRANS error; @pxref{Cancel AIO Operations}. */
  1097. [ERR_REMAP (ECANCELED)] = N_("Operation canceled"),
  1098. # if ECANCELED > ERR_MAX
  1099. # undef ERR_MAX
  1100. # define ERR_MAX ECANCELED
  1101. # endif
  1102. #endif
  1103. #ifdef EOWNERDEAD
  1104. /* */
  1105. [ERR_REMAP (EOWNERDEAD)] = N_("Owner died"),
  1106. # if EOWNERDEAD > ERR_MAX
  1107. # undef ERR_MAX
  1108. # define ERR_MAX EOWNERDEAD
  1109. # endif
  1110. #endif
  1111. #ifdef ENOTRECOVERABLE
  1112. /* */
  1113. [ERR_REMAP (ENOTRECOVERABLE)] = N_("State not recoverable"),
  1114. # if ENOTRECOVERABLE > ERR_MAX
  1115. # undef ERR_MAX
  1116. # define ERR_MAX ENOTRECOVERABLE
  1117. # endif
  1118. #endif
  1119. #ifdef ERESTART
  1120. /* */
  1121. [ERR_REMAP (ERESTART)] = N_("Interrupted system call should be restarted"),
  1122. # if ERESTART > ERR_MAX
  1123. # undef ERR_MAX
  1124. # define ERR_MAX ERESTART
  1125. # endif
  1126. #endif
  1127. #ifdef ECHRNG
  1128. /* */
  1129. [ERR_REMAP (ECHRNG)] = N_("Channel number out of range"),
  1130. # if ECHRNG > ERR_MAX
  1131. # undef ERR_MAX
  1132. # define ERR_MAX ECHRNG
  1133. # endif
  1134. #endif
  1135. #ifdef EL2NSYNC
  1136. /* */
  1137. [ERR_REMAP (EL2NSYNC)] = N_("Level 2 not synchronized"),
  1138. # if EL2NSYNC > ERR_MAX
  1139. # undef ERR_MAX
  1140. # define ERR_MAX EL2NSYNC
  1141. # endif
  1142. #endif
  1143. #ifdef EL3HLT
  1144. /* */
  1145. [ERR_REMAP (EL3HLT)] = N_("Level 3 halted"),
  1146. # if EL3HLT > ERR_MAX
  1147. # undef ERR_MAX
  1148. # define ERR_MAX EL3HLT
  1149. # endif
  1150. #endif
  1151. #ifdef EL3RST
  1152. /* */
  1153. [ERR_REMAP (EL3RST)] = N_("Level 3 reset"),
  1154. # if EL3RST > ERR_MAX
  1155. # undef ERR_MAX
  1156. # define ERR_MAX EL3RST
  1157. # endif
  1158. #endif
  1159. #ifdef ELNRNG
  1160. /* */
  1161. [ERR_REMAP (ELNRNG)] = N_("Link number out of range"),
  1162. # if ELNRNG > ERR_MAX
  1163. # undef ERR_MAX
  1164. # define ERR_MAX ELNRNG
  1165. # endif
  1166. #endif
  1167. #ifdef EUNATCH
  1168. /* */
  1169. [ERR_REMAP (EUNATCH)] = N_("Protocol driver not attached"),
  1170. # if EUNATCH > ERR_MAX
  1171. # undef ERR_MAX
  1172. # define ERR_MAX EUNATCH
  1173. # endif
  1174. #endif
  1175. #ifdef ENOCSI
  1176. /* */
  1177. [ERR_REMAP (ENOCSI)] = N_("No CSI structure available"),
  1178. # if ENOCSI > ERR_MAX
  1179. # undef ERR_MAX
  1180. # define ERR_MAX ENOCSI
  1181. # endif
  1182. #endif
  1183. #ifdef EL2HLT
  1184. /* */
  1185. [ERR_REMAP (EL2HLT)] = N_("Level 2 halted"),
  1186. # if EL2HLT > ERR_MAX
  1187. # undef ERR_MAX
  1188. # define ERR_MAX EL2HLT
  1189. # endif
  1190. #endif
  1191. #ifdef EBADE
  1192. /* */
  1193. [ERR_REMAP (EBADE)] = N_("Invalid exchange"),
  1194. # if EBADE > ERR_MAX
  1195. # undef ERR_MAX
  1196. # define ERR_MAX EBADE
  1197. # endif
  1198. #endif
  1199. #ifdef EBADR
  1200. /* */
  1201. [ERR_REMAP (EBADR)] = N_("Invalid request descriptor"),
  1202. # if EBADR > ERR_MAX
  1203. # undef ERR_MAX
  1204. # define ERR_MAX EBADR
  1205. # endif
  1206. #endif
  1207. #ifdef EXFULL
  1208. /* */
  1209. [ERR_REMAP (EXFULL)] = N_("Exchange full"),
  1210. # if EXFULL > ERR_MAX
  1211. # undef ERR_MAX
  1212. # define ERR_MAX EXFULL
  1213. # endif
  1214. #endif
  1215. #ifdef ENOANO
  1216. /* */
  1217. [ERR_REMAP (ENOANO)] = N_("No anode"),
  1218. # if ENOANO > ERR_MAX
  1219. # undef ERR_MAX
  1220. # define ERR_MAX ENOANO
  1221. # endif
  1222. #endif
  1223. #ifdef EBADRQC
  1224. /* */
  1225. [ERR_REMAP (EBADRQC)] = N_("Invalid request code"),
  1226. # if EBADRQC > ERR_MAX
  1227. # undef ERR_MAX
  1228. # define ERR_MAX EBADRQC
  1229. # endif
  1230. #endif
  1231. #ifdef EBADSLT
  1232. /* */
  1233. [ERR_REMAP (EBADSLT)] = N_("Invalid slot"),
  1234. # if EBADSLT > ERR_MAX
  1235. # undef ERR_MAX
  1236. # define ERR_MAX EBADSLT
  1237. # endif
  1238. #endif
  1239. #if defined (EDEADLOCK) && EDEADLOCK != EDEADLK
  1240. /* */
  1241. [ERR_REMAP (EDEADLOCK)] = N_("File locking deadlock error"),
  1242. # if EDEADLOCK > ERR_MAX
  1243. # undef ERR_MAX
  1244. # define ERR_MAX EDEADLOCK
  1245. # endif
  1246. #endif
  1247. #ifdef EBFONT
  1248. /* */
  1249. [ERR_REMAP (EBFONT)] = N_("Bad font file format"),
  1250. # if EBFONT > ERR_MAX
  1251. # undef ERR_MAX
  1252. # define ERR_MAX EBFONT
  1253. # endif
  1254. #endif
  1255. #ifdef ENONET
  1256. /* */
  1257. [ERR_REMAP (ENONET)] = N_("Machine is not on the network"),
  1258. # if ENONET > ERR_MAX
  1259. # undef ERR_MAX
  1260. # define ERR_MAX ENONET
  1261. # endif
  1262. #endif
  1263. #ifdef ENOPKG
  1264. /* */
  1265. [ERR_REMAP (ENOPKG)] = N_("Package not installed"),
  1266. # if ENOPKG > ERR_MAX
  1267. # undef ERR_MAX
  1268. # define ERR_MAX ENOPKG
  1269. # endif
  1270. #endif
  1271. #ifdef EADV
  1272. /* */
  1273. [ERR_REMAP (EADV)] = N_("Advertise error"),
  1274. # if EADV > ERR_MAX
  1275. # undef ERR_MAX
  1276. # define ERR_MAX EADV
  1277. # endif
  1278. #endif
  1279. #ifdef ESRMNT
  1280. /* */
  1281. [ERR_REMAP (ESRMNT)] = N_("Srmount error"),
  1282. # if ESRMNT > ERR_MAX
  1283. # undef ERR_MAX
  1284. # define ERR_MAX ESRMNT
  1285. # endif
  1286. #endif
  1287. #ifdef ECOMM
  1288. /* */
  1289. [ERR_REMAP (ECOMM)] = N_("Communication error on send"),
  1290. # if ECOMM > ERR_MAX
  1291. # undef ERR_MAX
  1292. # define ERR_MAX ECOMM
  1293. # endif
  1294. #endif
  1295. #ifdef EDOTDOT
  1296. /* */
  1297. [ERR_REMAP (EDOTDOT)] = N_("RFS specific error"),
  1298. # if EDOTDOT > ERR_MAX
  1299. # undef ERR_MAX
  1300. # define ERR_MAX EDOTDOT
  1301. # endif
  1302. #endif
  1303. #ifdef ENOTUNIQ
  1304. /* */
  1305. [ERR_REMAP (ENOTUNIQ)] = N_("Name not unique on network"),
  1306. # if ENOTUNIQ > ERR_MAX
  1307. # undef ERR_MAX
  1308. # define ERR_MAX ENOTUNIQ
  1309. # endif
  1310. #endif
  1311. #ifdef EBADFD
  1312. /* */
  1313. [ERR_REMAP (EBADFD)] = N_("File descriptor in bad state"),
  1314. # if EBADFD > ERR_MAX
  1315. # undef ERR_MAX
  1316. # define ERR_MAX EBADFD
  1317. # endif
  1318. #endif
  1319. #ifdef EREMCHG
  1320. /* */
  1321. [ERR_REMAP (EREMCHG)] = N_("Remote address changed"),
  1322. # if EREMCHG > ERR_MAX
  1323. # undef ERR_MAX
  1324. # define ERR_MAX EREMCHG
  1325. # endif
  1326. #endif
  1327. #ifdef ELIBACC
  1328. /* */
  1329. [ERR_REMAP (ELIBACC)] = N_("Can not access a needed shared library"),
  1330. # if ELIBACC > ERR_MAX
  1331. # undef ERR_MAX
  1332. # define ERR_MAX ELIBACC
  1333. # endif
  1334. #endif
  1335. #ifdef ELIBBAD
  1336. /* */
  1337. [ERR_REMAP (ELIBBAD)] = N_("Accessing a corrupted shared library"),
  1338. # if ELIBBAD > ERR_MAX
  1339. # undef ERR_MAX
  1340. # define ERR_MAX ELIBBAD
  1341. # endif
  1342. #endif
  1343. #ifdef ELIBSCN
  1344. /* */
  1345. [ERR_REMAP (ELIBSCN)] = N_(".lib section in a.out corrupted"),
  1346. # if ELIBSCN > ERR_MAX
  1347. # undef ERR_MAX
  1348. # define ERR_MAX ELIBSCN
  1349. # endif
  1350. #endif
  1351. #ifdef ELIBMAX
  1352. /* */
  1353. [ERR_REMAP (ELIBMAX)] = N_("Attempting to link in too many shared libraries"),
  1354. # if ELIBMAX > ERR_MAX
  1355. # undef ERR_MAX
  1356. # define ERR_MAX ELIBMAX
  1357. # endif
  1358. #endif
  1359. #ifdef ELIBEXEC
  1360. /* */
  1361. [ERR_REMAP (ELIBEXEC)] = N_("Cannot exec a shared library directly"),
  1362. # if ELIBEXEC > ERR_MAX
  1363. # undef ERR_MAX
  1364. # define ERR_MAX ELIBEXEC
  1365. # endif
  1366. #endif
  1367. #ifdef ESTRPIPE
  1368. /* */
  1369. [ERR_REMAP (ESTRPIPE)] = N_("Streams pipe error"),
  1370. # if ESTRPIPE > ERR_MAX
  1371. # undef ERR_MAX
  1372. # define ERR_MAX ESTRPIPE
  1373. # endif
  1374. #endif
  1375. #ifdef EUCLEAN
  1376. /* */
  1377. [ERR_REMAP (EUCLEAN)] = N_("Structure needs cleaning"),
  1378. # if EUCLEAN > ERR_MAX
  1379. # undef ERR_MAX
  1380. # define ERR_MAX EUCLEAN
  1381. # endif
  1382. #endif
  1383. #ifdef ENOTNAM
  1384. /* */
  1385. [ERR_REMAP (ENOTNAM)] = N_("Not a XENIX named type file"),
  1386. # if ENOTNAM > ERR_MAX
  1387. # undef ERR_MAX
  1388. # define ERR_MAX ENOTNAM
  1389. # endif
  1390. #endif
  1391. #ifdef ENAVAIL
  1392. /* */
  1393. [ERR_REMAP (ENAVAIL)] = N_("No XENIX semaphores available"),
  1394. # if ENAVAIL > ERR_MAX
  1395. # undef ERR_MAX
  1396. # define ERR_MAX ENAVAIL
  1397. # endif
  1398. #endif
  1399. #ifdef EISNAM
  1400. /* */
  1401. [ERR_REMAP (EISNAM)] = N_("Is a named type file"),
  1402. # if EISNAM > ERR_MAX
  1403. # undef ERR_MAX
  1404. # define ERR_MAX EISNAM
  1405. # endif
  1406. #endif
  1407. #ifdef EREMOTEIO
  1408. /* */
  1409. [ERR_REMAP (EREMOTEIO)] = N_("Remote I/O error"),
  1410. # if EREMOTEIO > ERR_MAX
  1411. # undef ERR_MAX
  1412. # define ERR_MAX EREMOTEIO
  1413. # endif
  1414. #endif
  1415. #ifdef ENOMEDIUM
  1416. /* */
  1417. [ERR_REMAP (ENOMEDIUM)] = N_("No medium found"),
  1418. # if ENOMEDIUM > ERR_MAX
  1419. # undef ERR_MAX
  1420. # define ERR_MAX ENOMEDIUM
  1421. # endif
  1422. #endif
  1423. #ifdef EMEDIUMTYPE
  1424. /* */
  1425. [ERR_REMAP (EMEDIUMTYPE)] = N_("Wrong medium type"),
  1426. # if EMEDIUMTYPE > ERR_MAX
  1427. # undef ERR_MAX
  1428. # define ERR_MAX EMEDIUMTYPE
  1429. # endif
  1430. #endif
  1431. #ifdef ENOKEY
  1432. /* */
  1433. [ERR_REMAP (ENOKEY)] = N_("Required key not available"),
  1434. # if ENOKEY > ERR_MAX
  1435. # undef ERR_MAX
  1436. # define ERR_MAX ENOKEY
  1437. # endif
  1438. #endif
  1439. #ifdef EKEYEXPIRED
  1440. /* */
  1441. [ERR_REMAP (EKEYEXPIRED)] = N_("Key has expired"),
  1442. # if EKEYEXPIRED > ERR_MAX
  1443. # undef ERR_MAX
  1444. # define ERR_MAX EKEYEXPIRED
  1445. # endif
  1446. #endif
  1447. #ifdef EKEYREVOKED
  1448. /* */
  1449. [ERR_REMAP (EKEYREVOKED)] = N_("Key has been revoked"),
  1450. # if EKEYREVOKED > ERR_MAX
  1451. # undef ERR_MAX
  1452. # define ERR_MAX EKEYREVOKED
  1453. # endif
  1454. #endif
  1455. #ifdef EKEYREJECTED
  1456. /* */
  1457. [ERR_REMAP (EKEYREJECTED)] = N_("Key was rejected by service"),
  1458. # if EKEYREJECTED > ERR_MAX
  1459. # undef ERR_MAX
  1460. # define ERR_MAX EKEYREJECTED
  1461. # endif
  1462. #endif
  1463. #ifdef ERFKILL
  1464. /* */
  1465. [ERR_REMAP (ERFKILL)] = N_("Operation not possible due to RF-kill"),
  1466. # if ERFKILL > ERR_MAX
  1467. # undef ERR_MAX
  1468. # define ERR_MAX ERFKILL
  1469. # endif
  1470. #endif
  1471. #ifdef EHWPOISON
  1472. /* */
  1473. [ERR_REMAP (EHWPOISON)] = N_("Memory page has hardware error"),
  1474. # if EHWPOISON > ERR_MAX
  1475. # undef ERR_MAX
  1476. # define ERR_MAX EHWPOISON
  1477. # endif
  1478. #endif
  1479. };
  1480. #define NERR \
  1481. (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])
  1482. const int _sys_nerr_internal = NERR;
  1483. #if IS_IN (libc) && !defined ERRLIST_NO_COMPAT
  1484. # include <errlist-compat.c>
  1485. #endif
  1486. #ifdef EMIT_ERR_MAX
  1487. void dummy (void)
  1488. { asm volatile (" @@@ %0 @@@ " : : "i" (ERR_REMAP (ERR_MAX))); }
  1489. #endif