GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
unistd-wrappers.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2016-2025 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_unistd_wrappers_h)
27#define octave_unistd_wrappers_h 1
28
29#if ! defined (__cplusplus)
30# include <stdbool.h>
31#endif
32
33#include <sys/types.h>
34
35#if defined (__cplusplus)
36extern "C" {
37#endif
38
39extern OCTAVE_API int octave_access_f_ok (void);
40
41extern OCTAVE_API int octave_access_r_ok (void);
42
43extern OCTAVE_API int octave_access_w_ok (void);
44
45extern OCTAVE_API int octave_access_x_ok (void);
46
47extern OCTAVE_API int octave_access_wrapper (const char *nm, int mode);
48
49extern OCTAVE_API int octave_chdir_wrapper (const char *nm);
50
51extern OCTAVE_API int octave_close_wrapper (int fd);
52
53extern OCTAVE_API const char * octave_ctermid_wrapper (void);
54
55extern OCTAVE_API int octave_dup2_wrapper (int fd1, int fd2);
56
57extern OCTAVE_API int octave_execv_wrapper (const char *file, char *const *argv);
58
59extern OCTAVE_API int octave_execvp_wrapper (const char *file, char *const *argv);
60
61extern OCTAVE_API pid_t octave_fork_wrapper (void);
62
63extern OCTAVE_API int octave_ftruncate_wrapper (int fd, off_t sz);
64
65extern OCTAVE_API char * octave_getcwd_wrapper (char *nm, size_t len);
66
67extern OCTAVE_API gid_t octave_getegid_wrapper (void);
68
69extern OCTAVE_API uid_t octave_geteuid_wrapper (void);
70
71extern OCTAVE_API gid_t octave_getgid_wrapper (void);
72
73extern OCTAVE_API int octave_gethostname_wrapper (char *nm, size_t len);
74
75extern OCTAVE_API pid_t octave_getpgrp_wrapper (void);
76
77extern OCTAVE_API pid_t octave_getpid_wrapper (void);
78
79extern OCTAVE_API pid_t octave_getppid_wrapper (void);
80
81extern OCTAVE_API uid_t octave_getuid_wrapper (void);
82
83extern OCTAVE_API int octave_isatty_wrapper (int fd);
84
85extern OCTAVE_API int octave_link_wrapper (const char *nm1, const char *nm2);
86
87extern OCTAVE_API int octave_pipe_wrapper (int *fd);
88
89extern OCTAVE_API int octave_rmdir_wrapper (const char *nm);
90
91extern OCTAVE_API pid_t octave_setsid_wrapper (void);
92
93extern OCTAVE_API int octave_stdin_fileno (void);
94
95extern OCTAVE_API int octave_stdout_fileno (void);
96
97extern OCTAVE_API int octave_stderr_fileno (void);
98
99extern OCTAVE_API int octave_symlink_wrapper (const char *nm1, const char *nm2);
100
101extern OCTAVE_API int octave_unlink_wrapper (const char *nm);
102
103extern OCTAVE_API pid_t octave_vfork_wrapper (void);
104
105extern OCTAVE_API bool octave_have_fork (void);
106
107extern OCTAVE_API bool octave_have_vfork (void);
108
109#if defined (__cplusplus)
110}
111#endif
112
113#endif
#define OCTAVE_API
Definition main.in.cc:55
int octave_access_f_ok(void)
pid_t octave_setsid_wrapper(void)
gid_t octave_getgid_wrapper(void)
uid_t octave_geteuid_wrapper(void)
int octave_ftruncate_wrapper(int fd, off_t sz)
int octave_gethostname_wrapper(char *nm, size_t len)
int octave_rmdir_wrapper(const char *nm)
pid_t octave_fork_wrapper(void)
char * octave_getcwd_wrapper(char *nm, size_t len)
pid_t octave_getpgrp_wrapper(void)
pid_t octave_getppid_wrapper(void)
int octave_access_r_ok(void)
bool octave_have_vfork(void)
int octave_execvp_wrapper(const char *file, char *const *argv)
gid_t octave_getegid_wrapper(void)
int octave_execv_wrapper(const char *file, char *const *argv)
pid_t octave_getpid_wrapper(void)
int octave_close_wrapper(int fd)
int octave_access_wrapper(const char *nm, int mode)
int octave_unlink_wrapper(const char *nm)
int octave_chdir_wrapper(const char *nm)
int octave_symlink_wrapper(const char *nm1, const char *nm2)
uid_t octave_getuid_wrapper(void)
int octave_access_x_ok(void)
int octave_stderr_fileno(void)
int octave_link_wrapper(const char *nm1, const char *nm2)
int octave_access_w_ok(void)
const char * octave_ctermid_wrapper(void)
int octave_stdout_fileno(void)
pid_t octave_vfork_wrapper(void)
int octave_isatty_wrapper(int fd)
bool octave_have_fork(void)
int octave_dup2_wrapper(int fd1, int fd2)
int octave_stdin_fileno(void)
int octave_pipe_wrapper(int *fd)
F77_RET_T len
Definition xerbla.cc:61