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