GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
stat-wrappers.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2016-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_stat_wrappers_h)
27#define octave_stat_wrappers_h 1
28
29#if defined __cplusplus
30# include <ctime>
31#else
32# include <stdbool.h>
33# include <time.h>
34#endif
35
36#include <sys/types.h>
37
38#if defined __cplusplus
39extern "C" {
40#endif
41
42extern OCTAVE_API int octave_mkdir_wrapper (const char *name, mode_t mode);
43
44extern OCTAVE_API int octave_mkfifo_wrapper (const char *name, mode_t mode);
45
46extern OCTAVE_API int octave_umask_wrapper (mode_t mode);
47
48extern OCTAVE_API int
49octave_stat_wrapper (const char *fname, mode_t *mode, ino_t *ino,
50 dev_t *dev, nlink_t *nlink, uid_t *uid,
51 gid_t *gid, off_t *size, time_t *atime,
52 time_t *mtime, time_t *ctime, dev_t *rdev,
53 long *blksize, long *blocks);
54
55extern OCTAVE_API int
56octave_lstat_wrapper (const char *lname, mode_t *mode, ino_t *ino,
57 dev_t *dev, nlink_t *nlink, uid_t *uid,
58 gid_t *gid, off_t *size, time_t *atime,
59 time_t *mtime, time_t *ctime, dev_t *rdev,
60 long *blksize, long *blocks);
61
62extern OCTAVE_API int
63octave_fstat_wrapper (int fid, mode_t *mode, ino_t *ino,
64 dev_t *dev, nlink_t *nlink, uid_t *uid,
65 gid_t *gid, off_t *size, time_t *atime,
66 time_t *mtime, time_t *ctime, dev_t *rdev,
67 long *blksize, long *blocks);
68
69extern OCTAVE_API bool octave_is_blk_wrapper (mode_t mode);
70extern OCTAVE_API bool octave_is_chr_wrapper (mode_t mode);
71extern OCTAVE_API bool octave_is_dir_wrapper (mode_t mode);
72extern OCTAVE_API bool octave_is_fifo_wrapper (mode_t mode);
73extern OCTAVE_API bool octave_is_lnk_wrapper (mode_t mode);
74extern OCTAVE_API bool octave_is_reg_wrapper (mode_t mode);
75extern OCTAVE_API bool octave_is_sock_wrapper (mode_t mode);
76
80
81#if defined __cplusplus
82}
83#endif
84
85#endif
QString name
#define OCTAVE_API
Definition: main.in.cc:55
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 int octave_mkdir_wrapper(const char *name, mode_t mode)
Definition: stat-wrappers.c:49
OCTAVE_API bool octave_is_fifo_wrapper(mode_t mode)
OCTAVE_API bool octave_have_struct_stat_st_blocks(void)
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 bool octave_is_blk_wrapper(mode_t mode)
OCTAVE_API bool octave_is_sock_wrapper(mode_t mode)
OCTAVE_API bool octave_is_lnk_wrapper(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_mkfifo_wrapper(const char *name, mode_t mode)
Definition: stat-wrappers.c:63
OCTAVE_API bool octave_have_struct_stat_st_rdev(void)
OCTAVE_API bool octave_have_struct_stat_st_blksize(void)
OCTAVE_API bool octave_is_dir_wrapper(mode_t mode)
OCTAVE_API bool octave_is_chr_wrapper(mode_t mode)
OCTAVE_API int octave_umask_wrapper(mode_t mode)
Definition: stat-wrappers.c:69
OCTAVE_API bool octave_is_reg_wrapper(mode_t mode)