fcntl.2 (129369) | fcntl.2 (131504) |
---|---|
1.\" Copyright (c) 1983, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94 | 1.\" Copyright (c) 1983, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94 |
33.\" $FreeBSD: head/lib/libc/sys/fcntl.2 129369 2004-05-17 23:09:10Z yar $ | 33.\" $FreeBSD: head/lib/libc/sys/fcntl.2 131504 2004-07-02 23:52:20Z ru $ |
34.\" 35.Dd January 12, 1994 36.Dt FCNTL 2 37.Os 38.Sh NAME 39.Nm fcntl 40.Nd file control 41.Sh LIBRARY --- 5 unchanged lines hidden (view full) --- 47.Sh DESCRIPTION 48The 49.Fn fcntl 50system call provides for control over descriptors. 51The argument 52.Fa fd 53is a descriptor to be operated on by 54.Fa cmd | 34.\" 35.Dd January 12, 1994 36.Dt FCNTL 2 37.Os 38.Sh NAME 39.Nm fcntl 40.Nd file control 41.Sh LIBRARY --- 5 unchanged lines hidden (view full) --- 47.Sh DESCRIPTION 48The 49.Fn fcntl 50system call provides for control over descriptors. 51The argument 52.Fa fd 53is a descriptor to be operated on by 54.Fa cmd |
55as described below. Depending on the value of | 55as described below. 56Depending on the value of |
56.Fa cmd , 57.Fn fcntl 58can take an additional third argument 59.Fa "int arg" . 60.Bl -tag -width F_GETOWNX 61.It Dv F_DUPFD 62Return a new descriptor as follows: 63.Pp --- 88 unchanged lines hidden (view full) --- 152.Er EAGAIN . 153.It Dv O_APPEND 154Force each write to append at the end of file; 155corresponds to the 156.Dv O_APPEND 157flag of 158.Xr open 2 . 159.It Dv O_DIRECT | 57.Fa cmd , 58.Fn fcntl 59can take an additional third argument 60.Fa "int arg" . 61.Bl -tag -width F_GETOWNX 62.It Dv F_DUPFD 63Return a new descriptor as follows: 64.Pp --- 88 unchanged lines hidden (view full) --- 153.Er EAGAIN . 154.It Dv O_APPEND 155Force each write to append at the end of file; 156corresponds to the 157.Dv O_APPEND 158flag of 159.Xr open 2 . 160.It Dv O_DIRECT |
160Minimize or eliminate the cache effects of reading and writing. The system 161will attempt to avoid caching the data you read or write. If it cannot | 161Minimize or eliminate the cache effects of reading and writing. 162The system 163will attempt to avoid caching the data you read or write. 164If it cannot |
162avoid caching the data, it will minimize the impact the data has on the cache. 163Use of this flag can drastically reduce performance if not used with care. 164.It Dv O_ASYNC 165Enable the 166.Dv SIGIO 167signal to be sent to the process group 168when I/O is possible, e.g., 169upon availability of data to be read. --- 414 unchanged lines hidden --- | 165avoid caching the data, it will minimize the impact the data has on the cache. 166Use of this flag can drastically reduce performance if not used with care. 167.It Dv O_ASYNC 168Enable the 169.Dv SIGIO 170signal to be sent to the process group 171when I/O is possible, e.g., 172upon availability of data to be read. --- 414 unchanged lines hidden --- |