asm-errlist.h 40 KB

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