1.11 errno Values

See the spawnlp/spawnvp Values for additional return values.

These are the return values defined in the ERRNO.H file:

-1

EFAILURE (Non-ANSI): Failed

0

ESUCCESS (Non-ANSI): Successful

1

ENOENT (ANSI): No such entity (file or directory)

2

E2BIG (ANSI): Argument list too big

3

ENOEXEC (ANSI): Execution format error

4

EBADF (ANSI): Bad file number

4

EBADF (BSD Socket): Bad handle or the handle is not an active socket handle

5

ENOMEM (ANSI): Not enough memory

6

EACCES (ANSI): Permission denied

7

EEXIST (ANSI): File exists

8

EXDEV (ANSI): Cross-device link

9

EINVAL (ANSI, BSD Socket): Invalid argument

10

ENFILE (ANSI): File table overflow

11

EMFILE (ANSI): Too many open files

12

ENOSPC (ANSI): No space left on device

13

EDOM (Math): Argument too large

14

ERANGE (Math): Result too large

15

EDEADLK (File-locking): Resource deadlock

16

EINUSE (Implementation-defined): Resource(s) in use

17

ESERVER (Implementation-defined): Server error (out of memory, I/O error, etc.)

18

ENOSERVR (Implementation-defined): No server (no queue server, no server, etc.)

19

EWRNGKND (Implementation-defined): An operation is being attempted on the wrong object type

20

ETRNREST (Implementation-defined): Transaction restarted (NetWareErrno=163)

21

ERESOURCE (Implementation-defined): Resources are not available (might be permanent)

22

EBADHNDL (Implementation-defined): A bad handle (screen, file, semaphore, etc.)

23

ENO_SCRNS (Implementation-defined): Screen I/O attempted with no screens

24

EAGAIN (STREAMS): Resource temporarily unavailable

25

ENXIO (STREAMS): No such device or address

26

EBADMSG (STREAMS): Not a data message

27

EFAULT (AppleTalk): With ATNBPConfirm, everything you asked for is right except the socket number. With ATNBPRegister or ATNBPRegisterByAddr, the zone in which you attempted an explicit registration is not valid.

27

EFAULT (BSD Socket, STREAMS): Bad address or the address is not specified or is invalid

28

EIO (STREAMS): Physical I/O error

29

ENODATA (STREAMS): No data

30

ENOSTRMS (STREAMS): Streams not loaded

31

EPROTO (BSD Socket): Fatal protocol error

32

EPIPE (BSD Socket): Broken pipe

33

ESPIPE (BSD Socket): Illegal seek (should be 29)

34

ETIME (BSD Socket): ioctl acknowledge time-out

35

EWOULDBLOCK (BSD Socket): Operation would block

36

EINPROGRESS (BSD Socket): Operation now in progress

37

EALREADY (BSD Socket): Operation already in progress

38

ENOTSOCK (BSD Socket): Socket operation on nonsocket

39

EDESTADDRREQ (BSD Socket): Destination address required

40

EMSGSIZE (AppleTalk): The packet you sent is too large or too small

40

EMSGSIZE (BSD Socket): Message is too long

41

EPROTOTYPE (BSD Socket): Protocol wrong type for socket

42

ENOPROTOOPT (BSD Socket): Protocol not available

43

EPROTONOSUPPORT (BSD Socket): Protocol not supported

44

ESOCKTNOSUPPORT (BSD Socket): Socket type not supported

45

EOPNOTSUPP (BSD Socket): Operation not supported on socket

46

EPFNOSUPPORT (BSD Socket): Protocol family not supported

47

EAFNOSUPPORT (BSD Socket): Address family not supported by protocol family

48

EADDRINUSE (AppleTalk): Another protocol client is using the socket you specified

48

EADDRINUSE (BSD Socket): Address already in use

49

EADDRNOTAVAIL (AppleTalk): There are no sockets available or the name-address tuple already exists

49

EADDRNOTAVAIL (BSD Socket): Cannot assign requested address

50

ENETDOWN (AppleTalk): The network on which you attempted to send a datagram is down

50

ENETDOWN (BSD Socket): Network is down or TCP/IP NLM was unloaded

51

ENETUNREACH (AppleTalk): No router is available

51

ENETUNREACH (BSD Socket): Network is unreachable

52

ENETRESET (BSD Socket): Network dropped connection on reset

53

ECONNABORTED (BSD Socket): Software caused connection abort

54

ECONNRESET (BSD Socket): Connection reset by peer

55

ENOBUFS (AppleTalk): Insufficient buffer space is available

55

ENOBUFS (BSD Socket): No buffer space available

56

EISCONN (BSD Socket): Socket is already connected

57

ENOTCON (AppleTalk, BSD Socket): The socket you specified has not been opened or connected

58

ESHUTDOWN (BSD Socket): Cannot send after socket shutdown

59

ETOOMANYREFS (BSD Socket): Too many referenced cannot splice

60

ETIMEDOUT (AppleTalk): The function did not return a value within the time interval and the number of retries you specified

60

ETIMEDOUT (BSD Socket): Connection timed out

61

ECONNREFUSED (BSD Socket): Connection refused

The errno global variable is ANSI standard, defined in ERRNO.H. The value of errno is set to 0 at program start-up, and cannot be set to 0 by any library function. However, the value of errno can be set to a nonzero value by any function, whether or not there is an error. The documentation for the functions indicates the use of errno to process errors.

NOTE:Because errno can be set when there is no error, do not check errno unless there is an indication of a failure.

1.11.1 spawnlp/spawnvp Values

1

LOAD_COULD_NOT_FIND_FILE

2

LOAD_ERROR_READING_FILE

3

LOAD_NOT_NLM_FILE_FORMAT

4

LOAD_WRONG_NLM_FILE_VERSION

5

LOAD_REENTRANT_INITIALIZE_FAILURE

6

LOAD_CAN_NOT_LOAD_MULTIPLE_COPIES

7

LOAD_ALREADY_IN_PROGRESS

8

LOAD_NOT_ENOUGH_MEMORY

9

LOAD_INITIALIZE_FAILURE

10

LOAD_INCONSISTENT_FILE_FORMAT

11

LOAD_CAN_NOT_LOAD_AT_STARTUP

12

LOAD_AUTO_LOAD_MODULES_NOT_LOADED

13

LOAD_UNRESOLVED_EXTERNAL

14

LOAD_PUBLIC_ALREADY_DEFINED