openpty.3
来自「minix操作系统最新版本(3.1.1)的源代码」· 3 代码 · 共 19 行
3
19 行
.TH OPENPTY 3 "May 15, 1985".AT 3.SH NAMEopenpty \- library call to obtain a pty.SH SYNOPSIS.nf.ft B#include <libutil.h>int openpty(int *\fIamaster\fP, int *\fIaslave\fP, char *\fIname\fP, struct termios *\fItermp\fP, struct winsize *\fIwinp\fP).ft R.fi.SH DESCRIPTION.B Openptytries to obtain pty file descriptors by opening /dev/ttypX and/dev/ptypX, setting *\fIamaster\fP and *\fIaslave\fP to these fd's,changing ownership of the slave pty to the current process, and makingit only group-writable by group tty.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?