Changeset 5094:5750aa4497a7 in roaraudio for libroar
- Timestamp:
- 07/20/11 14:21:30 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/error.c
r5040 r5094 288 288 case ENOHORSE: _roar_errno = ROAR_ERROR_NOHORSE; break; 289 289 #endif 290 #ifdef ETXTBSY 291 case ETXTBSY: _roar_errno = ROAR_ERROR_TEXTBUSY; break; 292 #endif 293 #ifdef ENOTEMPTY 294 case ENOTEMPTY: _roar_errno = ROAR_ERROR_NOTEMPTY; break 295 #endif 296 #ifdef EHOSTUNREACH 297 case EHOSTUNREACH: _roar_errno = ROAR_ERROR_NODEUNREACH; break 298 #endif 299 #ifdef EIDRM 300 case EIDRM: _roar_errno = ROAR_ERROR_IDREMOVED; break; 301 #endif 302 #ifdef EINPROGRESS 303 case EINPROGRESS: _roar_errno = ROAR_ERROR_INPROGRESS; break 304 #endif 305 #ifdef ECHILD 306 case ECHILD: _roar_errno = ROAR_ERROR_NOCHILD; break 307 #endif 308 #ifdef ENETUNREACH 309 case ENETUNREACH: _roar_errno = ROAR_ERROR_NETUNREACH; break 310 #endif 311 #ifdef ECANCELED 312 case ECANCELED: _roar_errno = ROAR_ERROR_CANCELED; break 313 #endif 314 #ifdef EISDIR 315 case EISDIR: _roar_errno = ROAR_ERROR_ISDIR; break 316 #endif 317 #ifdef ENOTDIR 318 case ENOTDIR: _roar_errno = ROAR_ERROR_NOTDIR; break 319 #endif 320 #ifdef ENOEXEC 321 case ENOEXEC: _roar_errno = ROAR_ERROR_BADEXEC; break; 322 #endif 323 #ifdef EISCONN 324 case EISCONN: _roar_errno = ROAR_ERROR_ISCONN; break; 325 #endif 326 #ifdef EDEADLK 327 case EDEADLK: _roar_errno = ROAR_ERROR_DEADLOCK; break; 328 #endif 329 #ifdef ECONNRESET 330 case ECONNRESET: _roar_errno = ROAR_ERROR_CONNRST; break; 331 #endif 332 #ifdef EBADF 333 case EBADF: _roar_errno = ROAR_ERROR_BADFH; break; 334 #endif 335 #ifdef ENOTSOCK 336 case ENOTSOCK: _roar_errno = ROAR_ERROR_NOTSOCK; break; 337 #endif 338 #ifdef E2BIG 339 case E2BIG: _roar_errno = ROAR_ERROR_TOOMANYARGS; break; 340 #endif 341 #ifdef EFBIG 342 case EFBIG: _roar_errno = ROAR_ERROR_TOOLARGE; break; 343 #endif 344 #ifdef EDESTADDRREQ 345 case EDESTADDRREQ: _roar_errno = ROAR_ERROR_DESTADDRREQ; break; 346 #endif 347 #ifdef EAFNOSUPPORT 348 case EAFNOSUPPORT: _roar_errno = ROAR_ERROR_AFNOTSUP; break; 349 #endif 350 #ifdef ENFILE 351 case ENFILE: _roar_errno = ROAR_ERROR_NFILE; break; 352 #endif 353 #ifdef ESTALE 354 case ESTALE: _roar_errno = ROAR_ERROR_STALE; break; 355 #endif 356 #ifdef EXDEV 357 case EXDEV: _roar_errno = ROAR_ERROR_XDEVLINK; break; 358 #endif 359 #ifdef EMLINK 360 case EMLINK: _roar_errno = ROAR_ERROR_MLINK; break; 361 #endif 362 #ifdef ENONET 363 case ENONET: _roar_errno = ROAR_ERROR_NONET; break; 364 #endif 365 #ifdef ENETRESET 366 case ENETRESET: _roar_errno = ROAR_ERROR_CONNRSTNET; break; 367 #endif 368 #ifdef ECONNABORTED 369 case ECONNABORTED: _roar_errno = ROAR_ERROR_CONNABORTED; break; 370 #endif 290 371 default: 291 372 _roar_errno = ROAR_ERROR_UNKNOWN; … … 545 626 case ROAR_ERROR_NOHORSE: 546 627 errno = ENOHORSE; 628 break; 629 #endif 630 #ifdef ETXTBSY 631 case ROAR_ERROR_TEXTBUSY: 632 errno = ETXTBSY; 633 break; 634 #endif 635 #ifdef ENOTEMPTY 636 case ROAR_ERROR_NOTEMPTY: 637 errno = ENOTEMPTY; 638 break; 639 #endif 640 #ifdef EHOSTUNREACH 641 case ROAR_ERROR_NODEUNREACH: 642 errno = EHOSTUNREACH; 643 break; 644 #endif 645 #ifdef EIDRM 646 case ROAR_ERROR_IDREMOVED: 647 errno = EIDRM; 648 break; 649 #endif 650 #ifdef EINPROGRESS 651 case ROAR_ERROR_INPROGRESS: 652 errno = EINPROGRESS; 653 break; 654 #endif 655 #ifdef ECHILD 656 case ROAR_ERROR_NOCHILD: 657 errno = ECHILD; 658 break; 659 #endif 660 #ifdef ENETUNREACH 661 case ROAR_ERROR_NETUNREACH: 662 errno = ENETUNREACH; 663 break; 664 #endif 665 #ifdef ECANCELED 666 case ROAR_ERROR_CANCELED: 667 errno = ECANCELED; 668 break; 669 #endif 670 #ifdef EISDIR 671 case ROAR_ERROR_ISDIR: 672 errno = EISDIR; 673 break; 674 #endif 675 #ifdef ENOTDOR 676 case ROAR_ERROR_NOTDIR: 677 errno = ENOTDIR; 678 break; 679 #endif 680 #ifdef ENOEXEC 681 case ROAR_ERROR_BADEXEC: 682 errno = ENOEXEC; 683 break; 684 #endif 685 #ifdef EISCONN 686 case ROAR_ERROR_ISCONN: 687 errno = EISCONN; 688 break; 689 #endif 690 #ifdef EDEADLK 691 case ROAR_ERROR_DEADLOCK: 692 errno = EDEADLK; 693 break; 694 #endif 695 #ifdef ECONNRESET 696 case ROAR_ERROR_CONNRST: 697 errno = ECONNRESET; 698 break; 699 #endif 700 #ifdef EBADF 701 case ROAR_ERROR_BADFH: 702 errno = EBADF; 703 break; 704 #endif 705 #ifdef ENOTSOCK 706 case ROAR_ERROR_NOTSOCK: 707 errno = ENOTSOCK; 708 break; 709 #endif 710 #ifdef E2BIG 711 case ROAR_ERROR_TOOMANYARGS: 712 errno = E2BIG; 713 break; 714 #endif 715 #ifdef EFBIG 716 case ROAR_ERROR_TOOLARGE: 717 errno = EFBIG; 718 break; 719 #endif 720 #ifdef EDESTADDRREQ 721 case ROAR_ERROR_DESTADDRREQ: 722 errno = EDESTADDRREQ; 723 break; 724 #endif 725 #ifdef EAFNOSUPPORT 726 case ROAR_ERROR_AFNOTSUP: 727 errno = EAFNOSUPPORT; 728 break; 729 #endif 730 // FIXME.... 731 #ifdef ENOPOWER 732 case ROAR_ERROR_NOPOWER: 733 errno = ENOPOWER; 734 break; 735 #endif 736 #ifdef EUSER 737 case ROAR_ERROR_USER: 738 errno = EUSER; 739 break; 740 #endif 741 742 #ifdef ENFILE 743 case ROAR_ERROR_NFILE: 744 errno = ENFILE; 745 break; 746 #endif 747 #ifdef ESTALE 748 case ROAR_ERROR_STALE: 749 errno = ESTALE; 750 break; 751 #endif 752 #ifdef EXDEV 753 case ROAR_ERROR_XDEVLINK: 754 errno = EXDEV; 755 break; 756 #endif 757 #ifdef EMLINK 758 case ROAR_ERROR_MLINK: 759 errno = EMLINK; 760 break; 761 #endif 762 #ifdef ENONET 763 case ROAR_ERROR_NONET: 764 errno = ENONET; 765 break; 766 #endif 767 #ifdef ENETRESET 768 case ROAR_ERROR_CONNRSTNET: 769 errno = ENETRESET; 770 break; 771 #endif 772 #ifdef ECONNABORTED 773 case ROAR_ERROR_CONNABORTED: 774 errno = ECONNABORTED; 547 775 break; 548 776 #endif … … 623 851 {ROAR_ERROR_CHERNOBYL, "Fatal device error"}, 624 852 {ROAR_ERROR_NOHUG, "Device needs love"}, 853 {ROAR_ERROR_TEXTBUSY, "Text file busy"}, 854 {ROAR_ERROR_NOTEMPTY, "Directory not empty"}, 855 {ROAR_ERROR_NODEUNREACH, "Node is unreachable"}, 856 {ROAR_ERROR_IDREMOVED, "Identifier removed"}, 857 {ROAR_ERROR_INPROGRESS, "Operation in progress"}, 858 {ROAR_ERROR_NOCHILD, "No child processesobject"}, 859 {ROAR_ERROR_NETUNREACH, "Network unreachable"}, 860 {ROAR_ERROR_CANCELED, "Operation canceled"}, 861 {ROAR_ERROR_ISDIR, "Is a directory"}, 862 {ROAR_ERROR_NOTDIR, "Not a directory"}, 863 {ROAR_ERROR_BADEXEC, "Executable file format error"}, 864 {ROAR_ERROR_ISCONN, "SocketObject is connected"}, 865 {ROAR_ERROR_DEADLOCK, "Resource deadlock would occur"}, 866 {ROAR_ERROR_CONNRST, "Connection reset"}, 867 {ROAR_ERROR_BADFH, "Bad file handle"}, 868 {ROAR_ERROR_NOTSOCK, "Not a socket"}, 869 {ROAR_ERROR_TOOMANYARGS, "Argument list too long"}, 870 {ROAR_ERROR_TOOLARGE, "FileObject too large"}, 871 {ROAR_ERROR_DESTADDRREQ, "Destination address required"}, 872 {ROAR_ERROR_AFNOTSUP, "Address family not supported"}, 873 {ROAR_ERROR_NOPOWER, "Operation can not be completed because we are low on power"}, 874 {ROAR_ERROR_USER, "Error in front of screen"}, 875 {ROAR_ERROR_NFILE, "Too many filesobjects open in system"}, 876 {ROAR_ERROR_STALE, "Stale file handle or object"}, 877 {ROAR_ERROR_XDEVLINK, "Cross-device link"}, 878 {ROAR_ERROR_MLINK, "Too many links to file or object"}, 879 {ROAR_ERROR_NONET, "Not connected to any network"}, 880 {ROAR_ERROR_CONNRSTNET, "Connection reset by network"}, 881 {ROAR_ERROR_CONNABORTED, "Connection aborted"}, 625 882 {-1, NULL} 626 883 };
Note: See TracChangeset
for help on using the changeset viewer.