⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro.2

📁 Unix操作系统minix 2.0源码
💻 2
📖 第 1 页 / 共 2 页
字号:
.\" Copyright (c) 1980,1983,1986 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)intro.2	6.7 (Berkeley) 5/23/86.\".TH INTRO 2 "June 30, 1986".UC 4.de en.HP\\$1  \\$2  \\$3.br...SH NAMEintro, errno \- introduction to system calls and error numbers.SH SYNOPSIS.B "#include <errno.h>".SH DESCRIPTIONThis section describes all of the system calls.  Mostof these calls have one or more error returns.An error condition is indicated by an otherwise impossible returnvalue.  This is almost always \-1; the individual descriptionsspecify the details.Note that a number of system calls overload the meanings of theseerror numbers, and that the meanings must be interpreted accordingto the type and circumstances of the call..PPAs with normal arguments, all return codes and values fromfunctions are of type integer unless otherwise noted.An error number is also made available in the externalvariable \fBerrno\fP, which is not clearedon successful calls.Thus \fBerrno\fP should be tested only after an error has occurred..PPThe following is a complete list of the errors and theirnames as given in.RI < sys/errno.h >:.en 0 OK "Error 0Unused.  (The symbol "OK" is only used inside the kernel source.).en 1 EPERM "Not ownerTypically this error indicatesan attempt to modify a file in some way forbiddenexcept to its owner or super-user.It is also returned for attemptsby ordinary users to do thingsallowed only to the super-user..en 2 ENOENT "No such file or directoryThis error occurs when a file name is specifiedand the file should exist but doesn't, or when oneof the directories in a path name does not exist..en 3 ESRCH "No such processThe process or process group whose number was givendoes not exist, or any such process is already dead..en 4 EINTR "Interrupted system callAn asynchronous signal (such as interrupt or quit)that the user has elected to catchoccurred during a system call.If execution is resumedafter processing the signaland the system call is not restarted,it will appear as if the interrupted system callreturned this error condition..en 5 EIO "I/O errorSome physical I/O error occurred during an I/O operation, usually.B reador.BR write .Operations on file descriptors that refer to devices that are forcefullytaken away or in a bad state will also provoke this error..en 6 ENXIO "No such device or addressI/O on a special file refers to a subdevice that does notexist,or beyond the limits of the device.It may also occur when, for example, an illegal tape driveunit number is selected or a disk pack is not loaded on a drive..en 7 E2BIG "Arg list too longAn argument list longer than ARG_MAX bytes is presented to.BR execve .ARG_MAX is set to 4096 bytes for 16-bit Minix, 16384 bytes for 32-bitMinix, and unlimited for Minix-vmd as these systems are released..en 8 ENOEXEC "Exec format errorA request is made to execute a filethat, although it has the appropriate permissions,does not start with a valid magic number, (see.BR a.out (5))..en 9 EBADF "Bad file numberEither a file descriptor refers to noopen file,or a read (resp. write) request is made toa file that is open only for writing (resp. reading)..en 10 ECHILD "No children.B Waitand the process has noliving or unwaited-for children..en 11 EAGAIN "Resource temporarily unavailableIn a.B fork,the system's process table is full or the user is not allowed to createany more processes, otherwise an operation that would cause a process toblock was attempted on an object in non-blocking mode (see \fBfcntl\fP(2))..en 12 ENOMEM "Not enough coreDuring an.B execveor.B brk,a program asks for more (virtual) memory than the system isable to supply,or a process size limit would be exceeded.The maximum sizeof the data+stack segment is set by the.BR chmem (1)program.  For Minix-vmd a small data+stack size is increased to 3 megabyteswhen a program is executed..en 13 EACCES "Permission deniedAn attempt was made to access a file in a way forbiddenby the protection system.  Also an attempt to open a device for writingthat is physically write protected..en 14 EFAULT "Bad addressAn argument of a system call is outside the address space allocated to aprocess..en 15 ENOTBLK "Block device requiredA plain file was mentioned where a block device was required,e.g., in.BR mount ..en 16 EBUSY "Resource busyAn attempt to mount a device that was already mounted oran attempt was made to dismount a deviceon which there is an active file(open file, current directory, mounted-on file, or active text segment).A request was made to an exclusive access device that was already in use..en 17 EEXIST "File existsAn existing file was mentioned in an inappropriate context,e.g.,.BR link ..en 18 EXDEV "Cross-device linkA hard link to a file on another devicewas attempted..en 19 ENODEV "No such deviceAn attempt was made to access a device that is not configured by the system,i.e., there is no driver for the device..en 20 ENOTDIR "Not a directoryA non-directory was specified where a directoryis required,for example, in a path name oras an argument to.BR chdir ..en 21 EISDIR "Is a directoryAn attempt to write on a directory..en 22 EINVAL "Invalid argumentSome invalid argument:dismounting a non-mounteddevice,mentioning an unknown signal in.B signal,or some other argument inappropriate for the call.Also set by math functions, (see .BR math (3))..en 23 ENFILE "File table overflowThe system's table of open files is full,and temporarily no more.I openscan be accepted..en 24 EMFILE "Too many open filesThe limit on the number of open files per process, OPEN_MAX, is reached.As released, this limit is 20 for Minix, and 30 for Minix-vmd..en 25 ENOTTY "Not a typewriterThe file mentioned in an.B ioctlis not a terminal or one of thedevices to which this call applies.  (Often seen error from programs withbugs in their error reporting code.).en 26 ETXTBSY "Text file busyAttempt to execute a program that is open for writing.  Obsolete under Minix..en 27 EFBIG "File too largeThe size of a file exceeded the maximum (little over 64 megabytes forthe V2 file system)..en 28 ENOSPC "No space left on deviceA.B writeto an ordinary file, the creation of adirectory or symbolic link, or the creation of a directoryentry failed because no more disk blocks are availableon the file system, or the allocation of an inode for a newlycreated file failed because no more inodes are availableon the file system..en 29 ESPIPE "Illegal seekAn.B lseekwas issued to a pipe or TCP/IP channel.This error may also be issued forother non-seekable devices..en 30 EROFS "Read-only file systemAn attempt to modify a file or directorywas madeon a device mounted read-only..en 31 EMLINK "Too many linksAn attempt to make more than a certain number of hard links to a file.  Theadvertized maximum, LINK_MAX, is 127, but Minix-vmd uses a much largermaximum of 32767 for the V2 file system..en 32 EPIPE "Broken pipeA write on a pipe or TCP/IP channel for which there is no processto read the data.This condition normally generates the signal SIGPIPE;the error is returned if the signal is caught or ignored..en 33 EDOM "Math argumentThe argument of a function in the math packageis out of the domain of the function..en 34 ERANGE "Result too largeThe value of a function in the math packageis unrepresentable within machine precision..en 35 EDEADLK "Resource deadlock avoidedA process attempts to place a blocking lock on a file that is alreadylocked by another process and that process is waiting for the firstprocess to unlock a file that first process already has a lock on.(The classic "lock A, lock B" by process 1, and "lock B, lock A" byprocess 2.).en 36 ENAMETOOLONG "File name too long"The path name exceeds PATH_MAX characters.  PATH_MAX equals 255 asdistributed..en 37 ENOLCK "No locks availableThe system's table of active locks is full..en 38 ENOSYS "Function not implementedThe system call is not supported.  Either an old program uses an obsoletecall, or a program for a more capable system is run on a less capable

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -