Lines Matching refs:fcntl
78 declared in the header file @file{fcntl.h}, while @code{close} is
81 @pindex fcntl.h
84 @standards{POSIX.1, fcntl.h}
170 @standards{Unix98, fcntl.h}
184 @standards{POSIX.1, fcntl.h}
208 @standards{Unix98, fcntl.h}
908 different header files: @file{fcntl.h} and @file{sys/file.h}.
1930 @c fcntl dup ok
1990 The descriptor supports the addition of seals using the @code{fcntl}
3003 @c After fcntl to check that the FD is open, it calls
3145 @c After fcntl to check the fd is open, hold aio_requests_mutex, call
3274 @cindex @code{fcntl} function
3278 like. All of these operations are performed by the function @code{fcntl}.
3280 The second argument to the @code{fcntl} function is a command that
3283 @file{fcntl.h}. Many of these flags are also used by the @code{open}
3285 @pindex fcntl.h
3287 @deftypefun int fcntl (int @var{filedes}, int @var{command}, @dots{})
3288 @standards{POSIX.1, fcntl.h}
3290 The @code{fcntl} function performs the operation specified by
3349 @code{fcntl} is called. If the thread gets canceled these resources stay
3350 allocated until the program ends. To avoid this calls to @code{fcntl} should
3372 You can perform this operation using the @code{fcntl} function with the
3377 @pindex fcntl.h
3378 The @code{fcntl} function and flags are declared in @file{fcntl.h},
3387 equivalent to @code{fcntl (@var{old}, F_DUPFD, 0)}.
3406 fcntl (@var{old}, F_DUPFD, @var{new})
3415 @standards{POSIX.1, fcntl.h}
3416 This macro is used as the @var{command} argument to @code{fcntl}, to
3422 fcntl (@var{old}, F_DUPFD, @var{next-filedes})
3429 The return value from @code{fcntl} with this command is normally the value
3500 @file{fcntl.h}.
3501 @pindex fcntl.h
3504 @standards{POSIX.1, fcntl.h}
3505 This macro is used as the @var{command} argument to @code{fcntl}, to
3509 The normal return value from @code{fcntl} with this command is a
3513 In case of an error, @code{fcntl} returns @math{-1}. The following
3524 @standards{POSIX.1, fcntl.h}
3525 This macro is used as the @var{command} argument to @code{fcntl}, to
3531 fcntl (@var{filedes}, F_SETFD, @var{new-flags})
3534 The normal return value from @code{fcntl} with this command is an
3541 the @code{fcntl} function. The value is an integer constant usable
3545 @standards{POSIX.1, fcntl.h}
3569 int oldflags = fcntl (desc, F_GETFD, 0);
3579 return fcntl (desc, F_SETFD, oldflags);
3601 returned by @code{fcntl}, but cannot be changed.
3610 changed with @code{fcntl}.
3614 @file{fcntl.h}.
3615 @pindex fcntl.h
3632 @standards{POSIX.1, fcntl.h}
3637 @standards{POSIX.1, fcntl.h}
3642 @standards{POSIX.1, fcntl.h}
3647 @standards{Linux, fcntl.h}
3664 file access mode with @code{fcntl}, you must extract the access mode
3669 @standards{POSIX.1, fcntl.h}
3689 is a misnomer, @file{fcntl.h} defines additional names for the file
3693 @standards{GNU, fcntl.h (optional)}
3698 @standards{GNU, fcntl.h (optional)}
3703 @standards{GNU, fcntl.h (optional)}
3735 @standards{POSIX.1, fcntl.h}
3742 @standards{POSIX.1, fcntl.h}
3752 @standards{POSIX.1, fcntl.h}
3759 @standards{POSIX.1, fcntl.h}
3766 @standards{GNU, fcntl.h}
3791 @standards{POSIX.1, fcntl.h}
3805 then call @code{fcntl} to turn the bit off.
3809 @standards{POSIX.1, fcntl.h}
3826 @standards{GNU, fcntl.h (optional)}
3834 @standards{GNU, fcntl.h (optional)}
3842 @standards{GNU, fcntl.h (optional)}
3854 @standards{POSIX.1, fcntl.h}
3872 @standards{BSD, fcntl.h (optional)}
3882 @standards{BSD, fcntl.h (optional)}
3892 and changed with @code{fcntl}.
3895 @standards{POSIX.1, fcntl.h}
3908 @standards{POSIX.1, fcntl.h}
3920 @standards{BSD, fcntl.h}
3929 @standards{BSD, fcntl.h}
3937 @standards{BSD, fcntl.h}
3946 @standards{BSD, fcntl.h}
3951 @standards{GNU, fcntl.h}
3963 The @code{fcntl} function can fetch or change file status flags.
3966 @standards{POSIX.1, fcntl.h}
3967 This macro is used as the @var{command} argument to @code{fcntl}, to
3971 The normal return value from @code{fcntl} with this command is a
3977 In case of an error, @code{fcntl} returns @math{-1}. The following
3987 @standards{POSIX.1, fcntl.h}
3988 This macro is used as the @var{command} argument to @code{fcntl}, to set
3994 fcntl (@var{filedes}, F_SETFL, @var{new-flags})
4000 The normal return value from @code{fcntl} with this command is an
4021 int oldflags = fcntl (desc, F_GETFL, 0);
4031 return fcntl (desc, F_SETFL, oldflags);
4045 The remaining @code{fcntl} commands are used to support @dfn{record
4065 must do explicit @code{fcntl} calls to request and clear locks at the
4078 @code{fcntl} function are declared in the header file @file{fcntl.h}.
4079 @pindex fcntl.h
4082 @standards{POSIX.1, fcntl.h}
4083 This structure is used with the @code{fcntl} function to describe a file
4108 process holding the lock. It is filled in by calling @code{fcntl} with
4117 @standards{POSIX.1, fcntl.h}
4118 This macro is used as the @var{command} argument to @code{fcntl}, to
4121 to @code{fcntl}, so that the form of the call is:
4124 fcntl (@var{filedes}, F_GETLK, @var{lockp})
4136 @var{lockp} argument, but @code{fcntl} only returns information about
4144 The normal return value from @code{fcntl} with this command is an
4160 @standards{POSIX.1, fcntl.h}
4161 This macro is used as the @var{command} argument to @code{fcntl}, to
4164 @code{fcntl}, so that the form of the call is:
4167 fcntl (@var{filedes}, F_SETLK, @var{lockp})
4174 If the lock cannot be set, @code{fcntl} returns immediately with a value
4176 to release locks. If @code{fcntl} succeeds, it returns a value other
4211 @standards{POSIX.1, fcntl.h}
4212 This macro is used as the @var{command} argument to @code{fcntl}, to
4220 The @code{fcntl} return values and errors are the same as for the
4244 @standards{POSIX.1, fcntl.h}
4248 @standards{POSIX.1, fcntl.h}
4252 @standards{POSIX.1, fcntl.h}
4286 Using @code{fcntl} to apply an open file description lock on a region that
4317 @file{fcntl.h}. To use them, the macro @code{_GNU_SOURCE} must be
4332 @pindex fcntl.h.
4335 This macro is used as the @var{command} argument to @code{fcntl}, to
4338 to @code{fcntl}, so that the form of the call is:
4341 fcntl (@var{filedes}, F_OFD_GETLK, @var{lockp})
4353 @var{lockp} argument, but @code{fcntl} only returns information about
4363 The normal return value from @code{fcntl} with this command is either @math{0}
4379 @standards{POSIX.1, fcntl.h}
4380 This macro is used as the @var{command} argument to @code{fcntl}, to
4383 @code{fcntl}, so that the form of the call is:
4386 fcntl (@var{filedes}, F_OFD_SETLK, @var{lockp})
4393 If the lock cannot be set, @code{fcntl} returns immediately with a value
4395 to release locks. If @code{fcntl} succeeds, it returns @math{0}.
4427 @standards{POSIX.1, fcntl.h}
4428 This macro is used as the @var{command} argument to @code{fcntl}, to
4436 The @code{fcntl} return values and errors are the same as for the
4497 @code{F_SETOWN} command to the @code{fcntl} function. If the file
4508 @pindex fcntl.h
4510 @file{fcntl.h}.
4513 @standards{BSD, fcntl.h}
4514 This macro is used as the @var{command} argument to @code{fcntl}, to
4532 @standards{BSD, fcntl.h}
4533 This macro is used as the @var{command} argument to @code{fcntl}, to
4536 of type @code{pid_t} to be passed to @code{fcntl}, so that the form of
4540 fcntl (@var{filedes}, F_SETOWN, @var{pid})
4546 The return value from @code{fcntl} with this command is @math{-1}