📄 fcntl.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>fcntl</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4>NAME</h4><blockquote>fcntl - file control<dl><dt><b>Note:</b><dd>The <B>XSH</B> specification for<i><a href="../xsh/fcntl.html">fcntl()</a></i> contains the basic definition of this interface. The followingadditional information pertains to Sockets.</dl></blockquote><h4>DESCRIPTION</h4><blockquote>The following additional values for<I>cmd</I>are defined in<i><a href="../xsh/fcntl.h.html"><fcntl.h></a></i>:<dl compact><dt>F_GETOWN<dd>If <I>fildes</I> refers to a socket, get the process or process group IDspecified to receive SIGURG signals when out-of-band data isavailable. Positive values indicate a process ID; negative values,other than -1, indicate a process group ID.If <I>fildes</I> does not refer to a socket, the results are unspecified.<dt>F_SETOWN<dd>If <I>fildes</I> refers to a socket, set the process or process group IDspecified to receive SIGURG signals when out-of-band data isavailable, using the value of the third argument, <I>arg</I>, taken as type<B>int</B>. Positive values indicate a process ID; negative values,other than -1, indicate a process group ID.If <I>fildes</I> does not refer to a socket, the results are unspecified.</dl></blockquote><h4>RETURN VALUE</h4><blockquote>Upon successful completion, the value returned depends on<I>cmd</I>as follows:<dl compact><dt>F_GETOWN<dd>Value of the socket owner process or process group; this will not be -1.<dt>F_SETOWN<dd>Value other than -1.</dl></blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -