GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
unistd-wrappers.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2016-2017 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_unistd_wrappers_h)
24 #define octave_unistd_wrappers_h 1
25 
26 #if ! defined (__cplusplus)
27 # include <stdbool.h>
28 #endif
29 
30 #include <sys/types.h>
31 
32 #if defined __cplusplus
33 extern "C" {
34 #endif
35 
36 extern int octave_access_f_ok (void);
37 
38 extern int octave_access_r_ok (void);
39 
40 extern int octave_access_w_ok (void);
41 
42 extern int octave_access_x_ok (void);
43 
44 extern int octave_access_wrapper (const char *nm, int mode);
45 
46 extern int octave_chdir_wrapper (const char *nm);
47 
48 extern int octave_close_wrapper (int fd);
49 
50 extern const char *octave_ctermid_wrapper (void);
51 
52 extern int octave_dup2_wrapper (int fd1, int fd2);
53 
54 extern int octave_execv_wrapper (const char *file, char *const *argv);
55 
56 extern int octave_execvp_wrapper (const char *file, char *const *argv);
57 
58 extern pid_t octave_fork_wrapper (void);
59 
60 extern int octave_ftruncate_wrapper (int fd, off_t sz);
61 
62 extern char *octave_getcwd_wrapper (char *nm, size_t len);
63 
64 extern gid_t octave_getegid_wrapper (void);
65 
66 extern uid_t octave_geteuid_wrapper (void);
67 
68 extern gid_t octave_getgid_wrapper (void);
69 
70 extern int octave_gethostname_wrapper (char *nm, size_t len);
71 
72 extern pid_t octave_getpgrp_wrapper (void);
73 
74 extern pid_t octave_getpid_wrapper (void);
75 
76 extern pid_t octave_getppid_wrapper (void);
77 
78 extern uid_t octave_getuid_wrapper (void);
79 
80 extern int octave_isatty_wrapper (int fd);
81 
82 extern int octave_link_wrapper (const char *nm1, const char *nm2);
83 
84 extern int octave_pipe_wrapper (int *fd);
85 
86 extern int octave_rmdir_wrapper (const char *nm);
87 
88 extern pid_t octave_setsid_wrapper (void);
89 
90 extern int octave_stdin_fileno (void);
91 
92 extern int octave_stdout_fileno (void);
93 
94 extern int octave_symlink_wrapper (const char *nm1, const char *nm2);
95 
96 extern int octave_unlink_wrapper (const char *nm);
97 
98 extern pid_t octave_vfork_wrapper (void);
99 
100 extern bool octave_have_fork (void);
101 
102 extern bool octave_have_vfork (void);
103 
104 #if defined __cplusplus
105 }
106 #endif
107 
108 #endif
pid_t octave_getpid_wrapper(void)
int octave_ftruncate_wrapper(int fd, off_t sz)
pid_t octave_fork_wrapper(void)
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:120
int octave_execv_wrapper(const char *file, char *const *argv)
int octave_execvp_wrapper(const char *file, char *const *argv)
int octave_dup2_wrapper(int fd1, int fd2)
const char * octave_ctermid_wrapper(void)
int octave_unlink_wrapper(const char *nm)
int octave_access_wrapper(const char *nm, int mode)
int octave_symlink_wrapper(const char *nm1, const char *nm2)
uid_t octave_geteuid_wrapper(void)
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
Definition: data.cc:6386
int octave_pipe_wrapper(int *fd)
int octave_link_wrapper(const char *nm1, const char *nm2)
int octave_isatty_wrapper(int fd)
gid_t octave_getgid_wrapper(void)
string_vector argv
Definition: load-save.cc:635
int octave_access_w_ok(void)
int octave_gethostname_wrapper(char *nm, size_t len)
bool octave_have_vfork(void)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
Definition: utils.cc:941
pid_t octave_getpgrp_wrapper(void)
gid_t octave_getegid_wrapper(void)
char * octave_getcwd_wrapper(char *nm, size_t len)
int octave_close_wrapper(int fd)
pid_t octave_setsid_wrapper(void)
int octave_stdout_fileno(void)
sz
Definition: data.cc:5342
bool octave_have_fork(void)
int octave_stdin_fileno(void)
int octave_chdir_wrapper(const char *nm)
int octave_access_x_ok(void)
int octave_rmdir_wrapper(const char *nm)
uid_t octave_getuid_wrapper(void)
pid_t octave_getppid_wrapper(void)
int octave_access_r_ok(void)
pid_t octave_vfork_wrapper(void)
int octave_access_f_ok(void)