GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
stat-wrappers.h File Reference
#include <stdbool.h>
#include <time.h>
#include <sys/types.h>
Include dependency graph for stat-wrappers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OCTAVE_API int octave_fstat_wrapper (int fid, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
 
OCTAVE_API bool octave_have_struct_stat_st_blksize (void)
 
OCTAVE_API bool octave_have_struct_stat_st_blocks (void)
 
OCTAVE_API bool octave_have_struct_stat_st_rdev (void)
 
OCTAVE_API bool octave_is_blk_wrapper (mode_t mode)
 
OCTAVE_API bool octave_is_chr_wrapper (mode_t mode)
 
OCTAVE_API bool octave_is_dir_wrapper (mode_t mode)
 
OCTAVE_API bool octave_is_fifo_wrapper (mode_t mode)
 
OCTAVE_API bool octave_is_lnk_wrapper (mode_t mode)
 
OCTAVE_API bool octave_is_reg_wrapper (mode_t mode)
 
OCTAVE_API bool octave_is_sock_wrapper (mode_t mode)
 
OCTAVE_API int octave_lstat_wrapper (const char *lname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
 
OCTAVE_API int octave_mkdir_wrapper (const char *name, mode_t mode)
 
OCTAVE_API int octave_mkfifo_wrapper (const char *name, mode_t mode)
 
OCTAVE_API int octave_stat_wrapper (const char *fname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
 
OCTAVE_API int octave_umask_wrapper (mode_t mode)
 

Function Documentation

◆ octave_fstat_wrapper()

OCTAVE_API int octave_fstat_wrapper ( int  fid,
mode_t *  mode,
ino_t *  ino,
dev_t *  dev,
nlink_t *  nlink,
uid_t *  uid,
gid_t *  gid,
off_t *  size,
time_t *  atime,
time_t *  mtime,
time_t *  ctime,
dev_t *  rdev,
long *  blksize,
long *  blocks 
)

Definition at line 159 of file stat-wrappers.c.

References assign_stat_fields(), and stat().

Referenced by file_fstat::update_internal().

◆ octave_have_struct_stat_st_blksize()

OCTAVE_API bool octave_have_struct_stat_st_blksize ( void  )

Definition at line 269 of file stat-wrappers.c.

Referenced by base_file_stat::have_struct_stat_st_blksize().

◆ octave_have_struct_stat_st_blocks()

OCTAVE_API bool octave_have_struct_stat_st_blocks ( void  )

Definition at line 279 of file stat-wrappers.c.

Referenced by base_file_stat::have_struct_stat_st_blocks().

◆ octave_have_struct_stat_st_rdev()

OCTAVE_API bool octave_have_struct_stat_st_rdev ( void  )

Definition at line 259 of file stat-wrappers.c.

Referenced by base_file_stat::have_struct_stat_st_rdev().

◆ octave_is_blk_wrapper()

OCTAVE_API bool octave_is_blk_wrapper ( mode_t  mode)

Definition at line 184 of file stat-wrappers.c.

Referenced by base_file_stat::is_blk().

◆ octave_is_chr_wrapper()

OCTAVE_API bool octave_is_chr_wrapper ( mode_t  mode)

Definition at line 194 of file stat-wrappers.c.

Referenced by base_file_stat::is_chr().

◆ octave_is_dir_wrapper()

OCTAVE_API bool octave_is_dir_wrapper ( mode_t  mode)

Definition at line 204 of file stat-wrappers.c.

Referenced by base_file_stat::is_dir().

◆ octave_is_fifo_wrapper()

OCTAVE_API bool octave_is_fifo_wrapper ( mode_t  mode)

Definition at line 214 of file stat-wrappers.c.

Referenced by base_file_stat::is_fifo().

◆ octave_is_lnk_wrapper()

OCTAVE_API bool octave_is_lnk_wrapper ( mode_t  mode)

Definition at line 224 of file stat-wrappers.c.

Referenced by base_file_stat::is_lnk().

◆ octave_is_reg_wrapper()

OCTAVE_API bool octave_is_reg_wrapper ( mode_t  mode)

Definition at line 234 of file stat-wrappers.c.

Referenced by base_file_stat::is_reg().

◆ octave_is_sock_wrapper()

OCTAVE_API bool octave_is_sock_wrapper ( mode_t  mode)

Definition at line 244 of file stat-wrappers.c.

Referenced by base_file_stat::is_sock().

◆ octave_lstat_wrapper()

OCTAVE_API int octave_lstat_wrapper ( const char *  lname,
mode_t *  mode,
ino_t *  ino,
dev_t *  dev,
nlink_t *  nlink,
uid_t *  uid,
gid_t *  gid,
off_t *  size,
time_t *  atime,
time_t *  mtime,
time_t *  ctime,
dev_t *  rdev,
long *  blksize,
long *  blocks 
)

Definition at line 135 of file stat-wrappers.c.

References assign_stat_fields(), free(), stat(), and u8_to_wchar().

Referenced by file_stat::update_internal().

◆ octave_mkdir_wrapper()

OCTAVE_API int octave_mkdir_wrapper ( const char *  name,
mode_t  mode 
)

Definition at line 49 of file stat-wrappers.c.

References free(), mkdir(), and u8_to_wchar().

Referenced by mkdir().

◆ octave_mkfifo_wrapper()

OCTAVE_API int octave_mkfifo_wrapper ( const char *  name,
mode_t  mode 
)

Definition at line 63 of file stat-wrappers.c.

References mkfifo().

Referenced by mkfifo().

◆ octave_stat_wrapper()

OCTAVE_API int octave_stat_wrapper ( const char *  fname,
mode_t *  mode,
ino_t *  ino,
dev_t *  dev,
nlink_t *  nlink,
uid_t *  uid,
gid_t *  gid,
off_t *  size,
time_t *  atime,
time_t *  mtime,
time_t *  ctime,
dev_t *  rdev,
long *  blksize,
long *  blocks 
)

Definition at line 112 of file stat-wrappers.c.

References assign_stat_fields(), free(), stat(), and u8_to_wchar().

Referenced by file_stat::update_internal().

◆ octave_umask_wrapper()

OCTAVE_API int octave_umask_wrapper ( mode_t  mode)

Definition at line 69 of file stat-wrappers.c.

References umask().

Referenced by umask().