public class Stat extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Stat.stat |
| Constructor and Description |
|---|
Stat() |
| Modifier and Type | Method and Description |
|---|---|
static int |
chmod(org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
Set file access permissions for FILE to MODE.
|
static int |
fchmod(int fd,
int mode)
Set file access permissions of the file FD is open on to MODE.
|
static int |
fchmodat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer file,
int mode,
int flag)
Set file access permissions of FILE relative to the directory FD is open on.
|
static int |
fstat(int fd,
Stat.stat buf)
Get file attributes for the file, device, pipe, or socket that file descriptor FD is open on
and put them in BUF.
|
static int |
fstatat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer file,
Stat.stat buf,
int flag)
Similar to stat, get the attributes for FILE and put them in BUF.
|
static int |
futimens(int fd,
Time.timespec times)
Set file access and modification times of the file associated with FD.
|
static int |
getumask()
Get the current `umask' value without changing it.
|
static int |
lchmod(org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
Set file access permissions for FILE to MODE.
|
static int |
lstat(org.graalvm.nativeimage.c.type.CCharPointer file,
Stat.stat buf)
Get file attributes about FILE and put them in BUF.
|
static int |
mkdir(org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
Create a new directory named PATH, with permission bits MODE.
|
static int |
mkdirat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
Like mkdir, create a new directory with permission bits MODE.
|
static int |
mkfifo(org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
Create a new FIFO named PATH, with permission bits MODE.
|
static int |
mkfifoat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
Like mkfifo, create a new FIFO with permission bits MODE.
|
static int |
mknod(org.graalvm.nativeimage.c.type.CCharPointer path,
int mode,
long dev)
Create a device file named PATH, with permission and special bits MODE and device number DEV
(which can be constructed from major and minor device numbers with the `makedev' macro
above).
|
static int |
mknodat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
int mode,
long dev)
Like mknod, create a new device file with permission bits MODE and device number DEV.
|
static int |
S_BLKSIZE()
Block size for `st_blocks'.
|
static int |
S_IFBLK() |
static int |
S_IFCHR() |
static int |
S_IFDIR() |
static int |
S_IFIFO() |
static int |
S_IFLNK() |
static int |
S_IFMT() |
static int |
S_IFREG() |
static int |
S_IFSOCK() |
static int |
S_IRGRP()
Read by group.
|
static int |
S_IROTH()
Read by others.
|
static int |
S_IRUSR()
Read by owner.
|
static int |
S_IRWXG()
Read, write, and execute by group.
|
static int |
S_IRWXO()
Read, write, and execute by others.
|
static int |
S_IRWXU()
Read, write, and execute by owner.
|
static int |
S_ISGID()
Set group ID on execution.
|
static int |
S_ISUID()
Set user ID on execution.
|
static int |
S_IWGRP()
Write by group.
|
static int |
S_IWOTH()
Write by others.
|
static int |
S_IWUSR()
Write by owner.
|
static int |
S_IXGRP()
Execute by group.
|
static int |
S_IXOTH()
Execute by others.
|
static int |
S_IXUSR()
Execute by owner.
|
static int |
stat(org.graalvm.nativeimage.c.type.CCharPointer file,
Stat.stat buf)
Get file attributes for FILE and put them in BUF.
|
static int |
umask(int mask)
Set the file creation mask of the current process to MASK, and return the old creation mask.
|
static int |
utimensat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
Time.timespec times,
int flags)
Set file access and modification times relative to directory file descriptor.
|
public static int S_IFMT()
public static int S_IFDIR()
public static int S_IFCHR()
public static int S_IFBLK()
public static int S_IFREG()
public static int S_IFIFO()
public static int S_IFLNK()
public static int S_IFSOCK()
public static int S_ISUID()
public static int S_ISGID()
public static int S_IRUSR()
public static int S_IWUSR()
public static int S_IXUSR()
public static int S_IRWXU()
public static int S_IRGRP()
public static int S_IWGRP()
public static int S_IXGRP()
public static int S_IRWXG()
public static int S_IROTH()
public static int S_IWOTH()
public static int S_IXOTH()
public static int S_IRWXO()
public static int S_BLKSIZE()
public static int stat(org.graalvm.nativeimage.c.type.CCharPointer file,
Stat.stat buf)
public static int fstat(int fd,
Stat.stat buf)
public static int fstatat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer file,
Stat.stat buf,
int flag)
public static int lstat(org.graalvm.nativeimage.c.type.CCharPointer file,
Stat.stat buf)
public static int chmod(org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
public static int lchmod(org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
public static int fchmod(int fd,
int mode)
public static int fchmodat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer file,
int mode,
int flag)
public static int umask(int mask)
public static int getumask()
public static int mkdir(org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
public static int mkdirat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
public static int mknod(org.graalvm.nativeimage.c.type.CCharPointer path,
int mode,
long dev)
public static int mknodat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
int mode,
long dev)
public static int mkfifo(org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
public static int mkfifoat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
int mode)
public static int utimensat(int fd,
org.graalvm.nativeimage.c.type.CCharPointer path,
Time.timespec times,
int flags)
public static int futimens(int fd,
Time.timespec times)