/usr/include/dpm/serrno.h is in libdpm-dev 1.8.7-3.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | /*
* Copyright (C) 1990-2006 by CERN/IT/PDP/DM
* All rights reserved
*/
/*
* $Id: serrno.h,v 1.5 2006/01/27 09:52:14 baud Exp $
*/
/* serrno.h Special error numbers - not in errno.h */
#ifndef _SERRNO_H_INCLUDED_
#define _SERRNO_H_INCLUDED_
#ifndef _SHIFT_H_INCLUDED_
#include <osdep.h> /* EXTERN_C, DLL_DECL, _PROTO */
#endif
#include <sys/types.h> /* For size_t */
#include <stddef.h> /* For size_t on _WIN32 */
#define SEBASEOFF 1000 /* Base offset for special err. */
#define ECBASEOFF 1100 /* COPYTAPE error base offset */
#define EDBBASEOFF 1200 /* CDB error base offset */
#define EMSBASEOFF 1300 /* MSG error base offset */
#define ENSBASEOFF 1400 /* NS error base offset */
#define ERFBASEOFF 1500 /* RFIO error base offset */
#define ERTBASEOFF 1600 /* RTCOPY error base offset */
#define ESTBASEOFF 1700 /* STAGE error base offset */
#define ESQBASEOFF 1800 /* SYSREQ error base offset */
#define ETBASEOFF 1900 /* TAPE error base offset */
#define EVMBASEOFF 2000 /* VMGR error base offset */
#define EVQBASEOFF 2100 /* VDQM error base offset */
#define ERMBASEOFF 2200 /* RMC error base offset */
#define EMONBASEOFF 2300 /* Monitoring Error base offset */
#define EUPBASEOFF 2400 /* UPV error base offset */
#define EDLFBASEOFF 2500 /* DLF error base offset */
#define EDPMBASEOFF 2600 /* DPM error base offset */
#define ESECBASEOFF 2700 /* Security error base offset */
#define SENOERR SEBASEOFF /* No error */
#define SENOSHOST SEBASEOFF+1 /* Host unknown */
#define SENOSSERV SEBASEOFF+2 /* Service unknown */
#define SENOTRFILE SEBASEOFF+3 /* Not a remote file */
#define SETIMEDOUT SEBASEOFF+4 /* Has timed out */
#define SEBADFFORM SEBASEOFF+5 /* Bad fortran format specifier */
#define SEBADFOPT SEBASEOFF+6 /* Bad fortran option specifier */
#define SEINCFOPT SEBASEOFF+7 /* Incompatible fortran options */
#define SENAMETOOLONG SEBASEOFF+8 /* File name too long */
#define SENOCONFIG SEBASEOFF+9 /* Can't open configuration file*/
#define SEBADVERSION SEBASEOFF+10 /* Version ID mismatch */
#define SEUBUF2SMALL SEBASEOFF+11 /* User buffer too small */
#define SEMSGINVRNO SEBASEOFF+12 /* Invalid reply number */
#define SEUMSG2LONG SEBASEOFF+13 /* User message too long */
#define SEENTRYNFND SEBASEOFF+14 /* Entry not found */
#define SEINTERNAL SEBASEOFF+15 /* Internal error */
#define SECONNDROP SEBASEOFF+16 /* Connection closed by rem. end*/
#define SEBADIFNAM SEBASEOFF+17 /* Can't get interface name */
#define SECOMERR SEBASEOFF+18 /* Communication error */
#define SENOMAPDB SEBASEOFF+19 /* Can't open mapping database */
#define SENOMAPFND SEBASEOFF+20 /* No user mapping */
#define SERTYEXHAUST SEBASEOFF+21 /* Retry count exhausted */
#define SEOPNOTSUP SEBASEOFF+22 /* Operation not supported */
#define SEWOULDBLOCK SEBASEOFF+23 /* Resource temporarily unavailable */
#define SEINPROGRESS SEBASEOFF+24 /* Operation now in progress */
#define SECTHREADINIT SEBASEOFF+25 /* Cthread initialization error */
#define SECTHREADERR SEBASEOFF+26 /* Thread interface call error */
#define SESYSERR SEBASEOFF+27 /* System error */
#define SEADNSINIT SEBASEOFF+28 /* adns_init() error */
#define SEADNSSUBMIT SEBASEOFF+29 /* adns_submit() error */
#define SEADNS SEBASEOFF+30 /* adns resolving error */
#define SEADNSTOOMANY SEBASEOFF+31 /* adns returned more than one entry */
#define SENOTADMIN SEBASEOFF+32 /* requestor is not administrator */
#define SEUSERUNKN SEBASEOFF+33 /* User unknown */
#define SEDUPKEY SEBASEOFF+34 /* Duplicate key value */
#define SEENTRYEXISTS SEBASEOFF+35 /* Entry already exists */
#define SEGROUPUNKN SEBASEOFF+36 /* Group Unknown */
#define SECHECKSUM SEBASEOFF+37 /* Wrong checksum */
#define SELOOP SEBASEOFF+38 /* Too many symbolic links encountered */
#define SEMAXERR SEBASEOFF+38 /* Maximum error number */
#define SERRNO (serrno - SEBASEOFF) /* User convenience */
/*
* Backward compatibility
*/
#define SEFNAM2LONG SENAMETOOLONG
/*
* Package specific error messages (don't forget to update commmon/serror.c)
*/
/*
*------------------------------------------------------------------------
* COPYTAPE errors
*------------------------------------------------------------------------
*/
#define ECMAXERR ECBASEOFF
/*
*------------------------------------------------------------------------
* DB errors
*------------------------------------------------------------------------
*/
#define EDB_A_ESESSION EDBBASEOFF+1 /* Cdb api : invalid session */
#define EDB_A_EDB EDBBASEOFF+2 /* Cdb api : invalid db */
#define EDB_A_EINVAL EDBBASEOFF+3 /* Cdb api : invalid value */
#define EDB_A_RESHOST EDBBASEOFF+4 /* Cdb api : host res error */
#define EDB_A_TOOMUCH EDBBASEOFF+5 /* Cdb api : data size rejected */
#define EDB_AS_SOCKET EDBBASEOFF+6 /* Cdb api system : socket() error */
#define EDB_AS_SOCKOPT EDBBASEOFF+7 /* Cdb api system : [set/get]sockopt() error */
#define EDB_AS_MALLOC EDBBASEOFF+8 /* Cdb api system : malloc() error */
#define EDB_A_NOERROR EDBBASEOFF+9 /* Cdb api : no last error */
#define EDB_A_IEINVAL EDBBASEOFF+10 /* Cdb api : interface invalid value */
#define EDB_AS_BIND EDBBASEOFF+11 /* Cdb api : bind() error */
#define EDB_AS_LISTEN EDBBASEOFF+12 /* Cdb api : listen() error */
#define EDB_AS_GETSOCKNAME EDBBASEOFF+13 /* Cdb api : getsockname() error */
#define EDB_AS_ACCEPT EDBBASEOFF+14 /* Cdb api : accept() error */
#define EDB_AS_GETPEERNAME EDBBASEOFF+15 /* Cdb api : getpeername() error */
#define EDB_A_WHOISIT EDBBASEOFF+16 /* Cdb api : Connection from bad host */
#define EDB_D_EINVAL EDBBASEOFF+20 /* Cdb daemon : invalid value */
#define EDB_D_EAGAIN EDBBASEOFF+21 /* Cdb daemon : yet done */
#define EDB_D_AUTH EDBBASEOFF+22 /* Cdb daemon : unauthorized */
#define EDB_D_LOGIN EDBBASEOFF+23 /* Cdb daemon : login refused */
#define EDB_D_PWDCORR EDBBASEOFF+24 /* Cdb daemon : pwd file corrupted */
#define EDB_D_ANA EDBBASEOFF+25 /* Cdb daemon : db analysis error */
#define EDB_D_HASHSIZE EDBBASEOFF+26 /* Cdb daemon : bad hash size */
#define EDB_D_UNKNOWN EDBBASEOFF+27 /* Cdb daemon : unkn. db/table/key */
#define EDB_D_NOLOCK EDBBASEOFF+28 /* Cdb daemon : lock is required */
#define EDB_D_CORRUPT EDBBASEOFF+29 /* Cdb daemon : probably corrupted */
#define EDB_D_TOOMUCH EDBBASEOFF+30 /* Cdb daemon : data size rejected */
#define EDB_D_ENOENT EDBBASEOFF+31 /* Cdb daemon : no entry */
#define EDB_D_ETYPE EDBBASEOFF+32 /* Cdb daemon : unknown member type*/
#define EDB_D_EVALUE EDBBASEOFF+33 /* Cdb daemon : unknown member val */
#define EDB_D_NULLVALUE EDBBASEOFF+34 /* Cdb daemon : null member value */
#define EDB_D_LOCK EDBBASEOFF+35 /* Cdb daemon : cannot gain lock */
#define EDB_D_FREE EDBBASEOFF+36 /* Cdb daemon : unsafe free attempt*/
#define EDB_D_SHUTDOWN EDBBASEOFF+37 /* Cdb daemon : shutdown in progress */
#define EDB_D_DEADLOCK EDBBASEOFF+38 /* Cdb daemon : deadlock detected */
#define EDB_D_EXIST EDBBASEOFF+39 /* Cdb daemon : yet exists */
#define EDB_D_NOSPC EDBBASEOFF+40 /* Cdb daemon : no more space */
#define EDB_D_DUMPEND EDBBASEOFF+41 /* Cdb daemon : end of dump */
#define EDB_D_UNIQUE EDBBASEOFF+42 /* Cdb daemon : uniqued key yet exist */
#define EDB_D_LISTEND EDBBASEOFF+43 /* Cdb daemon : end of list */
#define EDB_D_NOTDUMP EDBBASEOFF+44 /* Cdb daemon : not in dump mode */
#define EDB_D_DNSCHECK EDBBASEOFF+45 /* Cdb daemon : double DNS check error */
#define EDB_D_REJECTED EDBBASEOFF+46 /* Cdb daemon : Connection rejected (not authorised) */
#define EDB_D_INIT EDBBASEOFF+47 /* Cdb daemon : init in progress */
#define EDB_D_INCONST EDBBASEOFF+48 /* Cdb daemon : inconsistent request (unstop and no previous stop, unfreeze and no previous freeze) */
#define EDB_D_FREEHASHSIZE EDBBASEOFF+49 /* Cdb daemon : bad free hash size */
#define EDB_DS_MALLOC EDBBASEOFF+50 /* Cdb daemon system : malloc() error */
#define EDB_DS_CALLOC EDBBASEOFF+51 /* Cdb daemon system : calloc() error */
#define EDB_DS_REALLOC EDBBASEOFF+52 /* Cdb daemon system : realloc() error */
#define EDB_DS_OPEN EDBBASEOFF+53 /* Cdb daemon system : open() error */
#define EDB_DS_FSTAT EDBBASEOFF+54 /* Cdb daemon system : fstat() error */
#define EDB_DS_LSEEK EDBBASEOFF+55 /* Cdb daemon system : lseek() error */
#define EDB_DS_READ EDBBASEOFF+56 /* Cdb daemon system : read() error */
#define EDB_DS_WRITE EDBBASEOFF+57 /* Cdb daemon system : write() error */
#define EDB_DS_RENAME EDBBASEOFF+58 /* Cdb daemon system : rename() error */
#define EDB_DS_FTRUNC EDBBASEOFF+59 /* Cdb daemon system : ftruncate() error */
#define EDB_DS_TMPNAM EDBBASEOFF+60 /* Cdb daemon system : tmpnam() error */
#define EDB_DS_FCNTL EDBBASEOFF+61 /* Cdb daemon system : fcntl() error */
#define EDB_DS_MKDIR EDBBASEOFF+62 /* Cdb daemon system : mkdir() error */
#define EDB_DS_TIMES EDBBASEOFF+63 /* Cdb daemon system : times() error */
#define EDB_DS_SYSCONF EDBBASEOFF+64 /* Cdb daemon system : sysconf() err/unav */
#define EDB_DS_GETHOSTNAME EDBBASEOFF+65 /* Cdb daemon system : gethostname() error*/
#define EDB_DS_GETPEERNAME EDBBASEOFF+66 /* Cdb daemon system : getpeername() error*/
#define EDB_DS_INET_NTOA EDBBASEOFF+67 /* Cdb daemon system : getpeername() error*/
#define EDB_DS_REMOVE EDBBASEOFF+68 /* Cdb daemon system : remove() error */
#define EDB_DS_SIGACTION EDBBASEOFF+69 /* Cdb daemon system : sigaction() error */
#define EDB_DS_GETSOCKNAME EDBBASEOFF+70 /* Cdb daemon system : getsockname() error*/
#define EDB_DS_BIND EDBBASEOFF+71 /* Cdb daemon system : bind() error*/
#define EDB_DS_LISTEN EDBBASEOFF+72 /* Cdb daemon system : listen() error*/
#define EDB_DS_CONNECT EDBBASEOFF+73 /* Cdb daemon system : connect() error*/
#define EDB_DS_SOCKET EDBBASEOFF+74 /* Cdb daemon system : socket() error*/
#define EDB_DS_SOCKOPT EDBBASEOFF+75 /* Cdb daemon system : [set/get]sockopt() error*/
#define EDB_D_RESHOST EDBBASEOFF+76 /* Cdb daemon : host res error */
#define EDB_D_REQSIZE EDBBASEOFF+77 /* Cdb daemon : request too big */
#define EDB_C_EINVAL EDBBASEOFF+80 /* Cdb config : invalid value */
#define EDB_C_ENOENT EDBBASEOFF+81 /* Cdb config : configuration error*/
#define EDB_C_TOOMUCH EDBBASEOFF+82 /* Cdb config : conf. size rejected */
#define EDB_CS_GETHOSTNAME EDBBASEOFF+83 /* Cdb config system : gethostname() error*/
#define EDB_NOMOREDB EDBBASEOFF+90 /* Cdb : nomoredb */
#define EDBMAXERR EDBBASEOFF+90
/*
*------------------------------------------------------------------------
* MSG daemon errors
*------------------------------------------------------------------------
*/
#define EMSMSGU2REP EMSBASEOFF+1 /* msg daemon unable to reply */
#define EMSMSGSYERR EMSBASEOFF+2 /* msg daemon system error */
#define EMSNOPERM EMSBASEOFF+3 /* Permission denied */
#define EMSMAXERR EMSBASEOFF+3 /* Maximum error number of MSG */
/*
* Backward compatibility
*/
#define SEMSGU2REP EMSMSGU2REP
#define SEMSGSYERR EMSMSGSYERR
#define SENOPERM EMSNOPERM
/*
*------------------------------------------------------------------------
* NS (Name Server) errors
*------------------------------------------------------------------------
*/
#define ENSNACT ENSBASEOFF+1 /* name server not active or service being drained */
#define ENSMAXERR ENSBASEOFF+1
/*
*------------------------------------------------------------------------
* RFIO errors
*------------------------------------------------------------------------
*/
#define ERFNORCODE ERFBASEOFF+1 /* RFIO communication error */
#define ERFHOSTREFUSED ERFBASEOFF+2 /* RFIO rejected connect attempt*/
#define ERFXHOST ERFBASEOFF+3 /* Cross-host link (rename()) */
#define ERFPROTONOTSUP ERFBASEOFF+4 /* RFIO protocol not supported */
#define ERFMAXERR ERFBASEOFF+4 /* Maximum error number of RFIO */
/*
* Backward compatibility
*/
#define SENORCODE ERFNORCODE
#define SEHOSTREFUSED ERFHOSTREFUSED
#define SEXHOST ERFXHOST
#define SEPROTONOTSUP ERFPROTONOTSUP
/*
*------------------------------------------------------------------------
* RTCOPY errors
*------------------------------------------------------------------------
*/
#define ERTTMSERR ERTBASEOFF+1 /* TMS call failed */
#define ERTBLKSKPD ERTBASEOFF+2 /* Blocks were skipped in file */
#define ERTTPE_LSZ ERTBASEOFF+3 /* Blocks skipped and file truncated */
#define ERTMNYPARY ERTBASEOFF+4 /* Too many skipped blocks */
#define ERTLIMBYSZ ERTBASEOFF+5 /* File limited by size */
#define ERTUSINTR ERTBASEOFF+6 /* Request interrupted by user */
#define ERTOPINTR ERTBASEOFF+7 /* Request interrupted by operator */
#define ERTNOTCLIST ERTBASEOFF+8 /* Request list is not circular */
#define ERTBADREQ ERTBASEOFF+9 /* Bad request structure */
#define ERTMAXERR ERTBASEOFF+9
/*
*------------------------------------------------------------------------
* STAGE errors
*------------------------------------------------------------------------
*/
#define ESTCLEARED ESTBASEOFF+1 /* aborted by stageclr */
#define ESTENOUGHF ESTBASEOFF+2 /* enough free space */
#define ESTLNKNCR ESTBASEOFF+3 /* symbolic link not created */
#define ESTLNKNSUP ESTBASEOFF+4 /* symbolic link not supported */
#define ESTNACT ESTBASEOFF+5 /* Stager not active */
#define ESTGROUP ESTBASEOFF+6 /* Your group is invalid */
#define ESTGRPUSER ESTBASEOFF+7 /* No GRPUSER in configuration */
#define ESTUSER ESTBASEOFF+8 /* Invalid user */
#define ESTHSMHOST ESTBASEOFF+9 /* HSM HOST not specified */
#define ESTTMSCHECK ESTBASEOFF+10 /* tmscheck error */
#define ESTLINKNAME ESTBASEOFF+11 /* User link name processing error */
#define ESTWRITABLE ESTBASEOFF+12 /* User path in a non-writable directory */
#define ESTKILLED ESTBASEOFF+13 /* aborted by kill */
#define ESTMEM ESTBASEOFF+14 /* request too long (api) */
#define ESTCONF ESTBASEOFF+15 /* Stage configuration error */
#define ESTMAXERR ESTBASEOFF+15
/*
*------------------------------------------------------------------------
* SYSREQ errors
*------------------------------------------------------------------------
*/
#define ESQTMSNOTACT ESQBASEOFF+1 /* TMS not active */
#define ESQMAXERR ESQBASEOFF+1 /* Maximum error number of SYSREQ */
/*
* Backward compatibility
*/
#define SETMSNOTACT ESQTMSNOTACT
/*
*------------------------------------------------------------------------
* TAPE errors
*------------------------------------------------------------------------
*/
#define ETDNP ETBASEOFF+1 /* daemon not available */
#define ETSYS ETBASEOFF+2 /* system error */
#define ETPRM ETBASEOFF+3 /* bad parameter */
#define ETRSV ETBASEOFF+4 /* reserv already issued */
#define ETNDV ETBASEOFF+5 /* too many drives requested */
#define ETIDG ETBASEOFF+6 /* invalid device group name */
#define ETNRS ETBASEOFF+7 /* reserv not done */
#define ETIDN ETBASEOFF+8 /* no drive with requested characteristics */
#define ETLBL ETBASEOFF+9 /* bad label structure */
#define ETFSQ ETBASEOFF+10 /* bad file sequence number */
#define ETINTR ETBASEOFF+11 /* interrupted by user */
#define ETEOV ETBASEOFF+12 /* EOV found in multivolume set */
#define ETRLSP ETBASEOFF+13 /* release pending */
#define ETBLANK ETBASEOFF+14 /* blank tape */
#define ETCOMPA ETBASEOFF+15 /* compatibility problem */
#define ETHWERR ETBASEOFF+16 /* device malfunction */
#define ETPARIT ETBASEOFF+17 /* parity error */
#define ETUNREC ETBASEOFF+18 /* unrecoverable media error */
#define ETNOSNS ETBASEOFF+19 /* no sense */
#define ETRSLT ETBASEOFF+20 /* reselect server */
#define ETVBSY ETBASEOFF+21 /* volume busy or inaccessible */
#define ETDCA ETBASEOFF+22 /* drive currently assigned */
#define ETNRDY ETBASEOFF+23 /* drive not ready */
#define ETABSENT ETBASEOFF+24 /* volume absent */
#define ETARCH ETBASEOFF+25 /* volume archived */
#define ETHELD ETBASEOFF+26 /* volume held or disabled */
#define ETNXPD ETBASEOFF+27 /* file not expired */
#define ETOPAB ETBASEOFF+28 /* operator cancel */
#define ETVUNKN ETBASEOFF+29 /* volume unknown */
#define ETWLBL ETBASEOFF+30 /* wrong label type */
#define ETWPROT ETBASEOFF+31 /* cartridge write protected */
#define ETWVSN ETBASEOFF+32 /* wrong vsn */
#define ETBADMIR ETBASEOFF+33 /* Tape has a bad MIR */
#define ETMAXERR ETBASEOFF+33
/*
*------------------------------------------------------------------------
* VMGR (Volume Manager) errors
*------------------------------------------------------------------------
*/
#define EVMGRNACT EVMBASEOFF+1 /* volume manager not active or service being drained */
#define EVMMAXERR EVMBASEOFF+1
/*
*------------------------------------------------------------------------
* UPV (User Privilege Validator) errors
*------------------------------------------------------------------------
*/
#define ECUPVNACT EUPBASEOFF+1 /* User Privilege Validator not active or service being drained */
#define EUPMAXERR EUPBASEOFF+1
/*
*------------------------------------------------------------------------
* DLF (Distributed Logging Facility) errors
*------------------------------------------------------------------------
*/
#define EDLFNACT EDLFBASEOFF+1 /* Logging facility not active or service being drained */
#define EDLFNOFAC EDLFBASEOFF+2 /* No such facility in the database */
#define EDLFREFEXIST EDLFBASEOFF+3 /* References exist */
#define EDLFNOTFOUND EDLFBASEOFF+4 /* Row was not found in the database */
#define EDLFLOGFORMAT EDLFBASEOFF+5 /* Log file format error */
#define EDLFMAXERR EDLFBASEOFF+5
/*
*------------------------------------------------------------------------
* VDQM (Volume & Drive Queue Manager) errors
*------------------------------------------------------------------------
*/
#define EVQSYERR EVQBASEOFF+1 /* Failed system call */
#define EVQINCONSIST EVQBASEOFF+2 /* Internal DB inconsistency */
#define EVQREPLICA EVQBASEOFF+3 /* DB replication failed */
#define EVQNOVOL EVQBASEOFF+4 /* No volume request queued */
#define EVQNODRV EVQBASEOFF+5 /* No free drive available */
#define EVQNOSVOL EVQBASEOFF+6 /* Specified vol. req. not found */
#define EVQNOSDRV EVQBASEOFF+7 /* Specified drv. req. not found */
#define EVQALREADY EVQBASEOFF+8 /* Specified vol. req. already exists */
#define EVQUNNOTUP EVQBASEOFF+9 /* Unit not up */
#define EVQBADSTAT EVQBASEOFF+10 /* Bad unit status request */
#define EVQBADID EVQBASEOFF+11 /* Incorrect vol.req or job ID */
#define EVQBADJOBID EVQBASEOFF+12 /* Incorrect job ID */
#define EVQNOTASS EVQBASEOFF+13 /* Unit not assigned */
#define EVQBADVOLID EVQBASEOFF+14 /* Attempt to mount with wrong VOLID */
#define EVQREQASS EVQBASEOFF+15 /* Attempt to delete an assigned req */
#define EVQDGNINVL EVQBASEOFF+16 /* Vol. req. for non-existing DGN */
#define EVQPIPEFULL EVQBASEOFF+17 /* Replication pipe is full */
#define EVQHOLD EVQBASEOFF+18 /* Server is held */
#define EVQEOQREACHED EVQBASEOFF+19 /* End of query reached */
#define EVQMAXERR EVQBASEOFF+19
/*
*------------------------------------------------------------------------
* RMC (Remote SCSI media changer server) errors
*------------------------------------------------------------------------
*/
#define ERMCNACT ERMBASEOFF+1 /* Remote SCSI media changer server not active or service being drained */
#define ERMCRBTERR (ERMBASEOFF+2) /* Remote SCSI media changer error */
#define ERMCUNREC ERMCRBTERR+1 /* Remote SCSI media changer unrec. error */
#define ERMCSLOWR ERMCRBTERR+2 /* Remote SCSI media changer error (slow retry) */
#define ERMCFASTR ERMCRBTERR+3 /* Remote SCSI media changer error (fast retry) */
#define ERMCDFORCE ERMCRBTERR+4 /* Remote SCSI media changer error (demount force) */
#define ERMCDDOWN ERMCRBTERR+5 /* Remote SCSI media changer error (drive down) */
#define ERMCOMSGN ERMCRBTERR+6 /* Remote SCSI media changer error (ops message) */
#define ERMCOMSGS ERMCRBTERR+7 /* Remote SCSI media changer error (ops message + retry) */
#define ERMCOMSGR ERMCRBTERR+8 /* Remote SCSI media changer error (ops message + wait) */
#define ERMCUNLOAD ERMCRBTERR+9 /* Remote SCSI media changer error (unload + demount) */
#define ERMMAXERR ERMBASEOFF+11
/*
*------------------------------------------------------------------------
* MONITORING ERRORS
*------------------------------------------------------------------------
*/
#define EMON_SYSTEM EMONBASEOFF+1 /* When a system error causes the monitoring to stop */
#define EMON_NO_HOST EMONBASEOFF+2 /* No monitoring host defined in the configuration */
#define EMON_NO_PORT EMONBASEOFF+3 /* No monitoring port defined in the configuration */
#define EMON_NO_CLIENTPORT EMONBASEOFF+4 /* No port for client requests defined in the configuration */
#define EMONMAXERR EMONBASEOFF+4
/*
*------------------------------------------------------------------------
* DPM (Disk Pool Manager) errors
*------------------------------------------------------------------------
*/
#define EDPMNACT EDPMBASEOFF+1 /* Disk Pool Manager server not active or service being drained */
#define EDPMMAXERR EDPMBASEOFF+1
/*
*------------------------------------------------------------------------
* SECURITY ERRORS
*------------------------------------------------------------------------
*/
#define ESEC_SYSTEM ESECBASEOFF + 1 /* System error in the security package */
#define ESEC_BAD_CREDENTIALS ESECBASEOFF + 2 /* Bad credentials */
#define ESEC_NO_CONTEXT ESECBASEOFF + 3 /* Could not establish context */
#define ESEC_BAD_MAGIC ESECBASEOFF + 4 /* Bad magic number */
#define ESEC_NO_USER ESECBASEOFF + 5 /* Could not map username to uid/gid */
#define ESEC_NO_PRINC ESECBASEOFF + 6 /* Could not map principal to username */
#define ESEC_NO_SECMECH ESECBASEOFF + 7 /* Could not load security mechanism */
#define ESEC_CTX_NOT_INITIALIZED ESECBASEOFF + 8 /* Context not initialized */
#define ESEC_PROTNOTSUPP ESECBASEOFF + 9 /* Security protocol not supported */
#define ESEC_NO_SVC_NAME ESECBASEOFF + 10 /* Service name not set */
#define ESEC_NO_SVC_TYPE ESECBASEOFF + 11 /* Service type not set */
#define ESEC_NO_SECPROT ESECBASEOFF + 12 /* Could not lookup security protocol */
#define ESEC_BAD_CSEC_VERSION ESECBASEOFF + 13 /* Csec incompatability */
#define ESEC_BAD_PEER_RESP ESECBASEOFF + 14 /* Unexpected response from peer */
#define ESECMAXERR ESECBASEOFF + 14
/*
*------------------------------------------------------------------------
* End of package specific error messages
*------------------------------------------------------------------------
*/
#if defined(_REENTRANT) || defined(_THREAD_SAFE) || (defined(_WIN32) && (defined(_MT) || defined(_DLL)))
/*
* Multi-thread (MT) environment
*/
EXTERN_C int DLL_DECL *C__serrno _PROTO((void));
/*
* Thread safe serrno. Note, C__serrno is defined in Cglobals.c rather
* rather than serror.c .
*/
#define serrno (*C__serrno())
#else /* _REENTRANT || _THREAD_SAFE ... */
/*
* non-MT environment
*/
extern int serrno; /* Global error number */
#endif /* _REENTRANT || _TREAD_SAFE */
EXTERN_C char DLL_DECL *sstrerror_r _PROTO((int,char *, size_t));
EXTERN_C char DLL_DECL *sstrerror _PROTO((int));
EXTERN_C void DLL_DECL sperror _PROTO((char *));
extern char *sys_serrlist[]; /* Error text array */
#endif /* _SERRNO_H_INCLUDED_ */
|