28 #if defined (HAVE_CONFIG_H) 34 #include <sys/types.h> 59 dev_t *dev, nlink_t *nlink, uid_t *uid,
60 gid_t *gid, off_t *size, time_t *atime,
61 time_t *mtime, time_t *ctime, dev_t *rdev,
62 long *blksize,
long *blocks)
67 *nlink = buf->st_nlink;
71 *atime = buf->st_atime;
72 *mtime = buf->st_mtime;
73 *ctime = buf->st_ctime;
75 #if defined (HAVE_STRUCT_STAT_ST_RDEV) 81 #if defined (HAVE_STRUCT_STAT_ST_BLKSIZE) 82 *blksize = buf->st_blksize;
87 #if defined (HAVE_STRUCT_STAT_ST_BLOCKS) 88 *blocks = buf->st_blocks;
96 dev_t *dev, nlink_t *nlink, uid_t *uid,
97 gid_t *gid, off_t *size, time_t *atime,
98 time_t *mtime, time_t *ctime, dev_t *rdev,
99 long *blksize,
long *blocks)
106 atime, mtime, ctime, rdev, blksize, blocks);
113 dev_t *dev, nlink_t *nlink, uid_t *uid,
114 gid_t *gid, off_t *size, time_t *atime,
115 time_t *mtime, time_t *ctime, dev_t *rdev,
116 long *blksize,
long *blocks)
120 int status = lstat (lname, &buf);
123 atime, mtime, ctime, rdev, blksize, blocks);
130 dev_t *dev, nlink_t *nlink, uid_t *uid,
131 gid_t *gid, off_t *size, time_t *atime,
132 time_t *mtime, time_t *ctime, dev_t *rdev,
133 long *blksize,
long *blocks)
137 int status = fstat (
fid, &buf);
140 atime, mtime, ctime, rdev, blksize, blocks);
145 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 149 #pragma GCC diagnostic push 150 #pragma GCC diagnostic ignored "-Wunused-parameter" 156 #if defined (S_ISBLK) 157 return S_ISBLK (
mode);
166 #if defined (S_ISCHR) 167 return S_ISCHR (
mode);
176 #if defined (S_ISDIR) 177 return S_ISDIR (
mode);
186 #if defined (S_ISFIFO) 187 return S_ISFIFO (
mode);
196 #if defined (S_ISLNK) 197 return S_ISLNK (
mode);
206 #if defined (S_ISREG) 207 return S_ISREG (
mode);
216 #if defined (S_ISSOCK) 217 return S_ISSOCK (
mode);
223 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 225 #pragma GCC diagnostic pop 231 #if defined (HAVE_STRUCT_STAT_ST_RDEV) 241 #if defined (HAVE_STRUCT_STAT_ST_BLKSIZE) 251 #if defined (HAVE_STRUCT_STAT_ST_BLOCKS) bool octave_is_fifo_wrapper(mode_t mode)
OCTAVE_EXPORT octave_value_list mkdir
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system 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)
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)
bool octave_have_struct_stat_st_blocks(void)
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_is_dir_wrapper(mode_t mode)
bool octave_is_lnk_wrapper(mode_t mode)
bool octave_is_reg_wrapper(mode_t mode)
nd deftypefn *std::string name
bool octave_is_chr_wrapper(mode_t mode)
bool octave_is_blk_wrapper(mode_t mode)
int octave_umask_wrapper(mode_t mode)
bool octave_have_struct_stat_st_blksize(void)
subroutine stat(x, n, av, var, xmin, xmax)
bool octave_is_sock_wrapper(mode_t mode)
int octave_mkfifo_wrapper(const char *name, mode_t mode)
bool octave_have_struct_stat_st_rdev(void)
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 mkfifo(const std::string &nm, mode_t md)