A.2 NKS Return Values

NKS return values do and will always match the corresponding values in the errno.h file from LibC. The following values are returned by the NKS functions. If an NKS function returns a value not listed below, check for the value in the errno.h file (see Section A.1, POSIX and ANSI Return Values).

Hex

Decimal

Constant

Description

0x01

1

NX_ENOENT

No such file or directory

0x02

2

NX_E2BIG

Parameter list is too big

0x03

3

NX_ENOEXEC

Executable format error

0x04

4

NX_EBADF

Bad file number

0x05

5

NX_ENOMEM

Not enough memory

0x06

6

NX_EACCES

Permission denied

0x07

7

NX_EEXIST

File exists

0x08

8

NX_EXDEV

Cross-device link

0x09

9

NX_EINVAL

Invalid parameter

0x0A

10

NX_ENFILE

File table overflow

0x0B

11

NX_EMFILE

Too many open files

0x0C

12

NX_ENOSPC

No space left on device

0x0E

14

NX_ERANGE

Result too large

0x0F

15

NX_EDEADLK

Resource deadlock would occur

0x10

16

NX_EINUSE

Resource(s) in use

0x11

17

NX_ESERVER

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

0x12

18

NX_ENOSERVR

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

0x13

19

NX_EWRNGKND

Operation is being attempted on the wrong kind of object

0x14

20

NX_ETRNREST

Transaction could not be restarted

0x15

21

NX_ERESOURCE

Resource(s) unavailable (perhaps permanently)

0x16

22

NX_EBADHNDL

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

0x18

24

NX_EAGAIN

Insufficient resources to complete the call

0x1C

28

NX_EIO

Physical I/O error

0x20

32

NX_EPIPE

Broken pipe

0x25

37

NX_EALREADY

Operation already in progress

0x3C

60

NX_ETIMEDOUT

Connection timed out

0x3E

62

NX_EBUSY

Resource busy

0x3F

63

NX_EINTR

Interrupted function call

0x40

64

NX_EISDIR

Is a directory

0x41

65

NX_ENAMETOOLONG

Filename too long

0x42

66

NX_ENOSYS

Function not implemented

0x43

67

NX_ENOTDIR

Not a directory

0x44

68

NX_ENOTEMPTY

Directory not empty

0x45

69

NX_EPERM

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

0x46

70

NX_ECHILD

No child process

0x47

71

NX_EFBIG

File too large

0x48

72

NX_EMLINK

Too many links

0x4A

74

NX_ENOLCK

No locks available

0x4D

77

NX_ESRCH

No such process

0x4F

79

NX_ENOTSUP

Optional functionality not supported

0x50

80

NX_EBADTYPE

Bad type for operation

0x51

81

NX_EOVERFLOW

Operation would overflow

0x52

82

NX_EHOSTDOWN

Host is down

0x53

83

NX_EHOSTUNREACH

No route to host

0x54

84

NX_EPROCLIM

Too many processes

0x63

99

NX_EUNKNOWN

Unknown error occurring

0x64

100

NX_ENLMDATA

Anomaly in an NLMâ„¢ data structure

0x65

101

NX_EILSEQ

Illegal character sequence in multibyte

0x66

102

NX_EINCONSIS

Internal library inconsistency

0x67

103

NX_EDOSTEXTEOL

DOS text file inconsistency; no newline after carriage return

0x68

104

NX_ENONEXTANT

Object doesn't exist

0x69

105

NX_ENOCONTEXT

No thread library context present

0x6A

106

NX_ENAMESPACE

Invalid namespace or namespace operation

0x6B

107

NX_EBADCONN

Invalid connection

0x6C

108

NX_EEXHAUSTED

The search has reached the end

0x6F

111

NX_EFILESYS

File system error

0x70

112

NX_ESUFFICIENT

Insuffcient space for any results from the operation

0x71

113

NX_EPARTONLY

Partial results due to lack of space

0x72

114

NX_EBADIENT

Invalid user identity