亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? open.2

?? <B>Digital的Unix操作系統VAX 4.2源碼</B>
?? 2
字號:
.\" SCCSID: @(#)open.2	2.1	3/10/87.TH open 2.SH Nameopen \- open for reading or writing .SH Syntax#include <sys/types.h>.br#include <sys/stat.h>.br#include <fcntl.h>.br#include <limits.h>     /* definition of OPEN_MAX */.PPopen(\fIpath, flags, mode\fP).brchar *\fIpath\fP;.brint \fIflags, mode\fP;.SH Description.NXA "open system call" "close system call".NXR "open system call".NXR "file" "opening".NXR "file" "marking in use"The.PN opensystem call opens a specified file and returns a descriptor for that file.The file pointer used to mark the current position withinthe file is set to the beginning of the file..PPThe file descriptor remains open across .PN execve system calls. The .PN close  system call closes the file descriptor..PPA process cannot have more than OPEN_MAX file descriptorsopen simultaneously.  .SH Arguments.IP \fIpath\fR 7is the address of a string of ASCII characters representinga path name, terminated by a null character.  The path nameidentifies the file to be opened..IP \fImode\fR is only used with the O_CREAT flag.  The file is createdwith the specified mode, as described in.MS chmod 2and modified by the process's umask value.For further information, see.MS umask 2 ..IP \fIflags\fR defines how the file is to be opened.  This argument is formed byORingthe following values:.NXR "open system call" "flags".RS.IP "O_RDONLY" 1.25iOpen for reading only..IP "O_WRONLY" 1.25iOpen for writing only..IP "O_RDWR" 1.25iOpen for reading and writing..IP "O_NDELAY" 1.25iDo not block on openwhen opening a port (named pipe) with O_RDONLY or O_WRONLY:.IP If O_NDELAY is set, an .PN openfor read only returns without delay.  An.PN openfor write only returns an error if no process currently hasthe file open for reading..IP If O_NDELAY is clear, an.PN openfor read only blocks until a process opens thefile for writing.  An.PN openfor write only blocks until a process opens thefile for reading..IP "O_NONBLOCK" 1.25iPOSIX definition of O_NDELAY.  See O_NDELAY for explanation of functionality..IP "O_APPEND" 1.25iAppend on each write..IP "O_CREAT" 1.25iCreate file if it does not exist..IP "O_TRUNC" 1.25iTruncate size to 0..IP "O_EXCL" 1.25iError if create and file exists..IP "O_BLKINUSE" 1.25iBlock if file is in use..IP "O_BLKANDSET" 1.25iBlock if file is in use; then, set in use..IP "O_FSYNC" 1.25iDo file writes synchronously..IP "O_NOCTTY" 1.25iIn the POSIX environment, if this flag is set and pathidentifies a terminal device, the.PN open()function will not cause the terminal device to become the controllingterminal for the process..RE.IP "" .5iOpening a file with O_APPEND set causes each write on the fileto be appended to the end.  .IP "" .5iIf O_TRUNC is specified and thefile exists, the file is truncated to zero length..IP "" .5iIf O_EXCL is set with O_CREAT and the file alreadyexists, the .PN open returns an error.  This can be used toimplement a simple exclusive access locking mechanism..IP "" .5iIf the O_NDELAY or O_NONBLOCK flag is specified and the open call would resultin the process being blocked for some reason, the open returnsimmediately.Forexample, if the process were waiting for carrier on a dialupline, an open with the O_NDELAY or O_NONBLOCK flag would return immediately. The first time the process attempts to perform I/O on the openfile, it blocks. .IP "" .5iIf the O_FSYNC flag is specified, each subsequent write (see.MS write 2 )for the fileis synchronous, instead of the default asynchronouswrites.   Use this flag to ensure that the writeis complete when the system call returns.   With asynchronouswrites, the call returns when data is written to the buffer cache.There is no guarantee that the data was actually written out to the device.  With synchronous writes, the call returnswhen the data is written from the buffer cache to the device..IP "" .5iO_BLKINUSE and O_BLKANDSET provide a test and setoperation similar to a semaphore.O_BLKINUSE causes the open to block if another process hasmarked the file as in use.  The .PN openblocks in the system at a point where no references tothe file are established..IP "" .5iThere are two ways to mark a file as in use:.RS.IP \(bu 5Use the .PN ioctl (2) system call with the .I requestargument set to FIOSINUSE or TIOCSINUSE.For further information, see.MS tty 4 ..IP \(bu 5Use the O_BLKANDSET flag to.PN open (2) ..RE.IP "" .5iO_BLKANDSET caused the  .PN open to block if another process hasmarked the file in use.   When the .PN openresumes, the fileis marked in use by the current process. .IP "" .5iIf O_NDELAY is used with either O_BLKINUSE or O_BLKANDSET, the .PN open failed if the file is in use.The external variable .PN errno is set to EWOULDBLOCK in this case..NTThe in use flag cannotbe inherited by a child process, nor can it be replicated by the.PN dup system call..NEWhen the in use flag is cleared, all processes that are blockedfor that reason resume.The .PN open continues to block if another process marks the file as in useagain..PP The in use flag can be cleared in three ways:  .IP \(bu 4When the file descriptor marked as in use is closed.IP \(buWhen the process that set the in use flag exits.IP \(buWhen an.PN ioctl system call is issued and FIOCINUSE or TIOCCINUSE is specified in the.I request argument.   .SH Environment.NXR "open system call" "System V and".SS System FiveWhen your program is compiled using the System V environment, andO_NDELAY is specified, subsequent reads and writesare also affected..SH Return ValuesUpon successful completion, an integer value greater than-1 is returned..SH Diagnostics.NXR "open system call" "diagnostics"The .PN opencall fails under the following conditions:.TP 15[EACCES]The required permissions for reading, writing, or bothare denied for the named flag..TP 15[EACCES]Search permission is denied for a component of the path prefix..TP 15[EACCES]O_CREAT is specified, the file does not exist, and thedirectory in which it is to be created does not permitwriting..TP 15[EDQUOT]O_CREAT is specified, the file does not exist, andthe directory in which the entry for the new file isbeing placed cannot be extended, because the user'squota of disk blocks on the file system containingthe directory has been exhausted..TP 15[EDQUOT]O_CREAT is specified, the file does not exist,and the user's quota of inodes on the file system onwhich the file is being created has been exhausted..TP 15[EEXIST]O_CREAT and O_EXCL were specified and the file exists..TP 15[EFAULT]The.I pathpoints outside the process's allocated address space..TP 15[ENFILE]The system file table is full..TP 15[EINVAL]An attempt was made to open a file with the O_RDONLY andO_FSYNC flags set.  .TP 15[EIO]An I/O error occurred while making the directory entry or allocatingthe inode for O_CREAT..TP 15[EISDIR]The named file is a directory, and the arguments specifyit is to be opened for writing..TP 15[ELOOP]Too many symbolic links were encountered in translating the pathname..TP 15[EMFILE]{OPEN_MAX} file descriptors are currently open..TP 15[ENAMETOOLONG]A component of a pathname exceeds 255 characters or an entirepathname exceeds 1023 characters..TP 15[ENOENT]O_CREAT is not set and the named file does not exist..TP 15[ENOENT]A necessary component of the path name does not exist..TP[ENOENT]The \fIpath\fP argument points to an empty string and the processis running in the POSIX or SYSTEM_FIVE environment..TP 15[ENOSPC]O_CREAT is specified, the file does not exist,and the directory in which the entry for the new file is beingplaced cannot be extended because there is no space left on thefile system containing the directory..TP 15[ENOSPC]O_CREAT is specified, the file does not exist, and thereare no free inodes on the file system on which thefile is being created..TP 15[ENOTDIR]A component of the path prefix is not a directory..TP 15[ENXIO]The named file is a character special or blockspecial file, and the device associated with this special filedoes not exist..TP 15[ENXIO]The O_NDELAY flag is given, and the file is a communications deviceon which there is no carrier present..TP[ENXIO]O_NONBLOCK is set, the named file is a FIFO, O_WRONLY isset and no process has the file open for reading..TP 15[EOPNOTSUPP]An attempt was made to open a socket that is not set active. .TP 15[EROFS]The named file resides on a read-only file system,and the file is to be modified..TP 15[ESTALE]The file handle given in the argument is invalid.  The file referred to by that file handle no longer exists or has been revoked..TP[ETIMEDOUT]A connect request or remote file operation failedbecause the connected party did not respond after a periodof time determined by the communications protocol..TP 15[ETXTBSY]The file is a pure procedure (shared text) file that is beingexecuted and the .PN opencall requests write access..TP 15[EWOULDBLOCK]The open would have blocked if the O_NDELAY was not used. The probable cause for the block is that the file was marked in use..TP[EINTR]A signal was caught during the.PN open()function..SH See Alsochmod(2), close(2), dup(2), fcntl(2), lseek(2), read(2), write(2), umask(2), tty(4)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本在线一区| 国产拍欧美日韩视频二区| 欧美又粗又大又爽| 92国产精品观看| 成人高清视频在线| 91美女视频网站| 在线视频欧美区| 欧美探花视频资源| 欧美精品tushy高清| 欧美区一区二区三区| 91精品国产色综合久久不卡电影 | 蜜桃视频在线观看一区| 青青草成人在线观看| 久99久精品视频免费观看| 韩国精品久久久| 国产高清不卡一区| 99久久综合99久久综合网站| 色婷婷激情一区二区三区| 欧美视频中文字幕| 欧美高清视频不卡网| 日韩一区二区在线播放| 久久久综合精品| 中文字幕一区二区在线观看| 中文字幕日韩一区二区| 亚洲国产综合91精品麻豆| 亚洲va欧美va人人爽| 久久精品国产澳门| 国产91丝袜在线观看| 欧洲色大大久久| 日韩网站在线看片你懂的| 久久久精品影视| 一区二区视频在线| 免费成人在线影院| 丁香五精品蜜臀久久久久99网站| 一本久道久久综合中文字幕| 欧美精品 日韩| 欧美激情资源网| 亚洲成人黄色影院| 国产激情视频一区二区在线观看 | 日本韩国一区二区三区视频| 欧美性受xxxx黑人xyx性爽| 日韩一级免费一区| 中文字幕亚洲区| 青青草97国产精品免费观看无弹窗版 | 激情久久久久久久久久久久久久久久| 粉嫩av亚洲一区二区图片| 欧美日韩黄视频| 国产亚洲精品免费| 性感美女久久精品| 丰满放荡岳乱妇91ww| 欧美妇女性影城| 国产精品无码永久免费888| 亚洲成人午夜电影| 成人aa视频在线观看| 欧美电影免费观看高清完整版在| 国产精品国产三级国产普通话99 | 亚洲自拍偷拍麻豆| 国产一区二区0| 精品视频123区在线观看| 国产欧美日产一区| 奇米精品一区二区三区在线观看一| 成人免费高清在线观看| 日韩视频不卡中文| 一个色综合网站| 成人h动漫精品一区二区| 日韩精品专区在线| 亚洲高清久久久| 91在线国产观看| 久久久久久久久久久久久久久99| 亚洲国产精品久久久久秋霞影院 | 欧美日韩一级黄| 一区在线中文字幕| 韩国v欧美v亚洲v日本v| 欧美久久婷婷综合色| 亚洲日本成人在线观看| 国产黄色91视频| 精品久久国产97色综合| 秋霞成人午夜伦在线观看| 色就色 综合激情| 国产精品成人午夜| 国产福利不卡视频| 26uuuu精品一区二区| 日本va欧美va精品发布| 欧美色大人视频| 亚洲黄色录像片| 91丝袜美女网| 综合激情网...| av电影天堂一区二区在线| 国产日产欧产精品推荐色| 久久精品久久综合| 日韩一卡二卡三卡四卡| 天天综合天天综合色| 欧美羞羞免费网站| 亚洲尤物在线视频观看| 色婷婷综合激情| 一区二区三区在线播放| 日本二三区不卡| 伊人开心综合网| 欧美视频在线不卡| 亚洲国产日韩一级| 欧美日韩成人一区| 水野朝阳av一区二区三区| 欧美精品丝袜中出| 日韩高清电影一区| 日韩欧美国产午夜精品| 久久电影网电视剧免费观看| 精品日韩成人av| 国产一区二区精品久久| 中文av一区二区| 99热精品国产| 一区二区日韩av| 欧美裸体bbwbbwbbw| 欧美aⅴ一区二区三区视频| 欧美mv和日韩mv国产网站| 国产一区二区0| 综合在线观看色| 欧美亚洲综合另类| 日本少妇一区二区| 精品国产精品网麻豆系列| 黄色日韩三级电影| 国产女人aaa级久久久级| 91影视在线播放| 丝袜美腿亚洲一区二区图片| 日韩免费在线观看| 国产99久久久精品| 一区二区三区蜜桃| 欧美一级片在线| 国产成人综合亚洲91猫咪| 国产精品不卡在线| 欧美日韩国产系列| 韩国精品在线观看| 亚洲精品中文在线| 91麻豆精品国产综合久久久久久 | 欧美丝袜第三区| 久久99九九99精品| 国产精品免费丝袜| 欧美午夜电影网| 国内精品嫩模私拍在线| 国产精品久久久久久福利一牛影视 | 国产乱码字幕精品高清av | 国产91富婆露脸刺激对白| 亚洲色图都市小说| 欧美一区二区三区在线看| 成人理论电影网| 日韩一区精品视频| 国产精品午夜春色av| 69av一区二区三区| 成人激情免费网站| 日韩1区2区日韩1区2区| 国产精品国产a| 91精品国产一区二区三区| 丁香激情综合五月| 日韩和欧美的一区| 国产精品激情偷乱一区二区∴| 欧美日韩国产片| 成人午夜视频网站| 久久精品国产第一区二区三区| 亚洲天堂a在线| 精品国产亚洲在线| 欧美性生活大片视频| 国产超碰在线一区| 日韩精品成人一区二区在线| 国产精品免费看片| 精品免费日韩av| 欧美日韩午夜在线| 成人黄色国产精品网站大全在线免费观看 | 最新日韩av在线| 精品久久久久一区| 欧美人伦禁忌dvd放荡欲情| 成人免费的视频| 裸体歌舞表演一区二区| 亚洲一区二区影院| 国产精品久久久久久久久图文区 | 亚洲色图.com| 国产午夜亚洲精品理论片色戒| 91精品国产91久久综合桃花| 一本大道综合伊人精品热热| 国产成人精品影视| 美日韩一区二区| 亚洲www啪成人一区二区麻豆| 综合色中文字幕| 国产婷婷色一区二区三区四区 | 午夜电影一区二区三区| 亚洲精品成人在线| 日韩毛片一二三区| 欧美国产日韩一二三区| 久久久久久久久久久久久女国产乱| 91精品婷婷国产综合久久竹菊| 欧美专区亚洲专区| 色婷婷久久久亚洲一区二区三区| 成人h动漫精品一区二| 国产盗摄一区二区| 国产精品一区二区三区网站| 精品无码三级在线观看视频| 美腿丝袜亚洲综合| 久久成人麻豆午夜电影| 免费三级欧美电影| 日本不卡视频一二三区| 日韩成人精品在线观看| 午夜精品久久久久久久久|