* sparc got correct errnos

This commit is contained in:
florian 2005-01-27 21:27:02 +00:00
parent 3abbd722af
commit c446d32790

View File

@ -1,7 +1,7 @@
{ {
$Id$ $Id$
This file is part of the Free Pascal run time library. This file is part of the Free Pascal run time library.
Copyright (c) 1999-2000 by Michael Van Canneyt, Copyright (c) 1999-2005 by Michael Van Canneyt,
member of the Free Pascal development team. member of the Free Pascal development team.
See the file COPYING.FPC, included in this distribution, See the file COPYING.FPC, included in this distribution,
@ -14,11 +14,146 @@
**********************************************************************} **********************************************************************}
{ {
Errno.inc : define all error numbers, kernel version 1.2.13 Errno.inc :
- define all error numbers, kernel version 1.2.13
- updated for sparc from kernel version 2.6.8.1
} }
Const const
{$ifdef CPUSPARC}
{$define FPC_HAS_ESYS}
{ sparc uses Solaris compatible errnos }
{ comments are stripped here, they can be found in the
generic section }
ESysEPERM = 1;
ESysENOENT = 2;
ESysESRCH = 3;
ESysEINTR = 4;
ESysEIO = 5;
ESysENXIO = 6;
ESysE2BIG = 7;
ESysENOEXEC = 8;
ESysEBADF = 9;
ESysECHILD = 10;
ESysEAGAIN = 11;
ESysENOMEM = 12;
ESysEACCES = 13;
ESysEFAULT = 14;
ESysENOTBLK = 15;
ESysEBUSY = 16;
ESysEEXIST = 17;
ESysEXDEV = 18;
ESysENODEV = 19;
ESysENOTDIR = 20;
ESysEISDIR = 21;
ESysEINVAL = 22;
ESysENFILE = 23;
ESysEMFILE = 24;
ESysENOTTY = 25;
ESysETXTBSY = 26;
ESysEFBIG = 27;
ESysENOSPC = 28;
ESysESPIPE = 29;
ESysEROFS = 30;
ESysEMLINK = 31;
ESysEPIPE = 32;
ESysEDOM = 33;
ESysERANGE = 34;
ESysEWOULDBLOCK = ESysEAGAIN;
ESysEINPROGRESS = 36;
ESysEALREADY = 37;
ESysENOTSOCK = 38;
ESysEDESTADDRREQ = 39;
ESysEMSGSIZE = 40;
ESysEPROTOTYPE = 41;
ESysENOPROTOOPT = 42;
ESysEPROTONOSUPPORT = 43;
ESysESOCKTNOSUPPORT = 44;
ESysEOPNOTSUPP = 45;
ESysEPFNOSUPPORT = 46;
ESysEAFNOSUPPORT = 47;
ESysEADDRINUSE = 48;
ESysEADDRNOTAVAIL = 49;
ESysENETDOWN = 50;
ESysENETUNREACH = 51;
ESysENETRESET = 52;
ESysECONNABORTED = 53;
ESysECONNRESET = 54;
ESysENOBUFS = 55;
ESysEISCONN = 56;
ESysENOTCONN = 57;
ESysESHUTDOWN = 58;
ESysETOOMANYREFS = 59;
ESysETIMEDOUT = 60;
ESysECONNREFUSED = 61;
ESysELOOP = 62;
ESysENAMETOOLONG = 63;
ESysEHOSTDOWN = 64;
ESysEHOSTUNREACH = 65;
ESysENOTEMPTY = 66;
ESysEPROCLIM = 67;
ESysEUSERS = 68;
ESysEDQUOT = 69;
ESysESTALE = 70;
ESysEREMOTE = 71;
ESysENOSTR = 72;
ESysETIME = 73;
ESysENOSR = 74;
ESysENOMSG = 75;
ESysEBADMSG = 76;
ESysEIDRM = 77;
ESysEDEADLK = 78;
ESysENOLCK = 79;
ESysENONET = 80;
ESysERREMOTE = 81;
ESysENOLINK = 82;
ESysEADV = 83;
ESysESRMNT = 84;
ESysECOMM = 85;
ESysEPROTO = 86;
ESysEMULTIHOP = 87;
ESysEDOTDOT = 88;
ESysEREMCHG = 89;
ESysENOSYS = 90;
ESysESTRPIPE = 91;
ESysEOVERFLOW = 92;
ESysEBADFD = 93;
ESysECHRNG = 94;
ESysEL2NSYNC = 95;
ESysEL3HLT = 96;
ESysEL3RST = 97;
ESysELNRNG = 98;
ESysEUNATCH = 99;
ESysENOCSI = 100;
ESysEL2HLT = 101;
ESysEBADE = 102;
ESysEBADR = 103;
ESysEXFULL = 104;
ESysENOANO = 105;
ESysEBADRQC = 106;
ESysEBADSLT = 107;
ESysEDEADLOCK = 108;
ESysEBFONT = 109;
ESysELIBEXEC = 110;
ESysENODATA = 111;
ESysELIBBAD = 112;
ESysENOPKG = 113;
ESysELIBACC = 114;
ESysENOTUNIQ = 115;
ESysERESTART = 116;
ESysEUCLEAN = 117;
ESysENOTNAM = 118;
ESysENAVAIL = 119;
ESysEISNAM = 120;
ESysEREMOTEIO = 121;
ESysEILSEQ = 122;
ESysELIBMAX = 123;
ESysELIBSCN = 124;
ESysENOMEDIUM = 125;
ESysEMEDIUMTYPE = 126;
{$endif CPUSPARC}
{$ifndef FPC_HAS_ESYS}
ESysEPERM = 1; { Operation not permitted } ESysEPERM = 1; { Operation not permitted }
ESysENOENT = 2; { No such file or directory } ESysENOENT = 2; { No such file or directory }
ESysESRCH = 3; { No such process } ESysESRCH = 3; { No such process }
@ -29,11 +164,7 @@ ESysE2BIG = 7; { Arg list too long }
ESysENOEXEC = 8; { Exec format error } ESysENOEXEC = 8; { Exec format error }
ESysEBADF = 9; { Bad file number } ESysEBADF = 9; { Bad file number }
ESysECHILD = 10; { No child processes } ESysECHILD = 10; { No child processes }
{$ifdef FreeBSD}
ESysEDEADLK = 11; { Deadlock avoided}
{$else}
ESysEAGAIN = 11; { Try again } ESysEAGAIN = 11; { Try again }
{$endif}
ESysENOMEM = 12; { Out of memory } ESysENOMEM = 12; { Out of memory }
ESysEACCES = 13; { Permission denied } ESysEACCES = 13; { Permission denied }
ESysEFAULT = 14; { Bad address } ESysEFAULT = 14; { Bad address }
@ -63,74 +194,8 @@ ESysEMLINK = 31; { Too many links }
ESysEPIPE = 32; { Broken pipe } ESysEPIPE = 32; { Broken pipe }
ESysEDOM = 33; { Math argument out of domain of func } ESysEDOM = 33; { Math argument out of domain of func }
ESysERANGE = 34; { Math result not representable } ESysERANGE = 34; { Math result not representable }
{$ifdef FreeBSD}
{ non-blocking and interrupt i/o }
ESysEAGAIN = 35; { Resource temporarily unavailable }
// non posix from here on.
ESysEWOULDBLOCK = ESYSEAGAIN; { Operation would block }
ESysEINPROGRESS = 36; { Operation now in progress }
ESysEALREADY = 37; { Operation already in progress }
{ ipc/network software -- argument errors }
ESysENOTSOCK = 38; { Socket operation on non-socket }
ESysEDESTADDRREQ= 39; { Destination address required }
ESysEMSGSIZE = 40; { Message too long }
ESysEPROTOTYPE = 41; { Protocol wrong type for socket }
ESysENOPROTOOPT = 42; { Protocol not available }
ESysEPROTONOSUPPORT= 43;{ Protocol not supported }
ESysESOCKTNOSUPPORT= 44;{ Socket type not supported }
ESysEOPNOTSUPP = 45; { Operation not supported }
ESysENOTSUP = ESYSEOPNOTSUPP; { Operation not supported }
ESysEPFNOSUPPORT= 46; { Protocol family not supported }
ESysEAFNOSUPPORT= 47; { Address family not supported by protocol family }
ESysEADDRINUSE = 48; { Address already in use }
ESysEADDRNOTAVAIL= 49; { Can't assign requested address }
{ ipc/network software -- operational errors }
ESysENETDOWN = 50; { Network is down }
ESysENETUNREACH = 51; { Network is unreachable }
ESysENETRESET = 52; { Network dropped connection on reset }
ESysECONNABORTED= 53; { Software caused connection abort }
ESysECONNRESET = 54; { Connection reset by peer }
ESysENOBUFS = 55; { No buffer space available }
ESysEISCONN = 56; { Socket is already connected }
ESysENOTCONN = 57; { Socket is not connected }
ESysESHUTDOWN = 58; { Can't send after socket shutdown }
ESysETOOMANYREFS= 59; { Too many references: can't splice }
ESysETIMEDOUT = 60; { Operation timed out }
ESysECONNREFUSED= 61; { Connection refused }
ESysELOOP = 62; { Too many levels of symbolic links }
ESysENAMETOOLONG= 63; { File name too long }
ESysEHOSTDOWN = 64; { Host is down }
ESysEHOSTUNREACH= 65; { No route to host }
ESysENOTEMPTY = 66; { Directory not empty }
{ quotas & mush }
ESysEPROCLIM = 67; { Too many processes }
ESysEUSERS = 68; { Too many users }
ESysEDQUOT = 69; { Disc quota exceeded }
{ Network File System }
ESysESTALE = 70; { Stale NFS file handle }
ESysEREMOTE = 71; { Too many levels of remote in path }
ESysEBADRPC = 72; { RPC struct is bad }
ESysERPCMISMATCH= 73; { RPC version wrong }
ESysEPROGUNAVAIL= 74; { RPC prog. not avail }
ESysEPROGMISMATCH= 75; { Program version wrong }
ESysEPROCUNAVAIL= 76; { Bad procedure for program }
ESysENOLCK = 77; { No locks available }
ESysENOSYS = 78; { Function not implemented }
ESysEFTYPE = 79; { Inappropriate file type or format }
ESysEAUTH = 80; { Authentication error }
ESysENEEDAUTH = 81; { Need authenticator }
ESysEIDRM = 82; { Identifier removed }
ESysENOMSG = 83; { No message of desired type }
ESysEOVERFLOW = 84; { Value too large to be stored in data type }
ESysECANCELED = 85; { Operation canceled }
ESysEILSEQ = 86; { Illegal byte sequence }
ESysELAST = 86; { Must be equal largest errno }
{$else}
ESysEDEADLK = 35; { Resource deadlock would occur } ESysEDEADLK = 35; { Resource deadlock would occur }
ESysENAMETOOLONG= 36; { File name too long } ESysENAMETOOLONG= 36; { File name too long }
ESysENOLCK = 37; { No record locks available } ESysENOLCK = 37; { No record locks available }
@ -219,11 +284,14 @@ ESysENAVAIL = 119; { No XENIX semaphores available }
ESysEISNAM = 120; { Is a named type file } ESysEISNAM = 120; { Is a named type file }
ESysEREMOTEIO= 121; { Remote I/O error } ESysEREMOTEIO= 121; { Remote I/O error }
ESysEDQUOT = 122; { Quota exceeded } ESysEDQUOT = 122; { Quota exceeded }
{$endif} {$endif FPC_HAS_ESYS}
{ {
$Log$ $Log$
Revision 1.8 2004-03-04 13:10:29 olle Revision 1.9 2005-01-27 21:27:02 florian
* sparc got correct errnos
Revision 1.8 2004/03/04 13:10:29 olle
+ added comment to ETXTBSY + added comment to ETXTBSY
* changed i386 -> cpui386, m68k -> cpum68k * changed i386 -> cpui386, m68k -> cpum68k