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

📄 ioctl.2

📁 Unix操作系统minix 2.0源码
💻 2
字号:
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)ioctl.2	6.3 (Berkeley) 3/4/86.\".TH IOCTL 2 "March 4, 1986".UC 4.SH NAMEioctl \- control device.SH SYNOPSIS.nf.ft B#include <sys/types.h>#include <sys/ioctl.h>.ta +54nint ioctl(int \fId\fP, int \fIrequest\fP, void *\fIargp\fP)	(Minix)int ioctl(int \fId\fP, ioreq_t \fIrequest\fP, void *\fIargp\fP)	(Minix-vmd).DT.fi.ft R.SH DESCRIPTION.B Ioctlperforms a variety of functionson open descriptors.  In particular, many operatingcharacteristics of character special files (e.g. terminals)may be controlled with.B ioctlrequests.The writeups of various devices in section 4 discuss how.B ioctlapplies to them..PPAn  ioctl.I requesthas encoded in it whether the argument is an \*(lqin\*(rq parameteror \*(lqout\*(rq parameter, and the size of the argument \fIargp\fP in bytes.Macros and defines used in specifying an ioctl.I requestare located in the file.IR <sys/ioctl.h> ..SH "RETURN VALUEIf an error has occurred, a value of \-1 is returned and.B errnois set to indicate the error..SH ERRORS.B Ioctlwill fail if one or more of the following are true:.TP 15[EBADF]\fID\fP is not a valid descriptor..TP 15[ENOTTY]\fID\fP is not associated with a characterspecial device..TP 15[ENOTTY]The specified request does not apply to the kindof object that the descriptor \fId\fP references..TP 15[EINVAL]\fIRequest\fP or \fIargp\fP is not valid..SH "SEE ALSO".BR execve (2),.BR fcntl (2),.BR mt (4),.BR tty (4),.BR intro (4).

⌨️ 快捷键说明

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