#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "stat-wrappers.h"
#include "uniconv-wrappers.h"
Go to the source code of this file.
Functions | |
static void | assign_stat_fields (struct stat *buf, 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) |
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) |
bool | octave_have_struct_stat_st_blksize (void) |
bool | octave_have_struct_stat_st_blocks (void) |
bool | octave_have_struct_stat_st_rdev (void) |
bool | octave_is_blk_wrapper (mode_t mode) |
bool | octave_is_chr_wrapper (mode_t mode) |
bool | octave_is_dir_wrapper (mode_t mode) |
bool | octave_is_fifo_wrapper (mode_t mode) |
bool | octave_is_lnk_wrapper (mode_t mode) |
bool | octave_is_reg_wrapper (mode_t mode) |
bool | octave_is_sock_wrapper (mode_t mode) |
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) |
int | octave_mkdir_wrapper (const char *name, mode_t mode) |
int | octave_mkfifo_wrapper (const char *name, mode_t mode) |
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) |
int | octave_umask_wrapper (mode_t mode) |
|
inlinestatic |
Definition at line 75 of file stat-wrappers.c.
Referenced by octave_fstat_wrapper(), octave_lstat_wrapper(), and octave_stat_wrapper().
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().
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().
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().
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().
bool octave_is_blk_wrapper | ( | mode_t | mode | ) |
Definition at line 184 of file stat-wrappers.c.
Referenced by base_file_stat::is_blk().
bool octave_is_chr_wrapper | ( | mode_t | mode | ) |
Definition at line 194 of file stat-wrappers.c.
Referenced by base_file_stat::is_chr().
bool octave_is_dir_wrapper | ( | mode_t | mode | ) |
Definition at line 204 of file stat-wrappers.c.
Referenced by base_file_stat::is_dir().
bool octave_is_fifo_wrapper | ( | mode_t | mode | ) |
Definition at line 214 of file stat-wrappers.c.
Referenced by base_file_stat::is_fifo().
bool octave_is_lnk_wrapper | ( | mode_t | mode | ) |
Definition at line 224 of file stat-wrappers.c.
Referenced by base_file_stat::is_lnk().
bool octave_is_reg_wrapper | ( | mode_t | mode | ) |
Definition at line 234 of file stat-wrappers.c.
Referenced by base_file_stat::is_reg().
bool octave_is_sock_wrapper | ( | mode_t | mode | ) |
Definition at line 244 of file stat-wrappers.c.
Referenced by base_file_stat::is_sock().
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().
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().
int octave_mkfifo_wrapper | ( | const char * | name, |
mode_t | mode | ||
) |
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().
int octave_umask_wrapper | ( | mode_t | mode | ) |