A.1 POSIX and ANSI Return Values

The ANSI, POSIX, and UNIX functions return the following values. The functions return a hex value in the NetWare internal debugger and a decimal value outside the debugger. Inside or outside the debugger, errno returns a decimal value.

Hex

Decimal

Constant

Description

0x01

1

ENOENT

No such file or directory

0x02

2

E2BIG

Parameter list is too big

0x03

3

ENOEXEC

Executable format error

0x04

4

EBADF

Bad file number

0x05

5

ENOMEM

Not enough memory

0x06

6

EACCES

Permission denied

0x07

7

EEXIST

File exists

0x08

8

EXDEV

Cross-device link

0x09

9

EINVAL

Invalid parameter

0x0A

10

ENFILE

File table overflow

0x0B

11

EMFILE

Too many open files

0x0C

12

ENOSPC

No space left on device

0x0D

13

EDOM

Parameter is too large

0x0E

14

ERANGE

Result too large

0x0F

15

EDEADLK

Resource deadlock would occur

0x10

16

EINUSE

Resource(s) in use

0x11

17

ESERVER

Server error (memory out, I/O error, etc.,)

0x12

18

ENOSERVR

No server (queue server, file server, etc.,)

0x13

19

EWRNGKND

Operation is being attempted on the wrong kind of object

0x14

20

ETRNREST

Transaction restarted

0x15

21

ERESOURCE

Resource(s) unavailable (perhaps permanently)

0x16

22

EBADHNDL

Bad non-file handle (screen, semaphore, etc.,)

0x17

23

ENO_SCRNS

Screen I/O attempted when no screens

0x18

24

EAGAIN

Insufficient resources to complete the call

0x19

25

ENXIO

No such device or address

0x1A

26

EBADMSG

Not a data message

0x1B

27

EFAULT

Bad address

0x1C

28

EIO

Physical I/O error

0x1D

29

ENODATA

No data

0x1E

30

ENOSTRMS

Streams not available

0x1F

31

EPROTO

Fatal protocol error

0x20

32

EPIPE

Broken pipe

0x21

33

ESPIPE

Illegal seek

0x22

34

ETIME

ioctl acknowledge time-out

0x23

35

EWOULDBLOCK

Operation would block

0x24

36

EINPROGRESS

Operation now in progress

0x25

37

EALREADY

Operation already in progress

0x26

38

ENOTSOCK

Socket operation on non-socket

0x27

39

EDESTADDRREQ

Destination address required

0x28

40

EMSGSIZE

Message too long

0x29

41

EPROTOTYPE

Protocol wrong type for socket

0x2A

42

ENOPROTOOPT

Protocol not available

0x2B

43

EPROTONOSUPPORT

Protocol not supported

0x2C

44

ESOCKTNOSUPPORT

Socket type not supported

0x2D

45

EOPNOTSUPP

Operation not supported on socket

0x2E

46

EPFNOSUPPORT

Protocol family not supported

0x2F

47

EAFNOSUPPORT

Address family unsupported by protocol family

0x30

48

EADDRINUSE

Address already in use

0x31

49

EADDRNOTAVAIL

Can't assign requested address or can't connected to the specified server.

Solution: Make sure SLP is set up correctly. Add a line to your etc\hosts file for the resource causing the error.

0x32

50

ENETDOWN

Network is down

0x33

51

ENETUNREACH

Network is unreachable

0x34

52

ENETRESET

Network dropped connection on reset

0x35

53

ECONNABORTED

Software caused connection abort

0x36

54

ECONNREST

Connection reset by peer

0x37

55

ENOBUFS

No buffer space available

0x38

56

EISCONN

Socket is already connected

0x39

57

ENOTCONN

Socket is not connected

0x3A

58

ESHUTDOWN

Can't send after socket shutdown

0x3B

59

ETOOMANYREFS

Too many references: can't splice

0x3C

60

ETIMEDOUT

Connection timed out

0x3D

61

ECONNREFUSED

Connection refused

0x3E

62

EBUSY

Resource busy

0x3F

63

EINTR

Interrupted function call

0x40

64

EISDIR

Is a directory

0x41

65

ENAMETOOLONG

Filename too long

0x42

66

ENOSYS

Function not implemented

0x43

67

ENOTDIR

Not a directory

0x44

68

ENOTEMPTY

Directory not empty

0x45

69

EPERM

Operation not permitted or caller does not have privileges to perform the specified operation

0x46

70

ECHILD

No child process

0x47

71

EFBIG

File too large

0x48

72

EMLINK

Too many links

0x49

73

ENODEV

No such device

0x4A

74

ENOLCK

No locks available

0x4B

75

ENOTTY

Inappropriate I/O control operation

0x4B

75

EFTYPE

Inappropriate operation for file type

0x4C

76

EROFS

Read only file system

0x4D

77

ESRCH

No such process

0x4E

78

ECANCELED

Operation was cancelled

0x4E

78

ECANCELLED

Operation was cancelled

0x4F

79

ENOTSUP

Optional functionality not supported

0x50

80

EBADTYPE

Bad type for operation

0x51

81

EOVERFLOW

Operation would overflow

0x52

82

EHOSTDOWN

Host is down

0x53

83

EHOSTUNREACH

No route to host

0x54

84

EPROCLIM

Too many processes

0x63

90

ENOMSG

Message does not exist

0x64

100

ENLMDATA

Anomaly in an NLMâ„¢ data structure

0x65

101

EILSEQ

Illegal character sequence in multibyte

0x66

102

EINCONSIS

Internal library inconsistency

0x67

103

EDOSTEXTEOL

DOS text file inconsistency; no newline after carriage return

0x68

104

ENONEXTANT

Object doesn't exist

0x69

105

ENOCONTEXT

No thread library context present

0x6A

106

ENAMESPACE

Invalid namespace or namespace operation

0x6B

107

EBADCONN

Invalid connection

0x6C

108

ENAMEINVAL

Invalid NDS name

0x6D

109

EPASSINVAL

Invalid password

0x6E

110

ENCPINVAL

Invalid or erroneous NCP

0x6F

111

EFILESYS

Generic file system error; see filesyserrno

0x70

112

ESUFFICIENT

Insuffcient space for any results from the operation

0x71

113

EPARTONLY

Partial results due to lack of space

0x72

114

EBADIENT

Invalid user or other identity

0x73

115

ENDS

Generic NDS error; see h_errno

0x74

116

ENCP

Generic NCP error; see h_errno

0x75

117

ELOOKUP

Generic look up error; see h_errno