Class Fcntl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int AT_EACCESS
      POSIX: Check access using effective user and group ID.
      static int AT_FDCWD
      POSIX: Use the current working directory to determine the target.
      static int AT_REMOVEDIR
      POSIX: Remove directory instead of file.
      static int AT_SYMLINK_FOLLOW
      POSIX: Follow symbolic link.
      static int AT_SYMLINK_NOFOLLOW
      POSIX: Do not follow symbolic links.
      static int F_DUPFD
      POSIX: Duplicate file descriptor.
      static int F_DUPFD_CLOEXEC
      POSIX: Duplicate file descriptor with the close-on-exec flag FD_CLOEXEC set.
      static int F_GETFD
      POSIX: et file descriptor flags.
      static int F_GETFL
      POSIX: Get file status flags and file access modes.
      static int F_GETLK
      POSIX: Get record locking information.
      static int F_GETOWN
      POSIX: Get process or process group ID to receive SIGURG signals.
      static int F_RDLCK
      POSIX: Shared or read lock.
      static int F_SETFD
      POSIX: Set file descriptor flags.
      static int F_SETFL
      POSIX: Set file status flags.
      static int F_SETLK
      POSIX: Set record locking information.
      static int F_SETLKW
      POSIX: Set record locking information; wait if blocked.
      static int F_SETOWN
      POSIX: Set process or process group ID to receive SIGURG signals.
      static int F_UNLCK
      POSIX: Unlock.
      static int F_WRLCK
      POSIX: Exclusive or write lock.
      static int FD_CLOEXEC
      POSIX: Close the file descriptor upon execution of an exec family function.
      static boolean HAVE_FCNTL_H  
      static int O_ACCMODE
      POSIX: Mask for file access modes.
      static int O_APPEND
      POSIX: Set append mode.
      static IntDefine O_ASYNC
      Non POSIX: Enable signal-driven I/O.
      static int O_CLOEXEC
      POSIX: The FD_CLOEXEC flag associated with the new descriptor shall be set to close the file descriptor upon execution of an exec family function.
      static int O_CREAT
      POSIX: Create file if it does not exist.
      static int O_DIRECTORY
      POSIX: Fail if file is a non-directory file.
      static IntDefine O_DSYNC
      POSIX.SIO: Write according to synchronized I/O data integrity completion.
      static int O_EXCL
      POSIX: Exclusive use flag.
      static IntDefine O_EXEC
      POSIX: Open for execute only (non-directory files).The result is unspecified if this flag is applied to a directory.
      static IntDefine O_FSYNC
      Non POSIX: enables synchronous writing for the file. .
      static IntDefine O_LARGEFILE
      Linux: (LFS) Allow files whose sizes cannot be represented in an off_t (but can be represented in an off64_t) to be opened.
      static int O_NOCTTY
      POSIX: Do not assign controlling terminal.
      static int O_NOFOLLOW
      POSIX: Do not follow symbolic links.
      static int O_NONBLOCK
      POSIX: Non-blocking mode.
      static int O_RDONLY
      POSIX: Open for reading only.
      static int O_RDWR
      POSIX: Open for reading and writing.
      static IntDefine O_RSYNC
      POSIX.SIO: Synchronized read I/O operations.
      static IntDefine O_SEARCH
      POSIX: Open directory for search only.
      static int O_SYNC
      POSIX: Write according to synchronized I/O file integrity completion.
      static int O_TRUNC
      POSIX: Truncate flag.
      static IntDefine O_TTY_INIT
      POSIX: Set the termios structure terminal parameters to a state that provides conforming behavior.
      static int O_WRONLY
      POSIX: Open for writing only.
      static IntDefine POSIX_FADV_DONTNEED
      POSIX.ADV: The application expects that it will not access the specified data in the near future.
      static IntDefine POSIX_FADV_NOREUSE
      POSIX.ADV: The application expects to access the specified data once and then not reuse it thereafter.
      static IntDefine POSIX_FADV_NORMAL
      POSIX.ADV: The application has no advice to give on its behavior with respect to the specified data.It is the default characteristic if no advice is given for an open file.
      static IntDefine POSIX_FADV_RANDOM
      POSIX.ADV: The application expects to access the specified data in a random order.
      static IntDefine POSIX_FADV_SEQUENTIAL
      POSIX.ADV: The application expects to access the specified data sequentially from lower offsets to higher offsets.
      static IntDefine POSIX_FADV_WILLNEED
      POSIX.ADV: The application expects to access the specified data in the near future.
      static int SEEK_CUR
      POSIX: same as defined in stdio.h.
      static int SEEK_END
      POSIX: same as defined in stdio.h.
      static int SEEK_SET
      POSIX: same as defined in stdio.h.
    • Field Detail

      • AT_EACCESS

        @Define
        public static final int AT_EACCESS
        POSIX: Check access using effective user and group ID.
      • AT_FDCWD

        @Define
        public static final int AT_FDCWD
        POSIX: Use the current working directory to determine the target. of relative file paths.
      • AT_REMOVEDIR

        @Define
        public static final int AT_REMOVEDIR
        POSIX: Remove directory instead of file.
      • AT_SYMLINK_FOLLOW

        @Define
        public static final int AT_SYMLINK_FOLLOW
        POSIX: Follow symbolic link.
      • AT_SYMLINK_NOFOLLOW

        @Define
        public static final int AT_SYMLINK_NOFOLLOW
        POSIX: Do not follow symbolic links.
      • FD_CLOEXEC

        @Define
        public static final int FD_CLOEXEC
        POSIX: Close the file descriptor upon execution of an exec family function.
      • F_DUPFD

        @Define
        public static final int F_DUPFD
        POSIX: Duplicate file descriptor.
      • F_DUPFD_CLOEXEC

        @Define
        public static final int F_DUPFD_CLOEXEC
        POSIX: Duplicate file descriptor with the close-on-exec flag FD_CLOEXEC set.
      • F_GETFD

        @Define
        public static final int F_GETFD
        POSIX: et file descriptor flags.
      • F_GETFL

        @Define
        public static final int F_GETFL
        POSIX: Get file status flags and file access modes.
      • F_GETLK

        @Define
        public static final int F_GETLK
        POSIX: Get record locking information.
      • F_GETOWN

        @Define
        public static final int F_GETOWN
        POSIX: Get process or process group ID to receive SIGURG signals.
      • F_RDLCK

        @Define
        public static final int F_RDLCK
        POSIX: Shared or read lock.
      • F_SETFD

        @Define
        public static final int F_SETFD
        POSIX: Set file descriptor flags.
      • F_SETFL

        @Define
        public static final int F_SETFL
        POSIX: Set file status flags.
      • F_SETLK

        @Define
        public static final int F_SETLK
        POSIX: Set record locking information.
      • F_SETLKW

        @Define
        public static final int F_SETLKW
        POSIX: Set record locking information; wait if blocked.
      • F_SETOWN

        @Define
        public static final int F_SETOWN
        POSIX: Set process or process group ID to receive SIGURG signals.
      • F_UNLCK

        @Define
        public static final int F_UNLCK
        POSIX: Unlock.
      • F_WRLCK

        @Define
        public static final int F_WRLCK
        POSIX: Exclusive or write lock.
      • HAVE_FCNTL_H

        public static final boolean HAVE_FCNTL_H
      • O_ACCMODE

        @Define
        public static final int O_ACCMODE
        POSIX: Mask for file access modes.
      • O_APPEND

        @Define
        public static final int O_APPEND
        POSIX: Set append mode.
      • O_ASYNC

        @Define
        public static final IntDefine O_ASYNC
        Non POSIX: Enable signal-driven I/O.
      • O_CLOEXEC

        @Define
        public static final int O_CLOEXEC
        POSIX: The FD_CLOEXEC flag associated with the new descriptor shall be set to close the file descriptor upon execution of an exec family function.
      • O_CREAT

        @Define
        public static final int O_CREAT
        POSIX: Create file if it does not exist.
      • O_DIRECTORY

        @Define
        public static final int O_DIRECTORY
        POSIX: Fail if file is a non-directory file.
      • O_DSYNC

        @Define
        public static final IntDefine O_DSYNC
        POSIX.SIO: Write according to synchronized I/O data integrity completion.
      • O_EXCL

        @Define
        public static final int O_EXCL
        POSIX: Exclusive use flag.
      • O_EXEC

        @Define
        public static final IntDefine O_EXEC
        POSIX: Open for execute only (non-directory files).The result is unspecified if this flag is applied to a directory.
      • O_FSYNC

        @Define
        public static final IntDefine O_FSYNC
        Non POSIX: enables synchronous writing for the file. .
      • O_LARGEFILE

        @Define
        public static final IntDefine O_LARGEFILE
        Linux: (LFS) Allow files whose sizes cannot be represented in an off_t (but can be represented in an off64_t) to be opened. The _LARGEFILE64_SOURCE macro must be defined (before including any header files) in order to obtain this definition. Setting the _FILE_OFFSET_BITS feature test macro to 64 (rather than using O_LARGEFILE) is the preferred method of accessing large files on 32-bit systems (see feature_test_macros(7)). .
      • O_NOCTTY

        @Define
        public static final int O_NOCTTY
        POSIX: Do not assign controlling terminal.
      • O_NOFOLLOW

        @Define
        public static final int O_NOFOLLOW
        POSIX: Do not follow symbolic links.
      • O_NONBLOCK

        @Define
        public static final int O_NONBLOCK
        POSIX: Non-blocking mode.
      • O_RDONLY

        @Define
        public static final int O_RDONLY
        POSIX: Open for reading only.
      • O_RDWR

        @Define
        public static final int O_RDWR
        POSIX: Open for reading and writing.
      • O_RSYNC

        @Define
        public static final IntDefine O_RSYNC
        POSIX.SIO: Synchronized read I/O operations.
      • O_SEARCH

        @Define
        public static final IntDefine O_SEARCH
        POSIX: Open directory for search only. The result is unspecified if this flag is applied to a non-directory file.
      • O_SYNC

        @Define
        public static final int O_SYNC
        POSIX: Write according to synchronized I/O file integrity completion.
      • O_TRUNC

        @Define
        public static final int O_TRUNC
        POSIX: Truncate flag.
      • O_TTY_INIT

        @Define
        public static final IntDefine O_TTY_INIT
        POSIX: Set the termios structure terminal parameters to a state that provides conforming behavior.
      • O_WRONLY

        @Define
        public static final int O_WRONLY
        POSIX: Open for writing only.
      • POSIX_FADV_DONTNEED

        @Define
        public static final IntDefine POSIX_FADV_DONTNEED
        POSIX.ADV: The application expects that it will not access the specified data in the near future.
      • POSIX_FADV_NOREUSE

        @Define
        public static final IntDefine POSIX_FADV_NOREUSE
        POSIX.ADV: The application expects to access the specified data once and then not reuse it thereafter.
      • POSIX_FADV_NORMAL

        @Define
        public static final IntDefine POSIX_FADV_NORMAL
        POSIX.ADV: The application has no advice to give on its behavior with respect to the specified data.It is the default characteristic if no advice is given for an open file.
      • POSIX_FADV_RANDOM

        @Define
        public static final IntDefine POSIX_FADV_RANDOM
        POSIX.ADV: The application expects to access the specified data in a random order.
      • POSIX_FADV_SEQUENTIAL

        @Define
        public static final IntDefine POSIX_FADV_SEQUENTIAL
        POSIX.ADV: The application expects to access the specified data sequentially from lower offsets to higher offsets.
      • POSIX_FADV_WILLNEED

        @Define
        public static final IntDefine POSIX_FADV_WILLNEED
        POSIX.ADV: The application expects to access the specified data in the near future.
      • SEEK_CUR

        @Define
        public static final int SEEK_CUR
        POSIX: same as defined in stdio.h.
      • SEEK_END

        @Define
        public static final int SEEK_END
        POSIX: same as defined in stdio.h.
      • SEEK_SET

        @Define
        public static final int SEEK_SET
        POSIX: same as defined in stdio.h.