📄 intro.2
字号:
system..en 39 ENOTEMPTY "Directory not empty"A directory with entries other than \*(lq.\*(rq and \*(lq..\*(rqwas supplied to a remove directory or rename call..en 40 ELOOP "Too many symbolic links"A path name lookup involved more than SYMLOOP symbolic links. SYMLOOPequals 8 as distributed.(Minix-vmd).en 50 EPACKSIZE "Invalid packet size.en 51 EOUTOFBUFS "Not enough buffers left.en 52 EBADIOCTL "Illegal ioctl for device.en 53 EBADMODE "Bad mode in ioctl.en 54 EWOULDBLOCK "Would block.en 55 EBADDEST "Bad destination address.en 56 EDSTNOTRCH "Destination not reachable.en 57 EISCONN "Already connected.en 58 EADDRINUSE "Address in use.en 59 ECONNREFUSED "Connection refused.en 60 ECONNRESET "Connection reset.en 61 ETIMEDOUT "Connection timed out.en 62 EURG "Urgent data present.en 63 ENOURG "No urgent data present.en 64 ENOTCONN "No connection.en 65 ESHUTDOWN "Already shutdown.en 66 ENOCONN "No such connection.en 67 EINPROGRESS "Operation now in progress.en 68 EALREADY "Operation already in progress.ig.en XXX EDQUOT "Disc quota exceeded"A .B writeto an ordinary file, the creation of adirectory or symbolic link, or the creation of a directoryentry failed because the user's quota of disk blocks wasexhausted, or the allocation of an inode for a newlycreated file failed because the user's quota of inodeswas exhausted..en XXX ESTALE "Stale NFS file handle"A client referenced a an open file, when the file has been deleted..en XXX EREMOTE "Too many levels of remote in path"An attempt was made to remotely mount a file system into a path whichalready has a remotely mounted component....SH DEFINITIONS.TP 5Process ID.brEach active process in the system is uniquely identified by a positiveinteger called a process ID. The range of this ID is from 1 to 29999.The special process with process ID 1 is.BR init ,the ancestor of all processes..TP 5Parent process ID.brA new process is created by a currently active process; (see.BR fork (2)).The parent process ID of a process is the process ID of its creator,unless the creator dies, then.B initbecomes the parent of the orphaned process..TP 5Process Group ID.brEach active process is a member of a process group that is identified bya positive integer called the process group ID. This is the processID of the group leader. This grouping permits the signaling of relatedprocesses (see.BR kill (2))..TP 5Real User ID and Real Group ID.brEach user on the system is identified by a positive integertermed the real user ID..IPEach user is also a member of one or more groups.One of these groups is distinguished from others andused in implementing accounting facilities. The positiveinteger corresponding to this distinguished group is termed the real group ID.(Under standard Minix this is the only group a process can be a member of.).IPAll processes have a real user ID and real group ID.These are initialized from the equivalent attributesof the process that created it..TP 5Effective User Id, Effective Group Id, and Access Groups.brAccess to system resources is governed by three values:the effective user ID, the effective group ID, and thegroup access list..IPThe effective user ID and effective group ID are initially theprocess's real user ID and real group ID respectively. Eithermay be modified through execution of a set-user-ID or set-group-IDfile (possibly by one its ancestors) (see.BR execve (2))..IPThe group access list is an additional set of group ID'sused only in determining resource accessibility. Access checksare performed as described below in ``File Access Permissions''.The maximum number of additional group ID's is NGROUPS_MAX.For Minix this is 0, but Minix-vmd supports a list of up to 16additional group ID's. (Also known as ``supplemental'' group ID's.).TP 5Super-user.brA process is recognized as a.I super-userprocess and is granted special privileges if its effective user ID is 0..TP 5Descriptor.brAn integer assigned by the system when a file or device is referencedby.BR open (2),.BR dup (2)or.BR fcntl (2)which uniquely identifies an access path to that file or device froma given process or any of its children..TP 5File DescriptorOlder, and often used name for a descriptor..TP 5File Name.brNames consisting of up to NAME_MAX characters may be used to namean ordinary file, special file, or directory. NAME_MAX is the maximumof the maximum file name lengths of the supported file systems.Excess characters are ignored when too long file names are used forfiles in a given file system.The maximum file name length of the V1 and V2 file systemsis 14 characters. The Minix-vmd "flex" variants of V1 and V2 have a60 character maximum..IPThe characters in a file name may assume any value representable ineight bits excluding 0 (null) and the ASCII code for / (slash)..IPNote that it is generally unwise to use one of \e'"<>();~$^&*|{}[]?as part of file names because of the special meaning attached to thesecharacters by the shell..TP 5Path Name.brA path name is a null-terminated character string starting with anoptional slash (/), followed by zero or more directory names separatedby slashes, optionally followed by a file name.The total length of a path name must be less than PATH_MAX characters(255 as distributed.).IPIf a path name begins with a slash, the path search begins at the.I rootdirectory.Otherwise, the search begins from the current working directory.A slash by itself names the root directory. A null pathname isillegal, use "." to refer to the current working directory..TP 5Directory.brA directory is a special type of file that contains entriesthat are references to other files.Directory entries are called links. By convention, a directorycontains at least two links, . and .., referred to as.I dotand.I dot-dotrespectively. Dot refers to the directory itself anddot-dot refers to its parent directory..TP 5Root Directory and Current Working Directory.brEach process has associated with it a concept of a root directoryand a current working directory for the purpose of resolving pathname searches. A process's root directory need not be the rootdirectory of the root file system..TP 5File Access Permissions.brEvery file in the file system has a set of access permissions.These permissions are used in determining whether a processmay perform a requested operation on the file (such as openinga file for writing). Access permissions are established at thetime a file is created. They may be changed at some later timethrough the .BR chmod (2)call. .IPFile access is broken down according to whether a file may be: read,written, or executed. Directory files use the executepermission to control if the directory may be searched. .IPFile access permissions are interpreted by the system asthey apply to three different classes of users: the ownerof the file, those users in the file's group, anyone else.Every file has an independent set of access permissions foreach of these classes. When an access check is made, the systemdecides if permission should be granted by checking the accessinformation applicable to the caller..IPRead, write, and execute/search permissions ona file are granted to a process if:.IPThe process's effective user ID is that of the super-user..IPThe process's effective user ID matches the user ID of the ownerof the file and the owner permissions allow the access..IPThe process's effective user ID does not match the user ID of theowner of the file, and either the process's effectivegroup ID matches the group IDof the file, or the group ID of the file is inthe process's group access list,and the group permissions allow the access..IPNeither the effective user ID nor effective group IDand group access list of the processmatch the corresponding user ID and group ID of the file,but the permissions for ``other users'' allow access..IPOtherwise, permission is denied..SH SEE ALSO.BR intro (3),.BR strerror (3).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -