Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/fcntl.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94 | .\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd September 4, 2019 | .Dd January 17, 2020 | ||||
.Dt FCNTL 2 | .Dt FCNTL 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm fcntl | .Nm fcntl | ||||
.Nd file control | .Nd file control | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
A zero value in | A zero value in | ||||
.Fa arg | .Fa arg | ||||
turns off read ahead. | turns off read ahead. | ||||
.It Dv F_ADD_SEALS | .It Dv F_ADD_SEALS | ||||
Add seals to the file as described below, if the underlying filesystem supports | Add seals to the file as described below, if the underlying filesystem supports | ||||
seals. | seals. | ||||
.It Dv F_GET_SEALS | .It Dv F_GET_SEALS | ||||
Get seals associated with the file, if the underlying filesystem supports seals. | Get seals associated with the file, if the underlying filesystem supports seals. | ||||
.It Dv F_ISUNIONSTACK | |||||
Check if the vnode is part of a union stack (either the "union" flag from | |||||
.Xr mount 2 | |||||
or unionfs). | |||||
This is a hack not intended to be used outside of libc. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
The flags for the | The flags for the | ||||
.Dv F_GETFL | .Dv F_GETFL | ||||
and | and | ||||
.Dv F_SETFL | .Dv F_SETFL | ||||
flags are as follows: | flags are as follows: | ||||
.Bl -tag -width O_NONBLOCKX | .Bl -tag -width O_NONBLOCKX | ||||
▲ Show 20 Lines • Show All 557 Lines • Show Last 20 Lines |