1.\"- 2.\" SPDX-License-Identifier: BSD-3-Clause 3.\" 4.\" Copyright (c) 1980, 1983, 1986, 1991, 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. Neither the name of the University nor the names of its contributors 16.\" may be used to endorse or promote products derived from this software 17.\" without specific prior written permission. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.Dd April 19, 2024 32.Dt INTRO 2 33.Os 34.Sh NAME 35.Nm intro 36.Nd introduction to system calls and error numbers 37.Sh LIBRARY 38.Lb libc 39.Sh SYNOPSIS 40.In sys/syscall.h 41.In errno.h 42.Sh DESCRIPTION 43This section contains the system calls which comprise the 44.Fx 45programming environment. 46This page also provides an overview of common definitions and concepts 47relevant to system calls, where to find a table of the system calls 48currently available on your system, and their error returns. 49.\".Pp 50.\".Sy System call restart 51.\".Pp 52.\"(more later...) 53.Sh DEFINITIONS 54.Bl -tag -width Ds 55.It Process ID 56Each active process in the system is uniquely identified by a non-negative 57integer called a process ID. 58The range of this ID is from 0 to 99999. 59.It Parent process ID 60A new process is created by a currently active process 61.Pq see Xr fork 2 . 62The parent process ID of a process is initially the process ID of its creator. 63If the creating process exits, 64the parent process ID of each child is set to the ID of the calling process's 65reaper 66.Pq see Xr procctl 2 , 67normally 68.Xr init 8 . 69.It Process Group 70Each active process is a member of a process group that is identified by 71a non-negative integer called the process group ID. 72This is the process 73ID of the group leader. 74This grouping permits the signaling of related processes 75.Pq see Xr termios 4 76and the job control mechanisms of 77.Xr csh 1 . 78.It Session 79A session is a set of one or more process groups. 80A session is created by a successful call to 81.Xr setsid 2 , 82which causes the caller to become the only member of the only process 83group in the new session. 84.It Session leader 85A process that has created a new session by a successful call to 86.Xr setsid 2 , 87is known as a session leader. 88Only a session leader may acquire a terminal as its controlling terminal 89.Pq see Xr termios 4 . 90.It Controlling process 91A session leader with a controlling terminal is a controlling process. 92.It Controlling terminal 93A terminal that is associated with a session is known as the controlling 94terminal for that session and its members. 95.It Terminal Process Group ID 96A terminal may be acquired by a session leader as its controlling terminal. 97Once a terminal is associated with a session, any of the process groups 98within the session may be placed into the foreground by setting 99the terminal process group ID to the ID of the process group. 100This facility is used 101to arbitrate between multiple jobs contending for the same terminal 102.Pq see Xr csh 1 and Xr tty 4 . 103.It Orphaned Process Group 104A process group is considered to be 105.Em orphaned 106if it is not under the control of a job control shell. 107More precisely, a process group is orphaned 108when none of its members has a parent process that is in the same session 109as the group, 110but is in a different process group. 111Note that when a process exits, the parent process for its children 112is normally changed to be 113.Xr init 8 , 114which is in a separate session. 115Not all members of an orphaned process group are necessarily orphaned 116processes 117.Pq those whose creating process has exited . 118The process group of a session leader is orphaned by definition. 119.It Real User ID and Real Group ID 120Each user on the system is identified by a positive integer 121termed the real user ID. 122.Pp 123Each user is also a member of one or more groups. 124One of these groups is distinguished from others and 125used in implementing accounting facilities. 126The positive 127integer corresponding to this distinguished group is termed 128the real group ID. 129.Pp 130All processes have a real user ID and real group ID. 131These are initialized from the equivalent attributes 132of the process that created it. 133.It Effective User Id, Effective Group Id, and Group Access List 134Access to system resources is governed by two values: 135the effective user ID, and the group access list. 136The first member of the group access list is also known as the 137effective group ID. 138In POSIX.1, the group access list is known as the set of supplementary 139group IDs, and it is unspecified whether the effective group ID is 140a member of the list. 141.Pp 142The effective user ID and effective group ID are initially the 143process's real user ID and real group ID respectively. 144Either 145may be modified through execution of a set-user-ID or set-group-ID file 146.Pq possibly by one its ancestors 147.Pq see Xr execve 2 . 148By convention, the effective group ID 149.Pq the first member of the group access list 150is duplicated, so that the execution of a set-group-ID program 151does not result in the loss of the original 152.Pq real 153group ID. 154.Pp 155The group access list is a set of group IDs 156used only in determining resource accessibility. 157Access checks 158are performed as described below in ``File Access Permissions''. 159.It Saved Set User ID and Saved Set Group ID 160When a process executes a new file, the effective user ID is set 161to the owner of the file if the file is set-user-ID, and the effective 162group ID 163.Pq first element of the group access list 164is set to the group of the file if the file is set-group-ID. 165The effective user ID of the process is then recorded as the saved set-user-ID, 166and the effective group ID of the process is recorded as the saved set-group-ID. 167These values may be used to regain those values as the effective user 168or group ID after reverting to the real ID 169.Pq see Xr setuid 2 . 170In POSIX.1, the saved set-user-ID and saved set-group-ID are optional, 171and are used in setuid and setgid, but this does not work as desired 172for the super-user. 173.It Super-user 174A process is recognized as a 175.Em super-user 176process and is granted special privileges if its effective user ID is 0. 177.It Descriptor 178An integer assigned by the system when a file is referenced 179by 180.Xr open 2 181or 182.Xr dup 2 , 183or when a socket is created by 184.Xr pipe 2 , 185.Xr socket 2 186or 187.Xr socketpair 2 , 188which uniquely identifies an access path to that file or socket from 189a given process or any of its children. 190.It File Name 191Names consisting of up to 192.Brq Dv NAME_MAX 193characters may be used to name 194an ordinary file, special file, or directory. 195.Pp 196These characters may be arbitrary eight-bit values, 197excluding 198.Dv NUL 199.Pq ASCII 0 200and the 201.Ql \&/ 202character 203.Pq slash, ASCII 47 . 204.Pp 205Note that it is generally unwise to use 206.Ql \&* , 207.Ql \&? , 208.Ql \&[ 209or 210.Ql \&] 211as part of 212file names because of the special meaning attached to these characters 213by the shell. 214.It Path Name 215A path name is a 216.Dv NUL Ns -terminated 217character string starting with an 218optional slash 219.Ql \&/ , 220followed by zero or more directory names separated 221by slashes, optionally followed by a file name. 222The total length of a path name must be less than 223.Brq Dv PATH_MAX 224characters. 225On some systems, this limit may be infinite. 226.Pp 227If a path name begins with a slash, the path search begins at the 228.Em root 229directory. 230Otherwise, the search begins from the current working directory. 231A slash by itself names the root directory. 232An empty 233pathname refers to the current directory. 234.It Directory 235A directory is a special type of file that contains entries 236that are references to other files. 237Directory entries are called links. 238By convention, a directory 239contains at least two links, 240.Ql .\& 241and 242.Ql \&.. , 243referred to as 244.Em dot 245and 246.Em dot-dot 247respectively. 248Dot refers to the directory itself and 249dot-dot refers to its parent directory. 250.It Root Directory and Current Working Directory 251Each process has associated with it a concept of a root directory 252and a current working directory for the purpose of resolving path 253name searches. 254A process's root directory need not be the root 255directory of the root file system. 256.It File Access Permissions 257Every file in the file system has a set of access permissions. 258These permissions are used in determining whether a process 259may perform a requested operation on the file 260.Pq such as opening a file for writing . 261Access permissions are established at the 262time a file is created. 263They may be changed at some later time 264through the 265.Xr chmod 2 266call. 267.Pp 268File access is broken down according to whether a file may be: read, 269written, or executed. 270Directory files use the execute 271permission to control if the directory may be searched. 272.Pp 273File access permissions are interpreted by the system as 274they apply to three different classes of users: the owner 275of the file, those users in the file's group, anyone else. 276Every file has an independent set of access permissions for 277each of these classes. 278When an access check is made, the system 279decides if permission should be granted by checking the access 280information applicable to the caller. 281.Pp 282Read, write, and execute/search permissions on 283a file are granted to a process if: 284.Pp 285The process's effective user ID is that of the super-user. 286Note that even the super-user cannot execute a non-executable file. 287.Pp 288The process's effective user ID matches the user ID of the owner 289of the file and the owner permissions allow the access. 290.Pp 291The process's effective user ID does not match the user ID of the 292owner of the file, and either the process's effective 293group ID matches the group ID 294of the file, or the group ID of the file is in 295the process's group access list, 296and the group permissions allow the access. 297.Pp 298Neither the effective user ID nor effective group ID 299and group access list of the process 300match the corresponding user ID and group ID of the file, 301but the permissions for ``other users'' allow access. 302.Pp 303Otherwise, permission is denied. 304.It Sockets and Address Families 305A socket is an endpoint for communication between processes. 306Each socket has queues for sending and receiving data. 307.Pp 308Sockets are typed according to their communications properties. 309These properties include whether messages sent and received 310at a socket require the name of the partner, whether communication 311is reliable, the format used in naming message recipients, etc. 312.Pp 313Each instance of the system supports some 314collection of socket types; consult 315.Xr socket 2 316for more information about the types available and 317their properties. 318.Pp 319Each instance of the system supports some number of sets of 320communications protocols. 321Each protocol set supports addresses 322of a certain format. 323An Address Family is the set of addresses 324for a specific group of protocols. 325Each socket has an address 326chosen from the address family in which the socket was created. 327.El 328.Sh FILES 329.Bl -inset -compact 330.It Pa /usr/include/sys/syscall.h 331Table of currently available system calls. 332.El 333.Sh ERRORS 334Nearly all of the system calls provide an error number referenced via 335the external identifier 336.Va errno . 337This identifier is defined in 338.In sys/errno.h 339as: 340.Pp 341.Dl extern int * __error(); 342.Dl #define errno (* __error()) 343.Pp 344The 345.Va __error() 346function returns a pointer to a field in the thread specific structure for 347threads other than the initial thread. 348For the initial thread and 349non-threaded processes, 350.Va __error() 351returns a pointer to a global 352.Va errno 353variable that is compatible with the previous definition. 354.Pp 355When a system call detects an error, 356it returns an integer value 357indicating failure 358.Pq usually -1 359and sets the variable 360.Va errno 361accordingly. 362This allows interpretation of the failure on receiving 363-1 and to take action accordingly. 364Successful calls never set 365.Va errno ; 366once set, it remains until another error occurs. 367It should only be examined after an error. 368Note that a number of system calls overload the meanings of these 369error numbers, and that the meanings must be interpreted according 370to the type and circumstances of the call. 371.Pp 372The following is a complete list of the errors and their 373names as given in 374.In sys/errno.h . 375.Bl -hang -width Ds 376.It Er 0 Em "Undefined error: 0" . 377Not used. 378.It Er 1 EPERM Em "Operation not permitted" . 379An attempt was made to perform an operation limited to processes 380with appropriate privileges or to the owner of a file or other 381resources. 382.It Er 2 ENOENT Em "No such file or directory" . 383A component of a specified pathname did not exist, or the 384pathname was an empty string. 385.It Er 3 ESRCH Em "No such process" . 386No process could be found corresponding to that specified by the given 387process ID. 388.It Er 4 EINTR Em "Interrupted system call" . 389An asynchronous signal 390.Pq such as Dv SIGINT or Dv SIGQUIT 391was caught by the process during the execution of an interruptible 392function. 393If the signal handler performs a normal return, the 394interrupted system call will seem to have returned the error condition. 395.It Er 5 EIO Em "Input/output error" . 396Some physical input or output error occurred. 397This error will not be reported until a subsequent operation on the same file 398descriptor and may be lost 399.Pq over written 400by any subsequent errors. 401.It Er 6 ENXIO Em "Device not configured" . 402Input or output on a special file referred to a device that did not 403exist, or 404made a request beyond the limits of the device. 405This error may also occur when, for example, 406a tape drive is not online or no disk pack is 407loaded on a drive. 408.It Er 7 E2BIG Em "Argument list too long" . 409The number of bytes used for the argument and environment 410list of the new process exceeded the current limit 411.Pq Dv NCARGS in In sys/param.h . 412.It Er 8 ENOEXEC Em "Exec format error" . 413A request was made to execute a file 414that, although it has the appropriate permissions, 415was not in the format required for an 416executable file. 417.It Er 9 EBADF Em "Bad file descriptor" . 418A file descriptor argument was out of range, referred to no open file, 419or a read 420.Pq write 421request was made to a file that was only open for writing 422.Pq reading . 423.It Er 10 ECHILD Em "\&No child processes" . 424A 425.Xr wait 2 or Xr waitpid 2 426function was executed by a process that had no existing or unwaited-for 427child processes. 428.It Er 11 EDEADLK Em "Resource deadlock avoided" . 429An attempt was made to lock a system resource that 430would have resulted in a deadlock situation. 431.It Er 12 ENOMEM Em "Cannot allocate memory" . 432The new process image required more memory than was allowed by the hardware 433or by system-imposed memory management constraints. 434A lack of swap space is normally temporary; however, 435a lack of core is not. 436Soft limits may be increased to their corresponding hard limits. 437.It Er 13 EACCES Em "Permission denied" . 438An attempt was made to access a file in a way forbidden 439by its file access permissions. 440.It Er 14 EFAULT Em "Bad address" . 441The system detected an invalid address in attempting to 442use an argument of a call. 443.It Er 15 ENOTBLK Em "Block device required" . 444A block device operation was attempted on a non-block device or file. 445.It Er 16 EBUSY Em "Device busy" . 446An attempt to use a system resource which was in use at the time 447in a manner which would have conflicted with the request. 448.It Er 17 EEXIST Em "File exists" . 449An existing file was mentioned in an inappropriate context, 450for instance, as the new link name in a 451.Xr link 2 452system call. 453.It Er 18 EXDEV Em "Cross-device link" . 454A hard link to a file on another file system 455was attempted. 456.It Er 19 ENODEV Em "Operation not supported by device" . 457An attempt was made to apply an inappropriate 458function to a device, 459for example, 460trying to read a write-only device such as a printer. 461.It Er 20 ENOTDIR Em "Not a directory" . 462A component of the specified pathname existed, but it was 463not a directory, when a directory was expected. 464.It Er 21 EISDIR Em "Is a directory" . 465An attempt was made to open a directory with write mode specified. 466.It Er 22 EINVAL Em "Invalid argument" . 467Some invalid argument was supplied. 468For example, specifying an undefined signal to a 469.Xr signal 3 470function or a 471.Xr kill 2 472system call. 473.It Er 23 ENFILE Em "Too many open files in system" . 474Maximum number of open files allowable on the system 475has been reached and requests for an open cannot be satisfied 476until at least one has been closed. 477.It Er 24 EMFILE Em "Too many open files" . 478Maximum number of file descriptors allowable in the process 479has been reached and requests for an open cannot be satisfied 480until at least one has been closed. 481The 482.Xr getdtablesize 2 483system call will obtain the current limit. 484.It Er 25 ENOTTY Em "Inappropriate ioctl for device" . 485A control function 486.Pq see Xr ioctl 2 487was attempted for a file or 488special device for which the operation was inappropriate. 489.It Er 26 ETXTBSY Em "Text file busy" . 490The new process was a pure procedure 491.Pq shared text 492file which was open for writing by another process, or 493while the pure procedure file was being executed an 494.Xr open 2 495call requested write access. 496.It Er 27 EFBIG Em "File too large" . 497The size of a file exceeded the maximum. 498.It Er 28 ENOSPC Em "No space left on device" . 499A 500.Xr write 2 501to an ordinary file, the creation of a 502directory or symbolic link, or the creation of a directory 503entry failed because no more disk blocks were available 504on the file system, or the allocation of an inode for a newly 505created file failed because no more inodes were available 506on the file system. 507.It Er 29 ESPIPE Em "Illegal seek" . 508An 509.Xr lseek 2 510system call was issued on a socket, pipe or FIFO. 511.It Er 30 EROFS Em "Read-only file system" . 512An attempt was made to modify a file or directory 513on a file system that was read-only at the time. 514.It Er 31 EMLINK Em "Too many links" . 515Maximum allowable hard links to a single file has been exceeded. 516This limit is a filesystem dependent variable 517.Po 518.Va UFS_LINK_MAX No on Xr ufs 4 , 519.Va FUSE_LINK_MAX No on Xr fusefs 4 , and 520.Va TMPFS_MAX No on Xr tmpfs 4 521.Pc . 522.It Er 32 EPIPE Em "Broken pipe" . 523A write on a pipe, socket or FIFO for which there is no process to read 524the data. 525.It Er 33 EDOM Em "Numerical argument out of domain" . 526A numerical input argument was outside the defined domain of the mathematical 527function. 528.It Er 34 ERANGE Em "Result too large" . 529A numerical result of the function was too large to fit in the 530available space 531.Pq perhaps exceeded precision . 532.It Er 35 EAGAIN Em "Resource temporarily unavailable" . 533This is a temporary condition and later calls to the 534same routine may complete normally. 535.It Er 36 EINPROGRESS Em "Operation now in progress" . 536An operation that takes a long time to complete, such as 537.Xr connect 2 , 538was attempted on a non-blocking object 539.Pq see Xr fcntl 2 . 540.It Er 37 EALREADY Em "Operation already in progress" . 541An operation was attempted on a non-blocking object that already 542had an operation in progress. 543.It Er 38 ENOTSOCK Em "Socket operation on non-socket" . 544Self-explanatory. 545.It Er 39 EDESTADDRREQ Em "Destination address required" . 546A required address was omitted from an operation on a socket. 547.It Er 40 EMSGSIZE Em "Message too long" . 548A message sent on a socket was larger than the internal message buffer 549or some other network limit. 550.It Er 41 EPROTOTYPE Em "Protocol wrong type for socket" . 551A protocol was specified that does not support the semantics of the 552socket type requested. 553For example, you cannot use the ARPA Internet UDP protocol with type 554.Dv SOCK_STREAM . 555.It Er 42 ENOPROTOOPT Em "Protocol not available" . 556A bad option or level was specified in a 557.Xr getsockopt 2 558or 559.Xr setsockopt 2 560call. 561.It Er 43 EPROTONOSUPPORT Em "Protocol not supported" . 562The protocol has not been configured into the 563system or no implementation for it exists. 564.It Er 44 ESOCKTNOSUPPORT Em "Socket type not supported" . 565The support for the socket type has not been configured into the 566system or no implementation for it exists. 567.It Er 45 EOPNOTSUPP Em "Operation not supported" . 568The attempted operation is not supported for the type of object referenced. 569Usually this occurs when a file descriptor refers to a file or socket 570that cannot support this operation, 571for example, trying to 572.Em accept 573a connection on a datagram socket. 574.It Er 46 EPFNOSUPPORT Em "Protocol family not supported" . 575The protocol family has not been configured into the 576system or no implementation for it exists. 577.It Er 47 EAFNOSUPPORT Em "Address family not supported by protocol family" . 578An address incompatible with the requested protocol was used. 579For example, you should not necessarily expect to be able to use 580NS addresses with ARPA Internet protocols. 581.It Er 48 EADDRINUSE Em "Address already in use" . 582Only one usage of each address is normally permitted. 583.It Er 49 EADDRNOTAVAIL Em "Can't assign requested address" . 584Normally results from an attempt to create a socket with an 585address not on this machine. 586.It Er 50 ENETDOWN Em "Network is down" . 587A socket operation encountered a dead network. 588.It Er 51 ENETUNREACH Em "Network is unreachable" . 589A socket operation was attempted to an unreachable network. 590.It Er 52 ENETRESET Em "Network dropped connection on reset" . 591The host you were connected to crashed and rebooted. 592.It Er 53 ECONNABORTED Em "Software caused connection abort" . 593A connection abort was caused internal to your host machine. 594.It Er 54 ECONNRESET Em "Connection reset by peer" . 595A connection was forcibly closed by a peer. 596This normally 597results from a loss of the connection on the remote socket 598due to a timeout or a reboot. 599.It Er 55 ENOBUFS Em "\&No buffer space available" . 600An operation on a socket or pipe was not performed because 601the system lacked sufficient buffer space or because a queue was full. 602.It Er 56 EISCONN Em "Socket is already connected" . 603A 604.Xr connect 2 605request was made on an already connected socket; or, 606a 607.Xr sendto 2 608or 609.Xr sendmsg 2 610request on a connected socket specified a destination 611when already connected. 612.It Er 57 ENOTCONN Em "Socket is not connected" . 613An request to send or receive data was disallowed because 614the socket was not connected and 615.Pq when sending on a datagram socket 616no address was supplied. 617.It Er 58 ESHUTDOWN Em "Can't send after socket shutdown" . 618A request to send data was disallowed because the socket 619had already been shut down with a previous 620.Xr shutdown 2 621call. 622.It Er 60 ETIMEDOUT Em "Operation timed out" . 623A 624.Xr connect 2 625or 626.Xr send 2 627request failed because the connected party did not 628properly respond after a period of time. 629The timeout period is dependent on the communication protocol. 630.It Er 61 ECONNREFUSED Em "Connection refused" . 631No connection could be made because the target machine actively 632refused it. 633This usually results from trying to connect 634to a service that is inactive on the foreign host. 635.It Er 62 ELOOP Em "Too many levels of symbolic links" . 636A path name lookup involved more than 32 637.Pq Dv MAXSYMLINKS 638symbolic links. 639.It Er 63 ENAMETOOLONG Em "File name too long" . 640A component of a path name exceeded 641.Brq Dv NAME_MAX 642characters, or an entire 643path name exceeded 644.Brq Dv PATH_MAX 645characters. 646See also the description of 647.Dv _PC_NO_TRUNC in Xr pathconf 2 . 648.It Er 64 EHOSTDOWN Em "Host is down" . 649A socket operation failed because the destination host was down. 650.It Er 65 EHOSTUNREACH Em "No route to host" . 651A socket operation was attempted to an unreachable host. 652.It Er 66 ENOTEMPTY Em "Directory not empty" . 653A directory with entries other than 654.Ql .\& 655and 656.Ql ..\& 657was supplied to a remove directory or rename call. 658.It Er 67 EPROCLIM Em "Too many processes" . 659.It Er 68 EUSERS Em "Too many users" . 660The quota system ran out of table entries. 661.It Er 69 EDQUOT Em "Disc quota exceeded" . 662A 663.Xr write 2 664to an ordinary file, the creation of a 665directory or symbolic link, or the creation of a directory 666entry failed because the user's quota of disk blocks was 667exhausted, or the allocation of an inode for a newly 668created file failed because the user's quota of inodes 669was exhausted. 670.It Er 70 ESTALE Em "Stale NFS file handle" . 671An attempt was made to access an open file 672.Pq on an NFS file system 673which is now unavailable as referenced by the file descriptor. 674This may indicate the file was deleted on the NFS server or some 675other catastrophic event occurred. 676.It Er 72 EBADRPC Em "RPC struct is bad" . 677Exchange of RPC information was unsuccessful. 678.It Er 73 ERPCMISMATCH Em "RPC version wrong" . 679The version of RPC on the remote peer is not compatible with 680the local version. 681.It Er 74 EPROGUNAVAIL Em "RPC prog. not avail" . 682The requested program is not registered on the remote host. 683.It Er 75 EPROGMISMATCH Em "Program version wrong" . 684The requested version of the program is not available 685on the remote host 686.Pq RPC . 687.It Er 76 EPROCUNAVAIL Em "Bad procedure for program" . 688An RPC call was attempted for a procedure which does not exist 689in the remote program. 690.It Er 77 ENOLCK Em "No locks available" . 691A system-imposed limit on the number of simultaneous file 692locks was reached. 693.It Er 78 ENOSYS Em "Function not implemented" . 694Attempted a system call that is not available on this 695system. 696.It Er 79 EFTYPE Em "Inappropriate file type or format" . 697The file was the wrong type for the operation, or a data file had 698the wrong format. 699.It Er 80 EAUTH Em "Authentication error" . 700Attempted to use an invalid authentication ticket to mount a 701NFS file system. 702.It Er 81 ENEEDAUTH Em "Need authenticator" . 703An authentication ticket must be obtained before the given NFS 704file system may be mounted. 705.It Er 82 EIDRM Em "Identifier removed" . 706An IPC identifier was removed while the current process was waiting on it. 707.It Er 83 ENOMSG Em "No message of desired type" . 708An IPC message queue does not contain a message of the desired type, or a 709message catalog does not contain the requested message. 710.It Er 84 EOVERFLOW Em "Value too large to be stored in data type" . 711A numerical result of the function was too large to be stored in the caller 712provided space. 713.It Er 85 ECANCELED Em "Operation canceled" . 714The scheduled operation was canceled. 715.It Er 86 EILSEQ Em "Illegal byte sequence" . 716While decoding a multibyte character the function came along an 717invalid or an incomplete sequence of bytes or the given wide 718character is invalid. 719.It Er 87 ENOATTR Em "Attribute not found" . 720The specified extended attribute does not exist. 721.It Er 88 EDOOFUS Em "Programming error" . 722A function or API is being abused in a way which could only be detected 723at run-time. 724.It Er 89 EBADMSG Em "Bad message" . 725A corrupted message was detected. 726.It Er 90 EMULTIHOP Em "Multihop attempted" . 727This error code is unused, but present for compatibility with other systems. 728.It Er 91 ENOLINK Em "Link has been severed" . 729This error code is unused, but present for compatibility with other systems. 730.It Er 92 EPROTO Em "Protocol error" . 731A device or socket encountered an unrecoverable protocol error. 732.It Er 93 ENOTCAPABLE Em "Capabilities insufficient" . 733An operation on a capability file descriptor requires greater privilege than 734the capability allows. 735.It Er 94 ECAPMODE Em "Not permitted in capability mode" . 736The system call or operation is not permitted for capability mode processes. 737.It Er 95 ENOTRECOVERABLE Em "State not recoverable" . 738The state protected by a robust mutex is not recoverable. 739.It Er 96 EOWNERDEAD Em "Previous owner died" . 740The owner of a robust mutex terminated while holding the mutex lock. 741.It Er 97 EINTEGRITY Em "Integrity check failed" . 742An integrity check such as a check-hash or a cross-correlation failed. 743The integrity error falls in the kernel I/O stack between 744.Er EINVAL 745that identifies errors in parameters to a system call and 746.Er EIO 747that identifies errors with the underlying storage media. 748It is typically raised by intermediate kernel layers such as a 749filesystem or an in-kernel GEOM subsystem when they detect inconsistencies. 750Uses include allowing the 751.Xr mount 8 752command to return a different exit value to automate the running of 753.Xr fsck 8 754during a system boot. 755.El 756.Sh SEE ALSO 757.Xr intro 3 , 758.Xr perror 3 759.Sh HISTORY 760The 761.Nm Ns Pq 2 762manual page first appeared in 763.At v5 . 764