public class Fcntl extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Fcntl.flock |
static class |
Fcntl.NoTransitions
Open file using the file handle.
|
| Constructor and Description |
|---|
Fcntl() |
| Modifier and Type | Method and Description |
|---|---|
static int |
AT_EACCESS()
Test access permitted for effective IDs, not real IDs.
|
static int |
AT_FDCWD()
Special value used to indicate the *at functions should use the current working directory.
|
static int |
AT_REMOVEDIR()
Remove directory instead of unlinking file.
|
static int |
AT_SYMLINK_FOLLOW()
Follow symbolic links.
|
static int |
AT_SYMLINK_NOFOLLOW()
Do not follow symbolic links.
|
static int |
creat(org.graalvm.nativeimage.c.type.CCharPointer pathname,
int mode)
Create and open FILE, with mode MODE.
|
static int |
DN_ACCESS()
File accessed.
|
static int |
DN_ATTRIB()
File changed attributes.
|
static int |
DN_CREATE()
File created.
|
static int |
DN_DELETE()
File removed.
|
static int |
DN_MODIFY()
File modified.
|
static int |
DN_MULTISHOT()
Don't remove notifier.
|
static int |
DN_RENAME()
File renamed.
|
static int |
F_DUPFD()
Duplicate file descriptor.
|
static short |
F_EXLCK() |
static int |
F_GETFD()
Get file descriptor flags.
|
static int |
F_GETFL()
Get file status flags.
|
static int |
F_GETLEASE()
Enquire what lease is active.
|
static int |
F_GETLK()
Get record locking info.
|
static int |
F_GETOWN()
Set owner (process receiving SIGIO).
|
static int |
F_NOTIFY()
Request notifications on a directory.
|
static short |
F_RDLCK()
Read lock.
|
static int |
F_SETFD()
Set file descriptor flags.
|
static int |
F_SETFL()
Set file status flags.
|
static int |
F_SETLEASE()
Set a lease.
|
static int |
F_SETLK()
Set record locking info (non-blocking).
|
static int |
F_SETLKW()
Set record locking info (blocking).
|
static int |
F_SETOWN()
Get owner (process receiving SIGIO).
|
static int |
F_SETSIG()
Set number of signal to be sent.
|
static short |
F_SHLCK() |
static short |
F_UNLCK()
Remove lock.
|
static short |
F_WRLCK()
Write lock.
|
static int |
fallocate(int fd,
int mode,
org.graalvm.word.SignedWord offset,
org.graalvm.word.SignedWord len)
Reserve storage for the data of the file associated with FD.
|
static int |
fcntl_no_transition(int fd,
int cmd,
int arg) |
static int |
fcntl(int fd,
int cmd)
Do the file control operation described by CMD on FD.
|
static int |
fcntl(int fd,
int cmd,
Fcntl.flock arg) |
static int |
fcntl(int fd,
int cmd,
int arg) |
static int |
FD_CLOEXEC()
For F_[GET|SET]FD.
|
static int |
LOCK_EX()
Exclusive lock.
|
static int |
LOCK_MAND()
This is a mandatory flock:
|
static int |
LOCK_NB()
Or'd with one of the above to prevent blocking.
|
static int |
LOCK_READ()
...
|
static int |
LOCK_RW()
...
|
static int |
LOCK_SH()
Shared lock.
|
static int |
LOCK_UN()
Remove lock.
|
static int |
LOCK_WRITE()
...
|
static int |
O_ACCMODE() |
static int |
O_APPEND() |
static int |
O_ASYNC() |
static int |
O_CREAT() |
static int |
O_DIRECTORY()
Must be a directory.
|
static int |
O_DSYNC()
Synchronize data.
|
static int |
O_EXCL() |
static int |
O_FSYNC() |
static int |
O_NDELAY() |
static int |
O_NOATIME()
Do not set atime.
|
static int |
O_NOCTTY() |
static int |
O_NOFOLLOW()
Do not follow links.
|
static int |
O_NONBLOCK() |
static int |
O_RDONLY() |
static int |
O_RDWR() |
static int |
O_RSYNC()
Synchronize read operations.
|
static int |
O_SYNC() |
static int |
O_TRUNC() |
static int |
O_WRONLY() |
static int |
open(org.graalvm.nativeimage.c.type.CCharPointer pathname,
int flags,
int mode)
Open FILE and return a new file descriptor for it, or -1 on error.
|
static int |
openat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer pathname,
int flags,
int mode)
Similar to `open' but a relative path name is interpreted relative to the directory for which
FD is a descriptor.
|
static org.graalvm.word.SignedWord |
readahead(int fd,
org.graalvm.word.SignedWord offset,
org.graalvm.word.UnsignedWord count)
Provide kernel hint to read ahead.
|
static int |
SPLICE_F_GIFT()
Pages passed in are a gift.
|
static int |
SPLICE_F_MORE()
Expect more data.
|
static int |
SPLICE_F_MOVE()
Move pages instead of copying.
|
static int |
SPLICE_F_NONBLOCK()
Don't block on the pipe splicing (but we may still block on the fd we splice from/to).
|
static org.graalvm.word.SignedWord |
splice(int fdin,
org.graalvm.word.Pointer offin,
int fdout,
org.graalvm.word.Pointer offout,
org.graalvm.word.SignedWord len,
int flags)
Splice two files together.
|
static int |
SYNC_FILE_RANGE_WAIT_AFTER()
Wait upon writeout of all pages in the range after performing the write.
|
static int |
SYNC_FILE_RANGE_WAIT_BEFORE()
Wait upon writeout of all pages in the range before performing the write.
|
static int |
SYNC_FILE_RANGE_WRITE()
Initiate writeout of all those dirty pages in the range which are not presently under
writeback.
|
static int |
sync_file_range(int fd,
org.graalvm.word.SignedWord offset,
org.graalvm.word.SignedWord count,
int flags)
Selective file content synch'ing.
|
static org.graalvm.word.SignedWord |
tee(int fdin,
int fdout,
org.graalvm.word.SignedWord len,
int flags)
In-kernel implementation of tee for pipe buffers.
|
public static int fcntl(int fd,
int cmd)
public static int fcntl(int fd,
int cmd,
int arg)
public static int fcntl_no_transition(int fd,
int cmd,
int arg)
public static int fcntl(int fd,
int cmd,
Fcntl.flock arg)
public static int open(org.graalvm.nativeimage.c.type.CCharPointer pathname,
int flags,
int mode)
public static int openat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer pathname,
int flags,
int mode)
public static int creat(org.graalvm.nativeimage.c.type.CCharPointer pathname,
int mode)
public static int O_ACCMODE()
public static int O_RDONLY()
public static int O_WRONLY()
public static int O_RDWR()
public static int O_CREAT()
public static int O_EXCL()
public static int O_NOCTTY()
public static int O_TRUNC()
public static int O_APPEND()
public static int O_NONBLOCK()
public static int O_NDELAY()
public static int O_SYNC()
public static int O_FSYNC()
public static int O_ASYNC()
public static int F_GETLK()
public static int F_SETLK()
public static int F_SETLKW()
public static int O_DIRECTORY()
public static int O_NOFOLLOW()
public static int O_NOATIME()
public static int O_DSYNC()
public static int O_RSYNC()
public static int F_DUPFD()
public static int F_GETFD()
public static int F_SETFD()
public static int F_GETFL()
public static int F_SETFL()
public static int F_SETOWN()
public static int F_GETOWN()
public static int F_SETSIG()
public static int F_SETLEASE()
public static int F_GETLEASE()
public static int F_NOTIFY()
public static int FD_CLOEXEC()
public static short F_RDLCK()
public static short F_WRLCK()
public static short F_UNLCK()
public static short F_EXLCK()
public static short F_SHLCK()
public static int LOCK_SH()
public static int LOCK_EX()
public static int LOCK_NB()
public static int LOCK_UN()
public static int LOCK_MAND()
public static int LOCK_READ()
public static int LOCK_WRITE()
public static int LOCK_RW()
public static int DN_ACCESS()
public static int DN_MODIFY()
public static int DN_CREATE()
public static int DN_DELETE()
public static int DN_RENAME()
public static int DN_ATTRIB()
public static int DN_MULTISHOT()
public static int SYNC_FILE_RANGE_WAIT_BEFORE()
public static int SYNC_FILE_RANGE_WRITE()
public static int SYNC_FILE_RANGE_WAIT_AFTER()
public static int SPLICE_F_MOVE()
public static int SPLICE_F_NONBLOCK()
public static int SPLICE_F_MORE()
public static int SPLICE_F_GIFT()
public static int AT_FDCWD()
public static int AT_SYMLINK_NOFOLLOW()
public static int AT_REMOVEDIR()
public static int AT_SYMLINK_FOLLOW()
public static int AT_EACCESS()
public static org.graalvm.word.SignedWord readahead(int fd,
org.graalvm.word.SignedWord offset,
org.graalvm.word.UnsignedWord count)
public static int sync_file_range(int fd,
org.graalvm.word.SignedWord offset,
org.graalvm.word.SignedWord count,
int flags)
public static org.graalvm.word.SignedWord splice(int fdin,
org.graalvm.word.Pointer offin,
int fdout,
org.graalvm.word.Pointer offout,
org.graalvm.word.SignedWord len,
int flags)
public static org.graalvm.word.SignedWord tee(int fdin,
int fdout,
org.graalvm.word.SignedWord len,
int flags)
public static int fallocate(int fd,
int mode,
org.graalvm.word.SignedWord offset,
org.graalvm.word.SignedWord len)