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

📄 pkopen.3

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 3
字号:
.TH PKOPEN 3 deprecated.SH NAMEpkopen, pkclose, pkread, pkwrite, pkfail \- packet driver simulator.SH SYNOPSIS.B char *pkopen(fd).PP.B pkclose(ptr).br.B char *ptr;.PP.B pkread(ptr, buffer, count).br.B char *ptr, *buffer;.PP.B pkwrite(ptr, buffer, count).br.B char *ptr, *buffer;.PP.B pkfail().SH DESCRIPTIONThese routines are a user-level implementation of the full-duplexend-to-end communication protocol described in.IR pk (4).If.I fdis a file descriptor open for reading and writing,.I pkopencarries out the initial synchronization and returns an identifyingpointer.The pointeris used as the first parameter to.I pkread,.I pkwrite,and.I pkclose..PP.I Pkread, pkwriteand.I pkclosebehave analogously to.I read, writeand.IR close (2).However, a write of zero bytesis meaningful and will produce a correspondingread of zero bytes..SH SEE ALSOpk(4), pkon(2).SH DIAGNOSTICS.I Pkfailis called upon persistent breakdown of communication..I Pkfailmust be supplied by the user..PP.I Pkopenreturns a null (0) pointer if packet protocolcan not be established..PP.I Pkreadreturns \-1 on end of file,0 in correspondence with a 0-length write..SH BUGSThis simulation of.IR pk (4)leaves something to be desiredin needing special read and write routines, and innot being inheritable across calls of.IR exec (2).Its prime use is on systems that lack.I pk..brThese functions use.IR alarm (2);simultaneous use of.I alarmfor other puposes may cause trouble.

⌨️ 快捷键说明

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